{{-- Filter Card --}}
{{-- Action Buttons --}}
@if(session('success'))
Message Templates
{{ session('success') }}
@endif
@if(session('error'))
{{ session('error') }}
@endif
{{-- cm-content-box style table --}}
| SL | Title | Type | Meta Name | Lang | Status | Last Sync | Action |
|---|---|---|---|---|---|---|---|
| {{ ($templates->firstItem() ?? 0) + $k }} | {{ $t->title }} |
{{ strtoupper($t->type) }}
@if($t->type === 'whatsapp')
@if(($t->whatsapp_type ?? 'official') === 'unofficial')
Unofficial
@else
Official
@endif
@endif
|
@if($t->type === 'whatsapp' && ($t->whatsapp_type ?? '') === 'unofficial') N/A (Unofficial) @else {{ $t->meta_name ?? '—' }} @endif | {{ $t->language ?? '—' }} | @php $st = $t->status ?? '—'; @endphp {{ $st }} | {{ $t->last_synced_at? $t->last_synced_at->timezone('Asia/Dhaka')->format('d M Y, h:i A') : '—' }} | Edit |
| Rejected reason: {{ $t->rejected_reason }} | |||||||
| No templates found | |||||||
{{ $templates->links() }}