@extends('admin.layouts.app') @section('title', $pageTitle ?? 'IMT Montessori Certificates') @section('content')
| 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)
{{ basename($certificate->template) }} @else No file @endif |
{{ date('M j, Y', $certificate->created_at) }} |
Start by uploading certificates for your students.