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 @@
{{ $currentSession }}経過
-({{ $latestEjaculation->ejaculated_date->format('Y/m/d H:i') }} にリセット)
- @else -計測がまだ始まっていません
-(一度チェックインすると始まります)
+ @if (!$user->is_protected) +{{ $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 }}回
+ このユーザはチェックイン履歴を公開していません。 +
+@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') -- @if ($ejaculation->is_private) - 非公開 - @endif - {{-- - 催眠音声 - 適当なタグ - --}} -
- @endif - - {{-- -コンテンツの説明文
+@if ($user->is_protected && !(Auth::check() && $user->id === Auth::user()->id)) ++ このユーザはチェックイン履歴を公開していません。 +
+@else +- {!! Formatter::linkify(nl2br(e($ejaculation->note))) !!} -
- @endif + @endif ++ @if ($ejaculation->is_private) + 非公開 + @endif + {{-- + 催眠音声 + 適当なタグ + --}} +
+ @endif + + {{-- + + --}} + + @if (!empty($ejaculation->note)) ++ {!! Formatter::linkify(nl2br(e($ejaculation->note))) !!} +
+ @endif + + @empty +まだチェックインしていません。
+まだチェックインしていません。
+ @for ($i = 1; $i <= $ejaculations->lastPage(); $i++) ++ このユーザはチェックイン履歴を公開していません。 +
+@else +@endif @endsection \ No newline at end of file