Add (view): Show publish date on views

This commit is contained in:
2023-07-31 00:24:21 +08:00
parent ad384c5fc2
commit 73062716b9
3 changed files with 6 additions and 3 deletions

View File

@@ -57,7 +57,7 @@ class="text-decoration-none">{{ $post->title }}</a>
{{-- <small class="text-body-secondary ms-2">3 min read</small> --}}
</p>
<div class="d-flex justify-content-between align-items-center">
<small class="text-body-secondary">{{ $post->created_at->format('j F Y') }}</small>
<small class="text-body-secondary">{{ $post->publish_date->format('j F Y') }}</small>
{{-- <small class="text-body-secondary">9 min read</small> --}}
</div>
</div>
@@ -121,7 +121,7 @@ class="text-decoration-none">
{{-- <small class="text-body-secondary ms-2">3 min read</small> --}}
</p>
<small
class="text-body-secondary">{{ $post->created_at->format('j F Y') }}</small>
class="text-body-secondary">{{ $post->publish_date->format('j F Y') }}</small>
</div>
</div>
</div>

View File

@@ -38,7 +38,8 @@
href="{{ route('home.country.category', ['country' => $country_locale->country_iso, 'category' => $post_category->category->slug]) }}">{{ $post_category->category->name }}</a>
</small>
@endforeach
{{-- <small class="text-body-secondary ms-2">3 min read</small> --}}
<small
class="text-body-secondary ms-2">{{ $post->publish_date->format('j F Y') }}</small>
</p>
</div>

View File

@@ -37,6 +37,8 @@
href="{{ route('home.country.category', ['country' => $country_locale->country_iso, 'category' => $post_category->category->slug]) }}">{{ $post_category->category->name }}</a>
</small>
@endforeach
<small
class="text-body-secondary ms-2">{{ $post->publish_date->format('j F Y') }}</small>
{{-- <small class="text-body-secondary ms-2">3 min read</small> --}}
</p>