@extends('admin.layouts.app') @section('title', $pageTitle ?? 'IMT Montessori Certificates') @section('content')

{{ $pageTitle ?? 'شهادات المنتسورى' }}

IMT Montessori Certificates
@if(isset($error))
Error: {{ $error }}
@endif @if(isset($debug))
Debug Information:
    @foreach($debug as $key => $value)
  • {{ $key }}: @if(is_array($value)) {{ implode(', ', $value) }} @else {{ $value }} @endif
  • @endforeach
@endif @if(isset($certificates) && $certificates->count() > 0)
@foreach($certificates as $certificate) @endforeach
ID Student Certificate Upload Date Actions
{{ $certificate->id }} @if($certificate->student) {{ $certificate->student->full_name }}
{{ $certificate->student->email ?? 'No email' }} @else Student not found @endif
@if($certificate->template) @php $fileExt = pathinfo($certificate->template, PATHINFO_EXTENSION); $isImage = in_array(strtolower($fileExt), ['jpg', 'jpeg', 'png']); @endphp @if($isImage) Certificate @else @endif
{{ basename($certificate->template) }} @else No file @endif
{{ date('M j, Y', $certificate->created_at) }}
@if($certificate->template) View Download @endif
{{ $certificates->links() }}
@else
No IMT Montessori Certificates Found

Start by uploading certificates for your students.

@endif
@endsection