@php $tenant = \App\Support\Facades\Tenancy::get(); $brandStyle = $tenant->brand_primary_color ? ":root { --color-brand-600: {$tenant->brand_primary_color}; } .dark { --color-brand-600: {$tenant->brand_primary_color}; }" : null; $statusColors = [ 'submitted' => 'slate', 'under_review' => 'amber', 'entrance_exam_scheduled' => 'amber', 'merit_listed' => 'brand', 'approved' => 'green', 'rejected' => 'red', 'enrolled' => 'green', ]; @endphp Merit List Public Form @php $tabs = [ 'active' => 'Applications', 'under_review' => 'Under Review', 'merit_listed' => 'Merit Listed', 'approved' => 'Approved', 'rejected' => 'Rejected', 'deleted' => 'Deleted', ]; @endphp
@foreach($tabs as $tabValue => $label) {{ $label }} @endforeach
@forelse($applications as $index => $application) @if($tab !== 'deleted' && ! $application->enrolled_student_id) @csrf @method('DELETE') @endif @empty @endforelse
# Reference Applicant Branch Applying For Session Status Submitted
{{ $applications->firstItem() + $index }} {{ $application->reference }}
@if($photo = $application->photoDocument()) {{ $application->applicantName() }} @else @endif {{ $application->applicantName() }}
{{ $application->branch->name }} {{ $application->schoolClass?->name ?? '—' }} {{ $application->academicSession->name }} {{ ucwords(str_replace('_', ' ', $application->status)) }} {{ $application->submitted_at?->format('M j, Y') }}
@if($tab === 'deleted')
@csrf
@else @unless($application->enrolled_student_id) @endunless @endif
No admission applications found.
{{ $applications->links() }}