{{ $totalApplications }}
{{ $pendingCount }}
{{ $appointedCount }}
{{ $rejectedCount }}
{{ $approvedCount }}
| # | Application Number | Applicant Gender | Service | Window | Type | Officer | Status | Date | |
|---|---|---|---|---|---|---|---|---|---|
| {{ ($applications->currentPage() - 1) * $applications->perPage() + $index + 1 }} | APP-{{ str_pad($application->id, 6, '0', STR_PAD_LEFT) }} | @if ($application->user && $application->user->gender) {{ ucfirst($application->user->gender) }} @else N/A @endif | @if ($application->service && $application->service->name) @php $serviceName = is_array($application->service->name) ? $application->service->name[app()->getLocale()] ?? ($application->service->name['en'] ?? current($application->service->name)) : $application->service->name; @endphp {{ $serviceName }} @else N/A @endif | @if ($application->service && $application->service->window && $application->service->window->name) @php $windowName = is_array($application->service->window->name) ? $application->service->window->name[app()->getLocale()] ?? ($application->service->window->name['en'] ?? current($application->service->window->name)) : $application->service->window->name; @endphp {{ $windowName }} @else N/A @endif | {{ ucfirst($application->apply_type) }} | @php $officerNames = ($application->service->users ?? collect()) ->map(function ($officer) { return is_array($officer->name) ? $officer->name[app()->getLocale()] ?? ($officer->name['en'] ?? current($officer->name)) : $officer->name; }); @endphp {{ $officerNames->isNotEmpty() ? $officerNames->join(', ') : 'N/A' }} | {{ ucfirst($application->status) }} | {{ $application->created_at->format('M d, Y') }} | |
|
No applications found for the selected filters. Try adjusting your filter criteria or check if there are applications in the database. |
|||||||||