Add (view): Show publish date on views
This commit is contained in:
@@ -57,7 +57,7 @@ class="text-decoration-none">{{ $post->title }}</a>
|
|||||||
{{-- <small class="text-body-secondary ms-2">3 min read</small> --}}
|
{{-- <small class="text-body-secondary ms-2">3 min read</small> --}}
|
||||||
</p>
|
</p>
|
||||||
<div class="d-flex justify-content-between align-items-center">
|
<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> --}}
|
{{-- <small class="text-body-secondary">9 min read</small> --}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -121,7 +121,7 @@ class="text-decoration-none">
|
|||||||
{{-- <small class="text-body-secondary ms-2">3 min read</small> --}}
|
{{-- <small class="text-body-secondary ms-2">3 min read</small> --}}
|
||||||
</p>
|
</p>
|
||||||
<small
|
<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>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -38,7 +38,8 @@
|
|||||||
href="{{ route('home.country.category', ['country' => $country_locale->country_iso, 'category' => $post_category->category->slug]) }}">{{ $post_category->category->name }}</a>
|
href="{{ route('home.country.category', ['country' => $country_locale->country_iso, 'category' => $post_category->category->slug]) }}">{{ $post_category->category->name }}</a>
|
||||||
</small>
|
</small>
|
||||||
@endforeach
|
@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>
|
</p>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -37,6 +37,8 @@
|
|||||||
href="{{ route('home.country.category', ['country' => $country_locale->country_iso, 'category' => $post_category->category->slug]) }}">{{ $post_category->category->name }}</a>
|
href="{{ route('home.country.category', ['country' => $country_locale->country_iso, 'category' => $post_category->category->slug]) }}">{{ $post_category->category->name }}</a>
|
||||||
</small>
|
</small>
|
||||||
@endforeach
|
@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> --}}
|
{{-- <small class="text-body-secondary ms-2">3 min read</small> --}}
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user