@forelse ($data as $template)
{{-- Editor Type Badge --}} {{ $template->approach === 'with_editor' ? 'With Editor' : 'Without Editor' }} {{-- Best Seller Badge --}} @if($template->is_best_seller) Best Seller @endif @can('product-templates_delete') @endcan
Template Image
{{ $template->getTranslation('name', app()->getLocale()) }}

Type:

@foreach($template->types as $type) {{ $type->value->label() }} @endforeach

Created at: {{ \Carbon\Carbon::parse($template->created_at)->timezone('Africa/Cairo')->format('d/m/Y h:i A') }}

Last update: {{ \Carbon\Carbon::parse($template->updated_at)->timezone('Africa/Cairo')->format('d/m/Y h:i A') }}

@foreach($template->tags as $tag) {{ $tag->getTranslation('name', app()->getLocale()) }} @endforeach
@foreach($template->colors ?? [] as $color)
@endforeach
{{ $template->status->label() }}
@empty
No Templates

Nothing to show yet.

@endforelse