@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; $statusColors = ['pending' => 'amber', 'approved' => 'green', 'rejected' => 'red']; $tenantTimezone = $tenant->timezone ?? config('app.timezone'); $local = fn ($carbon) => $carbon?->copy()->setTimezone($tenantTimezone); @endphp
@forelse($requests as $req) @empty @endforelse
# Guardian Student Initiated By Requested Status Reviewed By
{{ $loop->iteration }}

@if($req->isNewGuardian()) {{ $req->newGuardianFullName() }} New {{ ucfirst($req->new_guardian_relationship) }} · {{ $req->new_guardian_phone }}{{ $req->new_guardian_email ? ' · '.$req->new_guardian_email : '' }} @else {{ $req->guardian->fullName() }} {{ ucfirst($req->guardian->relationship) }} · {{ $req->guardian->phone }} @endif

{{ $req->student->fullName() }} {{ $req->student->student_code }}{{ $req->student->section ? ' · '.$req->student->section->schoolClass->name.' '.$req->student->section->name : '' }} {{ $req->initiated_by === 'student' ? 'Student' : 'Guardian' }} @if($req->requestedBy) {{ $req->requestedBy->name }} @endif {{ $req->created_at->format('M j, Y') }} {{ ucfirst($req->status) }} {{ $req->reviewedBy?->name ?? '—' }} @if($req->status === 'pending')
@csrf
@csrf
@endif
No guardian link requests yet.