@extends('layouts.app') @section('title', 'Review Application') @section('subtitle', $application->fullName()) @section('content') Inbox

Applicant details

{{ $statuses[$application->status] ?? ucfirst($application->status) }}
@php $rows = [ 'Full name' => $application->fullName(), 'Email' => $application->email, 'Phone' => $application->phone, 'Date of birth' => $application->date_of_birth?->format('j M Y') ?? '—', 'Licence class' => 'Class '.$application->license_type, 'Course of interest' => $application->course?->name ?? 'Not specified', 'Preferred start' => $application->preferred_start_date?->format('j M Y') ?? 'Flexible', ]; @endphp @foreach ($rows as $label => $value)
{{ $label }} {{ $value }}
@endforeach @if ($application->message)
Message from applicant
{{ $application->message }}
@endif
@if ($application->reviewer)
Last reviewed by {{ $application->reviewer->name }} on {{ $application->reviewed_at?->format('j M Y, g:i A') }}.
@endif
@if ($application->status !== 'approved')

Approve enrollment

Approving creates a student portal account with the default password password and enrols them in the selected course. You'll be taken to the student profile to assign a trainer and confirm details.

@csrf
@endif

Update status

@csrf @method('PATCH')
Email applicant @if ($application->phone) Call applicant @endif
@endsection