{{ __('app.documents.templates.title') }}

{{ __('app.documents.templates.desc') }}

@can('certificates.create') {{ __('app.documents.templates.create') }} @endcan
@if ($notice) {{ $notice }} @endif @if ($errors->any())
    @foreach ($errors->all() as $message)
  • {{ $message }}
  • @endforeach
@endif @if ($showForm)
@foreach ($types as $certificateType) @endforeach

{{ __('app.documents.templates.placeholders') }}

@foreach ($placeholders as $placeholder) {{{{ $placeholder }}}} @endforeach
{{ __('app.actions.cancel') }} {{ __('app.actions.save') }}
@endif
@foreach ($types as $certificateType) @endforeach
@forelse ($templates as $template) @empty @endforelse
{{ __('app.documents.fields.name_en') }} {{ __('app.documents.fields.type') }} {{ __('app.documents.fields.title_en') }} {{ __('app.documents.fields.signatory') }} {{ __('app.documents.templates.issued_count') }} {{ __('app.documents.fields.status') }} {{ __('app.actions.actions') }}
{{ $template->localizedName() }} {{ $template->name_en }} {{ $template->type->label() }} {{ $template->localizedTitle() }} {{ \Illuminate\Support\Str::limit(strip_tags($template->localizedBody()), 80) }} {{ $template->localizedSignatoryName() ?: '—' }} {{ $template->localizedSignatoryTitle() ?: '—' }} {{ number_format($template->issued_certificates_count) }} @if ($template->is_active) {{ __('app.documents.common.active') }} @else {{ __('app.documents.common.inactive') }} @endif
@can('certificates.edit') {{ __('app.actions.edit') }} {{ $template->is_active ? __('app.documents.common.deactivate') : __('app.documents.common.activate') }} @endcan @can('certificates.delete') {{ __('app.actions.delete') }} @endcan
@if ($templates->hasPages())
{{ $templates->links() }}
@endif