Request #{{ $req->id }} —
@php
$color = match($req->status) {
'pending' => 'warning',
'approved' => 'info',
'rejected' => 'danger',
'completed' => 'success',
default => 'secondary'
};
@endphp
{{ strtoupper($req->status) }}
Employee: {{ $req->employee->name ?? $req->teacher->name ?? '--' }} ({{ $req->employee->e_id ?? $req->teacher->teacher_code ?? '--'}})
Requested: {{ number_format($req->requested_amount, 2) }}
Note: {{ $req->request_note ?? '—' }}
Approval Actions
@if(auth()->check() && (auth()->user()->hasAnyRole(['Admin', 'admin']) || auth()->user()->can('Approve Withdrawals Request')))
@endif
@if(auth()->check() && (auth()->user()->hasAnyRole(['Admin', 'admin']) || auth()->user()->can('Reject Withdrawals Request')))
@endif
Installment Schedule
| # | Due Date | Amount | Status | Paid At | Action |
|---|---|---|---|---|---|
| {{ $s->sequence_no }} | {{ optional($s->due_date)->format('d M Y') }} | {{ number_format($s->amount) }} | {{ strtoupper($s->status) }} | {{ $s->paid_at ? $s->paid_at->format('d M Y') : '—' }} | @if($s->status === \App\Models\WithdrawalSchedule::STATUS_SCHEDULED && $req->status === \App\Models\WithdrawalRequest::STATUS_APPROVED) @endif |
| No schedules available. | |||||
Supporting Documents
@forelse($req->attachments as $att)
@empty
No files uploaded.
@endforelseProvident Fund Summary
@php
$currentBalance = $account->current_balance ?? 0;
$lockedBalance = $account->locked_balance ?? 0;
$withdrawable = max(0, $currentBalance - $lockedBalance);
@endphp
- Current Balance {{ number_format($currentBalance, 2) }}
- Locked Balance {{ number_format($lockedBalance, 2) }}
- Withdrawable {{ number_format($withdrawable, 2) }}