{{ $templates->count() }}
Total Templates
{{ $templates->where('status', true)->count() }}
Active
{{ $templates->where('status', false)->count() }}
Inactive
{{ $templates->where('send_copy_to_admin', true)->count() }}
Admin Copies
@php
$icon = match($type) {
'booking' => 'calendar',
'account' => 'user',
'trial' => 'clock',
'deletion' => 'user-times',
'admin' => 'shield',
default => 'chart-line',
};
@endphp
{{ $label }}
@foreach($templates->where('type', $type) as $template)
@if($template->status)
Active
@else
Inactive
@endif
@endforeach
{{ $template->name }}
{{ $template->trigger_event }}Subject: {{ Str::limit($template->subject, 60) }}
@if($template->send_copy_to_admin)Copy to Admin
@endif