@forelse($applications as $app)
@php
$isLeave = $app->application_type === 'leave';
$statusStyles = [
'submitted' => 'bg-slate-100 text-slate-700', 'viewed' => 'bg-blue-50 text-blue-700',
'approved' => 'bg-emerald-50 text-emerald-700', 'rejected' => 'bg-red-50 text-red-700',
'processed' => 'bg-amber-50 text-amber-700', 'delivered' => 'bg-green-50 text-green-700',
];
$statusClass = $statusStyles[$app->status] ?? 'bg-gray-100 text-gray-600';
@endphp
{{ strtoupper(substr($app->student_name, 0, 1)) }}
{{ $app->student_name }}
{{ $app->admission_no }} · {{ $app->class_name }}-{{ $app->section_name }}
{{ $app->status }}
{{ ucfirst($app->application_type) }}
{{ $app->subject }}
{{ \Carbon\Carbon::parse($app->created_at)->format('d M Y, h:i A') }}