@extends('admin.admin_dashboard') @section('admin')
{{-- Filter Card --}}
{{-- Action Buttons --}} @if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif {{-- cm-content-box style table --}}
@forelse($templates as $k => $t) @if($t->status=='REJECTED' && $t->rejected_reason) @endif @empty @endforelse
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
@csrf @method('DELETE')
Rejected reason: {{ $t->rejected_reason }}
No templates found
{{ $templates->links() }}
@endsection