@php $name = $profile['full_name'] ?? 'Staff'; $staffId = $profile['upsi_id'] ?? ''; $rolePath = 'staff'; $total = (float)($allocation['total_amount'] ?? 0); $used = (float)($allocation['used_amount'] ?? 0); $balance = (float)($allocation['balance_amount'] ?? ($total - $used)); $isFullyUsed = $total > 0 && $balance <= 0; @endphp Book Appointment - Staff

Book Appointment — Step 1 of 4

{{ now()->format('D, d M Y') }}

Select Patient

Please select whether this appointment is for yourself or a registered dependent.

1
Select Patient
2
Appointment Type
3
Choose Date
4
Select Time
Only registered dependents linked to your staff profile will be displayed.
@csrf

Who is this appointment for?

@forelse($dependents as $dep) @empty
No dependents registered under this staff profile.
@endforelse
← Back to Dashboard
@if($isFullyUsed)
!

Allocation Fully Utilized

Your annual dental allocation of RM{{ number_format($total, 2) }} has been fully utilised for this year. You will not be able to book further appointments.

Allocation Summary

Total RM{{ number_format($total, 2) }}
Used RM{{ number_format($used, 2) }}
Remaining RM{{ number_format($balance, 2) }}

Allocation resets on 1 January {{ now()->addYear()->format('Y') }}. Contact PKU for emergencies.

@endif