File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed
resources/views/tailwind/pages Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 39
39
<span class =" text-sm text-blue-600 font-medium uppercase" >
40
40
{{ $modelLabels [$item :: class ] ?? class_basename ($item ) } }
41
41
</span >
42
- @if (method_exists ( $item , ' publishing_begins_at ' ) && $item -> publishing_begins_at )
42
+ @if ($item -> publishing_begins_at )
43
43
<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' ) } }
45
49
</time >
46
50
@endif
47
51
</div >
62
66
<div class =" flex flex-wrap gap-1" >
63
67
@foreach ($item -> tags -> take (5 ) as $itemTag )
64
68
<span class =" px-2 py-1 bg-gray-50 rounded text-xs text-gray-700" >
65
- {{ $itemTag -> getTranslation ( ' name' , app () -> getLocale ()) } }
69
+ {{ $itemTag -> name } }
66
70
</span >
67
71
@endforeach
68
72
</div >
79
83
@else
80
84
<div class =" text-center py-12" >
81
85
<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 ]) } }
83
87
</p >
84
88
</div >
85
89
@endif
Original file line number Diff line number Diff line change 3
3
namespace Statikbe \FilamentFlexibleContentBlockPages \Http \Controllers ;
4
4
5
5
use Artesaos \SEOTools \Facades \SEOTools ;
6
- use Filament \Facades \Filament ;
7
6
use Filament \Resources \Resource ;
8
7
use Illuminate \Pagination \LengthAwarePaginator ;
9
8
use Illuminate \Support \Str ;
You can’t perform that action at this time.
0 commit comments