Showing {{ $pendingApplications->firstItem() ?? 0 }}
to {{ $pendingApplications->lastItem() ?? 0 }}
of {{ $pendingApplications->total() }} applications.
| S/L | Parent Information | Student Information | Contact Information | Status | Applied At | Actions |
|---|---|---|---|---|---|---|
| {{ ($pendingApplications->firstItem() ?? 0) + $key }} |
{{ strtoupper(substr($application->name ?? 'P', 0, 1)) }}
{{ $application->name ?? 'N/A' }}
Application ID:
#{{ str_pad($application->id, 6, '0', STR_PAD_LEFT) }}
Students:
{{ $application->students_count ?? $application->students->count() }}
|
@forelse($application->students as $pendingStudent)
@php
$studentRecord = $pendingStudent->student;
$sessionRecord = $pendingStudent->session;
$classRecord = $pendingStudent->getRelation('class');
$sectionRecord = $pendingStudent->section;
$groupRecord = $pendingStudent->group;
$studentName = $studentRecord?->student_name_english
?? $studentRecord?->student_name
?? $studentRecord?->name
?? 'Student not found';
$sessionName = $sessionRecord?->session_name
?? $sessionRecord?->name
?? 'N/A';
$className = $classRecord?->class_name
?? $classRecord?->name
?? 'N/A';
$sectionName = $sectionRecord?->section_name
?? $sectionRecord?->name
?? 'N/A';
$groupName = $groupRecord?->group_name
?? $groupRecord?->name
?? null;
$relationshipLabels = [
'father' => 'পিতা',
'mother' => 'মাতা',
'guardian' => 'অভিভাবক',
'other' => 'অন্যান্য',
];
$relationshipKey = strtolower((string) ($pendingStudent->relationship ?? ''));
$relationshipName = $relationshipLabels[$relationshipKey]
?? ($relationshipKey ? ucfirst($relationshipKey) : 'N/A');
@endphp
{{ $studentName }}
Roll: {{ $pendingStudent->class_roll ?? 'N/A' }}
|
Relation: {{ $relationshipName }}
|
{{ $application->phone ?: 'No phone number' }}
{{ $application->email ?: 'No email address' }}
|
{{ ucfirst($status) }} |
{{ $application->created_at?->format('d M, Y') ?? 'N/A' }}
{{ $application->created_at?->format('h:i A') ?? '' }}
|
|
No parent applications foundTry changing the filters. |
||||||
{{ $pendingApplications->onEachSide(1)->links() }}
@endif