diff --git a/resources/views/guest.blade.php b/resources/views/guest.blade.php index fb670f0..3b21fa6 100644 --- a/resources/views/guest.blade.php +++ b/resources/views/guest.blade.php @@ -31,6 +31,9 @@
@foreach($informations as $info) + @if ($info->pinned) + ピン留め + @endif {{ $categories[$info->category]['label'] }} {{ $info->title }} - {{ $info->created_at->format('n月j日') }} @endforeach diff --git a/resources/views/home.blade.php b/resources/views/home.blade.php index aa9d64f..3ebad66 100644 --- a/resources/views/home.blade.php +++ b/resources/views/home.blade.php @@ -34,6 +34,9 @@
@foreach($informations as $info) + @if ($info->pinned) + ピン留め + @endif {{ $categories[$info->category]['label'] }} {{ $info->title }} - {{ $info->created_at->format('n月j日') }} @endforeach diff --git a/resources/views/info/index.blade.php b/resources/views/info/index.blade.php index dd7119b..62376bb 100644 --- a/resources/views/info/index.blade.php +++ b/resources/views/info/index.blade.php @@ -9,6 +9,9 @@
@foreach($informations as $info) + @if ($info->pinned) + ピン留め + @endif {{ $categories[$info->category]['label'] }} {{ $info->title }} - {{ $info->created_at->format('n月j日') }} @endforeach diff --git a/resources/views/info/show.blade.php b/resources/views/info/show.blade.php index 8dba829..3e0b597 100644 --- a/resources/views/info/show.blade.php +++ b/resources/views/info/show.blade.php @@ -11,7 +11,12 @@

{{ $category['label'] }} {{ $info->title }}

-

{{ $info->created_at->format('Y年n月j日') }}

+

+ @if ($info->pinned) + ピン留め + @endif + {{ $info->created_at->format('Y年n月j日') }} +

@parsedown($info->content)
@endsection \ No newline at end of file