@php $role = session('login_role'); $rolePath = $role === 'staff' ? 'staff' : 'student'; $portal = $role === 'staff' ? 'STAFF PORTAL' : 'PATIENT PORTAL'; $defaultTotal = $role === 'staff' ? 250 : 100; $total = (float)($allocation['total_amount'] ?? 0); if ($total <= 0) { $total = $defaultTotal; } $used = (float)($allocation['used_amount'] ?? 0); $balance = (float)($allocation['balance_amount'] ?? 0); if ($balance <= 0 && $used <= 0) { $balance = $total; } $percent = $total > 0 ? min(100, ($used / $total) * 100) : 0; @endphp My Profile - PKU Dental

My Profile

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

Profile Settings

Manage your account information

@if(session('success'))
{{ session('success') }}
@endif @if(session('error') || $errors->any())
Please check your profile information.
@endif
{{ strtoupper(substr($profile['full_name'] ?? 'U', 0, 1)) }}

{{ $profile['full_name'] ?? 'User' }}

{{ $profile['upsi_id'] ?? '-' }} · {{ ucfirst($role) }}

Active {{ ucfirst($role) }}

ALLOCATION

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

Personal Information

@csrf
Cancel