@extends('admin.layouts.app') @section('title', __('admin.email_templates.title')) @section('content')
@if(($templates ?? collect())->isEmpty())
{{ __('admin.email_templates.no_templates') }}
@else @foreach($templates as $tpl) @endforeach
{{ __('admin.email_templates.template_name') }}{{ __('common.table.subject') }}{{ __('common.table.type') }}{{ __('common.table.status') }}{{ __('common.table.actions') }}
{{ $tpl->name }} {{ $tpl->subject }} {{ $tpl->type ?? 'general' }} {{ $tpl->disabled ? __('common.status.disabled') : __('common.status.active') }}
@endif
@foreach($templates ?? [] as $tpl)
@csrf @method('PUT')
@endforeach @endsection