@extends('layouts.app') @section('title', 'Front Desk Phone-First Search') @section('content')

Front Desk Customer Search

Phone-first search by UAE Mobile Number, WhatsApp, Passport Number, Emirates ID, UID, or Name.

@if(!empty($query))
Search results for "{{ $query }}" (Normalized: {{ $results['normalized_mobile'] }}) Found {{ count($results['customers']) }} Customers, {{ count($results['companies']) }} Companies
@forelse($results['customers'] as $customer)
{{ strtoupper(substr($customer->first_name, 0, 1)) }}

{{ $customer->full_name_en }}

@if($customer->is_vip) VIP @endif
Code: {{ $customer->customer_code }} • Mobile: {{ $customer->contact ? $customer->contact->primary_mobile : 'N/A' }} • Nationality: {{ $customer->nationality }}
@empty
No matching customer profile found for "{{ $query }}".
+ Create New Customer Profile
@endforelse
@endif
@endsection