@extends('backend.app') @section('title', 'Email Templates Management') @push('style') @endpush @section('content')
@include('backend.partials.breadcrumb', [ 'items' => [ ['url' => route('dashboard'), 'title' => 'Dashboard', 'icon' => 'fas fa-home'], ['title' => 'Email Templates', 'icon' => 'fas fa-envelope'] ] ])
{{ $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
@foreach($types as $type => $label)
@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)
{{ $template->name }}
{{ $template->trigger_event }}
@if($template->status) Active @else Inactive @endif

Subject: {{ Str::limit($template->subject, 60) }}

@if($template->send_copy_to_admin)

Copy to Admin

@endif
@endforeach
@endforeach
@push('script') @endpush @endsection