@extends('emails.layouts.base') @section('content') @php $isAccepted = ($admission_status ?? '') === 'accepted'; $isRejected = ($admission_status ?? '') === 'rejected'; $headline = match ($admission_status ?? '') { 'accepted' => 'Admission offer — congratulations!', 'rejected' => 'Update on your application', 'waitlisted' => 'Application update — waiting list', default => 'Application status updated', }; @endphp

{{ $headline }}

Dear {{ $recipient_name ?? 'Parent/Guardian' }},

@if($isAccepted)

Congratulations! We are delighted to offer {{ $applicant_name }} admission to {{ $school_name }}.

@elseif($isRejected)

Thank you for your interest in {{ $school_name }}. After careful consideration, we are unable to offer {{ $applicant_name }} a place at this time. This decision is no reflection on your child's potential — places are limited.

@else

There has been an update to the application for {{ $applicant_name }} at {{ $school_name }}.

@endif @include('emails.partials.info-table', ['rows' => [ 'Applicant' => $applicant_name, 'Application No.' => $application_no, 'Class Applied For' => $class_name ?? null, 'Status' => ucfirst($admission_status ?? ''), ]]) @if($isAccepted && !empty($next_steps))
Next steps: {!! e($next_steps) !!}
@endif @include('emails.partials.button', [ 'label' => 'Contact the School Office', 'url' => $contact_url ?? $portal_url, ]) @endsection