@extends('layouts.school') @section('title', 'Application ' . $application->application_no) @section('header', 'Application Details') @section('content')
← Back to Applications
{{-- Applicant Details --}}

{{ $application->full_name }}

{{ $application->application_no }}

@php $colors = [ 'pending' => 'bg-amber-50 text-amber-700 border-amber-200', 'under_review' => 'bg-blue-50 text-blue-700 border-blue-200', 'accepted' => 'bg-green-50 text-green-700 border-green-200', 'rejected' => 'bg-red-50 text-red-700 border-red-200', 'waitlisted' => 'bg-orange-50 text-orange-700 border-orange-200', 'converted' => 'bg-purple-50 text-purple-700 border-purple-200', ]; $labels = [ 'pending' => 'Pending', 'under_review' => 'Under Review', 'accepted' => 'Accepted', 'rejected' => 'Rejected', 'waitlisted' => 'Waitlisted', 'converted' => 'Converted to Student', ]; @endphp {{ $labels[$application->status] ?? $application->status }}

Email

{{ $application->email }}

Phone

{{ $application->phone ?? '—' }}

Date of Birth

{{ $application->date_of_birth?->format('d M Y') ?? '—' }}

Gender

{{ ucfirst($application->gender ?? '—') }}

Class Applied For

{{ $application->classroom?->name ?? '—' }}

Previous School

{{ $application->previous_school ?? '—' }}

@if($application->address)

Address

{{ $application->address }}

@endif

Applied On

{{ $application->created_at->format('d M Y, h:i A') }}

{{-- Parent/Guardian --}} @if($application->parent_name || $application->parent_email || $application->parent_phone)

Parent / Guardian

Name

{{ $application->parent_name ?? '—' }}

Email

{{ $application->parent_email ?? '—' }}

Phone

{{ $application->parent_phone ?? '—' }}

Occupation

{{ $application->parent_occupation ?? '—' }}

@endif
{{-- Sidebar: Actions --}}

Review Application

@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif
@csrf @method('PATCH')
@if($application->status === 'accepted')

Convert to Student

This will create a new student record and enroll them in the current academic year.

@csrf
@endif @if(in_array($application->status, ['pending', 'under_review', 'rejected']))
@csrf @method('DELETE')
@endif
@endsection