@extends('layouts.app') @section('content') {{-- SweetAlert2 for Validation Popups --}} {{-- 1. FIXED BACKGROUND --}}
{{-- 2. SCROLLABLE CONTENT --}}
{{-- ALERTS (Flash Messages) --}} @if(session('error')) @endif @if(session('status')) @endif {{-- ==================== STATUS SECTION ==================== --}}
{{-- (Status Logic kept same as before) --}} @if($user->blacklisted)
Account Blacklisted
@if($user->blacklist_reason)

Reason for suspension

{{ $user->blacklist_reason }}

@endif @elseif($user->accountStat == 'Confirmed' || $user->accountStat == 'active')
Account Verified
@elseif($user->accountStat == 'pending')
Pending Verification

Staff is reviewing your details. This usually takes 24 hours.

@elseif($user->accountStat == 'rejected')
Verification Rejected
@if($user->rejection_reason)

Please fix the following:

"{{ $user->rejection_reason }}"

@endif @else
Unverified

Please complete your profile to verify your account.

@endif
{{-- ==================== PROFILE HEADER (Avatar) ==================== --}}

Complete Your Profile

These details are required for insurance and refunds.

{{-- Avatar Display --}}
@if($user->avatar) {{-- FIXED: Correct Path --}} @else @endif
{{-- AVATAR FORM (Separate from Main Info) --}}
@csrf {{-- Hidden File Input --}} {{-- The Pencil Button --}}
{{-- VALIDATION ERRORS --}} @if ($errors->any())
Please fix the following:
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif {{-- ================= FORM 1: MAIN PROFILE INFO ================= --}}
@csrf @method('PUT')
{{-- LEFT: Personal Info --}}

Personal Information

{{-- FULL NAME: Uppercase --}}
{{-- EMERGENCY CONTACT --}}

Emergency Contact

{{-- NATIONALITY: Country Dropdown --}}
{{-- RIGHT: Documents & Address --}}

Documents & Address

{{-- STAFF/STUDENT ID: Uppercase --}}
{{-- IC / PASSPORT: Uppercase String --}}
{{-- DRIVING LICENSE: Expiry Date (Replaced Number) --}}
{{-- COLLEGE ADDRESS: UTM Colleges Dropdown --}}
{{-- FACULTY: UTM Faculties Dropdown --}}
{{-- BANK DETAILS: All Malaysia Banks --}}

Refund Information (Bank Details)

{{-- ================= FORM 2: PASSWORD UPDATE ================= --}}
@csrf @method('PUT')

Edit Password

Update your password securely here.

{{-- 1. Current Password --}}
{{-- 2. GRID ROW FOR NEW PASS, CONFIRM PASS, AND BUTTON --}}
{{-- New Password --}}
{{-- Confirm Password --}}
{{-- FORM 2 SUBMIT BUTTON --}}
{{-- BACK HOME LINK --}}
{{-- VALIDATION ERROR POPUP --}} @if ($errors->any()) @endif @endsection