@extends('layouts.staff') @section('content')
{{-- 1. HEADER --}}

Customer Profile

Viewing details for {{ $customer->fullName }}

{{-- Status Badge --}}
Account Status @if($customer->blacklisted) BLACKLISTED @elseif($customer->accountStat == 'Confirmed' || $customer->accountStat == 'active') Confirmed @elseif($customer->accountStat == 'pending') PENDING @elseif($customer->accountStat == 'rejected') REJECTED @else UNVERIFIED @endif
{{-- Status Indicator Dot --}} @if($customer->blacklisted)
@elseif($customer->accountStat == 'Confirmed' || $customer->accountStat == 'active')
@elseif($customer->accountStat == 'pending')
@elseif($customer->accountStat == 'rejected')
@else
@endif
{{-- 2. ALERTS (Blacklist/Reject Reasons) --}} @if($customer->blacklisted && $customer->blacklist_reason)

Blacklist Reason

{{ $customer->blacklist_reason }}

@endif @if(!$customer->blacklisted && $customer->accountStat == 'rejected' && $customer->rejection_reason)

Rejection Reason

{{ $customer->rejection_reason }}

@endif

Account Actions

Review details and manage access.

Penalty History @if($customer->blacklisted)
@csrf
@else {{-- REJECT BUTTON: Hide if Verified OR Already Rejected --}} @if($customer->accountStat !== 'active' && $customer->accountStat !== 'Confirmed' && $customer->accountStat !== 'rejected') @endif {{-- APPROVE BUTTON: Hide if already Verified (But KEEP if Rejected, so you can change your mind) --}} @if($customer->accountStat !== 'active' && $customer->accountStat !== 'Confirmed')
@csrf
@endif @endif
{{-- 3. LAYOUT GRID --}}
{{-- LEFT COLUMN: PROFILE CARD --}}
{{-- Profile Card --}}
{{ substr($customer->fullName, 0, 1) }}

{{ $customer->fullName }}

{{ $customer->email }}

Joined {{ $customer->created_at->format('M Y') }}
{{-- Contact Info --}}

Contact Details

Phone Number

{{ $customer->phoneNo ?? 'Not Provided' }}

Address

{{ $customer->homeAddress ?? 'N/A' }}

Faculty / College

{{ $customer->faculty ?? 'N/A' }}

{{ $customer->collegeAddress }}

{{-- Emergency Contact --}}

Emergency Contact

{{ $customer->emergency_contact_name ?? 'N/A' }}

{{ $customer->emergency_contact_no ?? '' }}

{{-- RIGHT COLUMN: ACTIONS & DETAILS --}}
{{-- Action Bar --}} {{-- Identity Verification --}}

Identity Verification

IC / Passport No
{{ $customer->ic_passport ?? 'Not Provided' }}
Driving License
{{ $customer->driving_license_expiry ?? 'Not Provided' }}
Student ID
{{ $customer->stustaffID ?? 'N/A' }}
Date of Birth
{{ $customer->dob ? \Carbon\Carbon::parse($customer->dob)->format('d M Y') : 'N/A' }}
{{-- Bank Details --}}

Bank Information

Bank Name
{{ $customer->bankName ?? 'Not Provided' }}
Account Number
{{ $customer->bankAccountNo ?? 'Not Provided' }}
{{-- Documents Grid --}}

Uploaded Documents

@foreach([ ['label' => 'Driving License', 'file' => $customer->driving_license_image], ['label' => 'Student ID', 'file' => $customer->student_card_image], ['label' => 'IC / Passport', 'file' => $customer->ic_passport_image] ] as $doc)
{{ $doc['label'] }}
@endforeach
{{-- === MODALS === --}} {{-- REJECT MODAL --}}

Reject Application

Select specific reasons for rejection.

@csrf
@foreach(['Unclear ID/Passport Photo', 'Driving License Expired', 'Selfie Verification Failed', 'Incomplete Profile', 'Document Mismatch', 'Blurry Documents', 'Other'] as $reason) @endforeach
{{-- BLACKLIST MODAL --}}

Blacklist Customer

This will block the user from making future bookings.

@csrf
{{-- PENALTY MODAL --}}

Impose Penalty

Charge fees for violations or damages.

@csrf
@endsection