From 73062716b98f877943a0ce9ff3a5ad54944708c6 Mon Sep 17 00:00:00 2001
From: Charles T
Date: Mon, 31 Jul 2023 00:24:21 +0800
Subject: [PATCH] Add (view): Show publish date on views
---
resources/views/front/country.blade.php | 4 ++--
resources/views/front/country_all.blade.php | 3 ++-
resources/views/front/country_category.blade.php | 2 ++
3 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/resources/views/front/country.blade.php b/resources/views/front/country.blade.php
index 91bf5d7..df684ae 100644
--- a/resources/views/front/country.blade.php
+++ b/resources/views/front/country.blade.php
@@ -57,7 +57,7 @@ class="text-decoration-none">{{ $post->title }}
{{-- 3 min read --}}
- {{ $post->created_at->format('j F Y') }}
+ {{ $post->publish_date->format('j F Y') }}
{{-- 9 min read --}}
@@ -121,7 +121,7 @@ class="text-decoration-none">
{{-- 3 min read --}}
{{ $post->created_at->format('j F Y') }}
+ class="text-body-secondary">{{ $post->publish_date->format('j F Y') }}
diff --git a/resources/views/front/country_all.blade.php b/resources/views/front/country_all.blade.php
index f49f99b..029fb60 100644
--- a/resources/views/front/country_all.blade.php
+++ b/resources/views/front/country_all.blade.php
@@ -38,7 +38,8 @@
href="{{ route('home.country.category', ['country' => $country_locale->country_iso, 'category' => $post_category->category->slug]) }}">{{ $post_category->category->name }}
@endforeach
- {{-- 3 min read --}}
+ {{ $post->publish_date->format('j F Y') }}
diff --git a/resources/views/front/country_category.blade.php b/resources/views/front/country_category.blade.php
index 924bb17..062e465 100644
--- a/resources/views/front/country_category.blade.php
+++ b/resources/views/front/country_category.blade.php
@@ -37,6 +37,8 @@
href="{{ route('home.country.category', ['country' => $country_locale->country_iso, 'category' => $post_category->category->slug]) }}">{{ $post_category->category->name }}
@endforeach
+ {{ $post->publish_date->format('j F Y') }}
{{-- 3 min read --}}