@php $order = ['submitted', 'under_review', 'entrance_exam_scheduled', 'merit_listed', 'approved', 'enrolled']; $currentIndex = array_search($application->status, $order, true); $labels = [ 'submitted' => 'Submitted', 'under_review' => 'Under Review', 'entrance_exam_scheduled' => 'Entrance Exam', 'merit_listed' => 'Merit Listed', 'approved' => 'Approved', 'enrolled' => 'Enrolled', 'payment' => 'Payment', ]; @endphp Application {{ $application->reference }} — {{ $tenant->name }} @vite(['resources/css/app.css', 'resources/js/app.js'])
@if($tenant->logo_path) {{ $tenant->name }} logo @else
{{ \Illuminate\Support\Str::of($tenant->name)->substr(0, 1) }}
@endif {{ $tenant->name }}

Application Reference

{{ $application->reference }}

{{ $application->applicantName() }}

@if($application->branch->campus)
Campus
{{ $application->branch->campus->name }}
@endif
Branch
{{ $application->branch->name }}
@if($application->schoolClass)
Class
{{ $application->schoolClass->name }}
@endif @if($application->section)
Section
{{ $application->section->name }}
@endif @if($application->section?->shift)
Shift
{{ $application->section->shift->name }}
@endif
Session
{{ $application->academicSession->name }}
@if($application->status === 'rejected')
This application was not approved. {{ $application->notes ? '"'.$application->notes.'"' : '' }}
@else
    @foreach($order as $index => $step) @php $state = $currentIndex === false ? 'pending' : ($index <= $currentIndex ? 'complete' : 'pending'); @endphp
  1. @if(!$loop->last) @endif @if($state === 'complete')@else @endif

    {{ $labels[$step] }}

    @if($step === 'entrance_exam_scheduled' && $application->testAttempts->isNotEmpty()) @php $attempt = $application->testAttempts->first(); @endphp @if($attempt->hasSubmitted())

    Test submitted.

    Score
    {{ $attempt->score }} / {{ $attempt->total_marks }}
    Correct
    {{ $attempt->correctCount() }} / {{ count($attempt->question_ids) }}
    Time Taken
    {{ gmdate('i:s', $attempt->secondsTaken()) }}
    @else

    Go to your admission test

    @endif @endif @if($step === 'merit_listed') @if($rank)
    #{{ $rank }}

    Your position on the merit list for {{ $application->schoolClass?->name }}.

    @elseif(in_array($application->status, ['submitted', 'under_review', 'entrance_exam_scheduled'], true) && $application->testAttempts->firstWhere('submitted_at', '!=', null))

    Your merit list position will appear here once the admissions office finalizes the ranking.

    @endif @endif
  2. @endforeach @php $invoice = $application->admissionFeeInvoice; $paid = $invoice && $invoice->status === 'paid'; $canPay = $currentIndex !== false && $currentIndex >= array_search('approved', $order, true); @endphp
  3. @if($paid)@else @endif

    Payment

    @if(! $invoice)

    No admission fee invoice on file.

    @elseif($paid)

    Admission fee paid — Invoice {{ $invoice->invoice_number }}

    @else

    Admission fee outstanding — Invoice {{ $invoice->invoice_number }}. @if($canPay) Pay now @else Pay now @endif

    @endif
@endif
Track another application