diff --git a/resources/views/components/profile.blade.php b/resources/views/components/profile.blade.php index e4f5185..405952a 100644 --- a/resources/views/components/profile.blade.php +++ b/resources/views/components/profile.blade.php @@ -1,23 +1,32 @@
-

{{ $user->display_name }}

-
@{{ $user->name }}
+

+ {{ $user->display_name }} +

+
+ @{{ $user->name }} + @if ($user->is_protected) + + @endif +
-
現在のセッション
- @if (isset($currentSession)) -

{{ $currentSession }}経過

-

({{ $latestEjaculation->ejaculated_date->format('Y/m/d H:i') }} にリセット)

- @else -

計測がまだ始まっていません

-

(一度チェックインすると始まります)

+ @if (!$user->is_protected) +
現在のセッション
+ @if (isset($currentSession)) +

{{ $currentSession }}経過

+

({{ $latestEjaculation->ejaculated_date->format('Y/m/d H:i') }} にリセット)

+ @else +

計測がまだ始まっていません

+

(一度チェックインすると始まります)

+ @endif + +
概況
+

平均記録: {{ Formatter::formatInterval($summary[0]->average) }}

+

最長記録: {{ Formatter::formatInterval($summary[0]->longest) }}

+

最短記録: {{ Formatter::formatInterval($summary[0]->shortest) }}

+

合計時間: {{ Formatter::formatInterval($summary[0]->total_times) }}

+

通算回数: {{ $summary[0]->total_checkins }}回

@endif - -
概況
-

平均記録: {{ Formatter::formatInterval($summary[0]->average) }}

-

最長記録: {{ Formatter::formatInterval($summary[0]->longest) }}

-

最短記録: {{ Formatter::formatInterval($summary[0]->shortest) }}

-

合計時間: {{ Formatter::formatInterval($summary[0]->total_times) }}

-

通算回数: {{ $summary[0]->total_checkins }}回

\ No newline at end of file diff --git a/resources/views/ejaculation/show.blade.php b/resources/views/ejaculation/show.blade.php index 37b3311..fe86916 100644 --- a/resources/views/ejaculation/show.blade.php +++ b/resources/views/ejaculation/show.blade.php @@ -8,7 +8,13 @@ @endcomponent
- @if ($ejaculation->is_private && !(Auth::check() && $user->id === Auth::user()->id)) + @if ($user->is_protected && !(Auth::check() && $user->id === Auth::user()->id)) +
+
+ このユーザはチェックイン履歴を公開していません。 +
+
+ @elseif ($ejaculation->is_private && !(Auth::check() && $user->id === Auth::user()->id))
非公開チェックインのため、表示できません diff --git a/resources/views/user/okazu.blade.php b/resources/views/user/okazu.blade.php index 6bc8f66..b0ef760 100644 --- a/resources/views/user/okazu.blade.php +++ b/resources/views/user/okazu.blade.php @@ -1,4 +1,10 @@ @extends('user.base') @section('tab-content') +@if ($user->is_protected && !(Auth::check() && $user->id === Auth::user()->id)) +

+ このユーザはチェックイン履歴を公開していません。 +

+@else +@endif @endsection \ No newline at end of file diff --git a/resources/views/user/profile.blade.php b/resources/views/user/profile.blade.php index d76cef6..6df3dec 100644 --- a/resources/views/user/profile.blade.php +++ b/resources/views/user/profile.blade.php @@ -1,73 +1,79 @@ @extends('user.base') @section('tab-content') - + - + +@endif @component('components.modal', ['id' => 'deleteCheckinModal']) @slot('title') diff --git a/resources/views/user/stats.blade.php b/resources/views/user/stats.blade.php index 6bc8f66..b0ef760 100644 --- a/resources/views/user/stats.blade.php +++ b/resources/views/user/stats.blade.php @@ -1,4 +1,10 @@ @extends('user.base') @section('tab-content') +@if ($user->is_protected && !(Auth::check() && $user->id === Auth::user()->id)) +

+ このユーザはチェックイン履歴を公開していません。 +

+@else +@endif @endsection \ No newline at end of file