@extends('layouts.portal') @section('title', 'Application '.$a->code) @section('subtitle', $a->user->name.' · '.$a->course->title) @section('actions') Admissions@endsection @section('content') @php $d = (array) $a->details; $canDecide = auth()->user()->hasPermission('admissions.manage') && ($a->isOpen() || ($a->status === 'approved' && ! $a->enrollment_id)); @endphp

Applicant

{{ $a->statusLabel() }}
Name
{{ $a->user->name }} @if($a->user->email_verified_at)email verified@endif
Email
{{ $a->user->email }}
Phone
@if(! empty($d['phone'])){{ $d['phone'] }} · WhatsApp@endif
City
{{ $d['city'] ?? '—' }}
Education
{{ $d['education'] ?? '—' }}
Experience
{{ $d['experience'] ?? '—' }}
Employer / university
{{ $d['organisation'] ?? '—' }}
Heard from
{{ $d['heard_from'] ?? '—' }} · tracked source: {{ $a->attribution['last']['utm_source'] ?? 'direct' }}{{ ! empty($a->attribution['last']['utm_campaign']) ? ' / '.$a->attribution['last']['utm_campaign'] : '' }}
Programme
{{ $a->course->title }} · {{ $a->batch?->label() ?? 'next available batch' }}
@if($a->document_path)
Document
Download
@endif
@if(! empty($d['message']))
{{ $d['message'] }}
@endif @if($a->decision_note)
Last message to applicant: {{ $a->decision_note }}
@endif @if($a->enrollment)
Enrollment {{ $a->enrollment->code }} · {{ ucfirst($a->enrollment->status) }} · payment {{ $a->enrollment->payment_status }}@if($a->enrollment->fee_status === 'awaiting') · set the fee@endif
@endif
@if($canDecide)

Decision

@csrf
@unless($a->course->feeOnRequest()) @else @endunless
@endif
@endsection @push('scripts')@endpush