@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; @endphp
@if($departingMembers->isNotEmpty())

{{ $departingMembers->count() }} {{ \Illuminate\Support\Str::plural('member', $departingMembers->count()) }} left the school with library business unfinished

    @foreach($departingMembers as $member) @php $openLoans = $member->transactions->where('type', 'issue')->whereIn('status', ['active', 'overdue']); $unpaidFineCents = $member->transactions->where('fine_cents', '>', 0)->where('fine_paid', false)->sum('fine_cents'); @endphp
  • {{ $member->holderName() }} ({{ $member->member_code }}) — {{ ucfirst($member->holder()->status) }}: @if($openLoans->count() > 0) {{ $openLoans->count() }} unreturned {{ \Illuminate\Support\Str::plural('book', $openLoans->count()) }} @endif @if($openLoans->count() > 0 && $unpaidFineCents > 0) · @endif @if($unpaidFineCents > 0) {{ \App\Support\Money::format($unpaidFineCents) }} unpaid @endif
  • @endforeach
@endif
@if($selectedSchoolClassId || $selectedSectionId) Clear @endif

Filters student members only — staff members have no class/section.

@forelse($members as $index => $member) @empty @endforelse
# Member Code Name Type Class Section Start Date Status
{{ $index + 1 }} {{ $member->member_code }}
@if($member->holder()?->photo_path) {{ $member->holderName() }} @else
{{ strtoupper(substr($member->holderName(), 0, 2)) }}
@endif {{ $member->holderName() }}
{{ $member->student_id ? 'Student' : 'Employee' }} {{ $member->student?->section?->schoolClass?->name ?? '—' }} @php $stream = $member->student?->section?->stream ?? $member->student?->stream; @endphp {{ $member->student?->section?->name ?? '—' }} @if($stream) · {{ $stream->name }} @endif {{ optional($member->start_date)->format('M j, Y') ?? '—' }} {{ ucfirst($member->status) }}
No members registered yet.
@csrf