Skip to content

Commit e7ccb34

Browse files
committed
Tweak seo tag page content
1 parent cd76663 commit e7ccb34

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

resources/views/tailwind/pages/tag_index.blade.php

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,13 @@
3939
<span class="text-sm text-blue-600 font-medium uppercase">
4040
{{ $modelLabels[$item::class] ?? class_basename($item) }}
4141
</span>
42-
@if(method_exists($item, 'publishing_begins_at') && $item->publishing_begins_at)
42+
@if($item->publishing_begins_at)
4343
<time class="text-sm text-gray-500">
44-
{{ $item->publishing_begins_at->format('M j, Y') }}
44+
{{ $item->publishing_begins_at->format('d/m/Y') }}
45+
</time>
46+
@else
47+
<time class="text-sm text-gray-500">
48+
{{ $item->created_at->format('d/m/Y') }}
4549
</time>
4650
@endif
4751
</div>
@@ -62,7 +66,7 @@
6266
<div class="flex flex-wrap gap-1">
6367
@foreach($item->tags->take(5) as $itemTag)
6468
<span class="px-2 py-1 bg-gray-50 rounded text-xs text-gray-700">
65-
{{ $itemTag->getTranslation('name', app()->getLocale()) }}
69+
{{ $itemTag->name }}
6670
</span>
6771
@endforeach
6872
</div>
@@ -79,7 +83,7 @@
7983
@else
8084
<div class="text-center py-12">
8185
<p class="text-gray-600 text-lg">
82-
{{ flexiblePagesTrans('tag_pages.no_content', ['tag' => $tag->getTranslation('name', app()->getLocale())]) }}
86+
{{ flexiblePagesTrans('tag_pages.no_content', ['tag' => $tag->name]) }}
8387
</p>
8488
</div>
8589
@endif

src/Http/Controllers/SeoTagController.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
namespace Statikbe\FilamentFlexibleContentBlockPages\Http\Controllers;
44

55
use Artesaos\SEOTools\Facades\SEOTools;
6-
use Filament\Facades\Filament;
76
use Filament\Resources\Resource;
87
use Illuminate\Pagination\LengthAwarePaginator;
98
use Illuminate\Support\Str;

0 commit comments

Comments
 (0)