@extends('layouts.school') @section('title', 'Applications') @section('header', 'Applications') @section('content')
@foreach ([ ['label' => 'All', 'key' => 'all', 'color' => 'text-gray-900'], ['label' => 'Submitted', 'key' => 'submitted', 'color' => 'text-blue-600'], ['label' => 'Under Review', 'key' => 'under_review', 'color' => 'text-indigo-600'], ['label' => 'Correction', 'key' => 'awaiting_correction', 'color' => 'text-amber-600'], ['label' => 'Approved', 'key' => 'approved', 'color' => 'text-green-600'], ['label' => 'Rejected', 'key' => 'rejected', 'color' => 'text-red-600'], ['label' => 'Withdrawn', 'key' => 'withdrawn', 'color' => 'text-gray-500'], ] as $tab)

{{ $tab['label'] }}

{{ $counts[$tab['key']] }}

@endforeach
@forelse ($applications as $application) @empty @endforelse
Applicant Reference Programme Class Submitted Status
{{ $application->full_name }}

{{ $application->email }}

{{ $application->application_no }} {{ $application->programme?->name ?? '—' }} {{ $application->desiredClass?->name ?? '—' }} {{ $application->submitted_at?->format('M j, Y') ?? '—' }} {{ $application->status_label }}
No applications match your filters.
{{ $applications->links() }}
@endsection