{{-- A good traveler has no fixed plans and is not intent upon arriving. --}}
Beneficiaries
@if (count($selectedstudents) > 0) {{-- bulk actions --}} @endif
@include('livewire.students.list-of-all-filters')
{{ __('Export') }}
@if (count($selectedstudents)) {{ count($selectedstudents) }} students selected | Deselect all @endif
@foreach ($students as $student) @endforeach
{{-- --}} #
Name @if ($sort_by == 'name') @if ($sort_order == 'asc') @else @endif @else {{-- Double cap for sortable but not active --}} @endif
Number @if ($sort_by == 'number') @if ($sort_order == 'asc') @else @endif @else {{-- Double cap for sortable but not active --}} @endif
Gender @if ($sort_by == 'gender') @if ($sort_order == 'asc') @else @endif @else {{-- Double cap for sortable but not active --}} @endif
Present Class Sponsored? Actions
{{ $student->name }}
{{ $student->name }}
{{ $student->number ?? '' }} {{ $student->gender == 'F' ? 'Female' : 'Male' }} @php $academics = App\Models\BeneficiaryInstitutionClass::where( 'beneficiary_id', $student->id, )->first(); @endphp @if ($academics != null) {{ $academics->institutionClass?->name ?? $academics->institutionClass?->description ?? '' }} @else {{ $student->present_class }} @endif {{ $student->sponsors->count() > 0 ? 'Sponsored' : 'Unsponsored' }}
@can('view-beneficiaries') Details
{{ App\Models\SponsorStudentLetter::where('student_id', $student->id)->where('direction', 1)->count() }}
{{ App\Models\SponsorStudentGift::where('student_id', $student->id)->count() }}
@endcan
{{ $students->links() }}