{{-- Page header --}}

{{ __('Email Templates') }}

{{ __('Browse professional templates to kickstart your campaigns.') }}

{{ __('Back to Campaigns') }}
{{-- Search bar --}}
{{-- Category filter pills --}}
@foreach($categories as $key => $label) @endforeach
{{-- Template grid --}} @if($templates->count() > 0)
@foreach($templates as $template)
{{-- Preview thumbnail --}}
{!! \App\Livewire\Campaigns\EmailTemplateGallery::renderBlocksPreview($template->blocks ?? []) !!}
{{-- Hover overlay --}}
{{-- Card info --}}

{{ $template->name }}

{{ $template->category }}
@if($template->usage_count > 0) {{ $template->usage_count }} {{ Str::plural('use', $template->usage_count) }} @endif
@endforeach
@else {{-- Empty state --}}

{{ __('No templates found') }}

{{ __('Try adjusting your search or filter criteria.') }}

@endif {{-- Preview Modal --}} @if($previewTemplate) @endif