@php $role = session('login_role'); $rolePath = $role === 'staff' ? 'staff' : 'student'; $portal = $role === 'staff' ? 'STAFF PORTAL' : 'STUDENT PORTAL'; $total = (float)($allocation['total_amount'] ?? 0); $used = (float)($allocation['used_amount'] ?? 0); $balance = (float)($allocation['balance_amount'] ?? ($total - $used)); $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