{{ __('All School Applications') }} {{ __('Review and manage incoming school registration requests.') }}
@foreach($applicants as $applicant) @php $badgeColor = match($applicant->status) { 'approved' => 'success', 'pending' => 'warning', 'paid' => 'primary', 'database_pending' => 'info', 'rejected' => 'danger', default => 'secondary', }; @endphp @endforeach @if($applicants->isEmpty()) @endif
{{ __('ID') }} {{ __('School Name') }} {{ __('Email') }} {{ __('Username') }} {{ __('Amount Paid') }} {{ __('Status') }} {{ __('Created At') }} {{ __('Action') }}
{{ $applicant->id }} {{ $applicant->school_name }} {{ $applicant->email }} {{ $applicant->username }} ${{ number_format($applicant->amount_paid, 2) }} {{ $applicant->status }} {{ $applicant->created_at->format('M d, Y H:i') }}
@if(in_array($applicant->status, ['pending', 'paid']) && ($applicant->amount_paid >= 50 || $applicant->status == 'paid'))
@csrf
@elseif($applicant->status == 'database_pending')
@csrf
@elseif($applicant->status == 'approved') {{ __('Provisioned') }} @elseif($applicant->status == 'rejected') {{ __('Rejected') }} @else {{ __('Awaiting Payment') }} @endif
@if(!in_array($applicant->status, ['approved', 'rejected'])) @endif
{{ __('No school applications found.') }}