@extends('layouts.school') @section('title', 'Admissions') @section('header', 'Admissions & Applications') @section('content')

Total

{{ $counts['total'] }}

Pending

{{ $counts['pending'] }}

Accepted

{{ $counts['accepted'] }}

Rejected

{{ $counts['rejected'] }}

@php $intakeOpen = \App\Models\SiteSetting::get('admissions.open', '1', request()->route('schoolId')) === '1'; @endphp Intake {{ $intakeOpen ? 'Open' : 'Closed' }}
@csrf
View Public Form + New Application
@forelse($applications as $app) @empty @endforelse
App No Applicant Class Applied Parent Date Status
{{ $app->application_no }} {{ $app->full_name }}

{{ $app->email }}

{{ $app->classroom?->name ?? '—' }} {{ $app->parent_name ?? '—' }} {{ $app->created_at->format('d M Y') }} @php $colors = [ 'pending' => 'bg-amber-50 text-amber-700', 'under_review' => 'bg-blue-50 text-blue-700', 'accepted' => 'bg-green-50 text-green-700', 'rejected' => 'bg-red-50 text-red-700', 'converted' => 'bg-purple-50 text-purple-700', ]; $labels = [ 'pending' => 'Pending', 'under_review' => 'Under Review', 'accepted' => 'Accepted', 'rejected' => 'Rejected', 'converted' => 'Converted', ]; @endphp {{ $labels[$app->status] ?? $app->status }}
No applications found.
{{ $applications->links() }}
@endsection