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

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

@can('certificates.issue') {{ __('app.documents.certificates.issue') }} @endcan
@if ($notice) {{ $notice }} @endif @if ($errors->any())
    @foreach ($errors->all() as $message)
  • {{ $message }}
  • @endforeach
@endif @if ($showForm)
@if ($student_id !== '')
{{ $selectedStudentLabel }}
@else @error('student_id')

{{ $message }}

@enderror @if (trim($studentSearch) !== '')
@forelse ($studentResults as $student) @empty

{{ __('app.documents.certificates.no_students') }}

@endforelse
@endif @endif
@foreach ($activeTemplates as $template) @endforeach @foreach ($years as $year) @endforeach

{{ __('app.documents.certificates.issue_hint') }}

{{ __('app.actions.cancel') }} {{ __('app.documents.certificates.issue') }}
@endif
@foreach ($templates as $template) @endforeach @foreach ($years as $year) @endforeach
@forelse ($certificates as $certificate) @empty @endforelse
{{ __('app.documents.fields.certificate_no') }} {{ __('app.documents.fields.student') }} {{ __('app.documents.fields.template') }} {{ __('app.documents.fields.academic_year') }} {{ __('app.documents.fields.issued_on') }} {{ __('app.documents.fields.issued_by') }} {{ __('app.documents.fields.size') }} {{ __('app.actions.actions') }}
{{ $certificate->certificate_no }} {{ $certificate->student?->localizedName() ?? '—' }} {{ $certificate->student?->student_uid }} @if ($certificate->student?->academicClass) · {{ $certificate->student->academicClass->localizedName() }} @endif {{ $certificate->template?->localizedName() ?? '—' }} @if ($certificate->template) {{ $certificate->template->type->label() }} @endif {{ $certificate->academicYear?->name ?? '—' }} {{ $certificate->issued_on?->translatedFormat('d M Y') ?? '—' }} {{ $certificate->issuer?->name ?? '—' }} {{ $certificate->fileSizeLabel() }}
{{ __('app.actions.download') }} @can('certificates.delete') {{ __('app.actions.delete') }} @endcan
@if ($certificates->hasPages())
{{ $certificates->links() }}
@endif