@extends('layouts.admin') @section('title', 'Customer Profile: ' . $customer->full_name . ' – Admin CRM') @section('page_title', 'Customer 360: ' . $customer->full_name) @section('content')
Back to All Customers Code: {{ $customer->customer_code }}
{{ strtoupper(substr($customer->full_name, 0, 1)) }}

{{ $customer->full_name }}

{{ $customer->phone }}

{{ $customer->status }}
Email: {{ $customer->email }}
Alternate Phone: {{ $customer->alternate_phone ?? 'None' }}
Preferred Contact: {{ $customer->preferred_contact ?? 'whatsapp' }}
City / District: {{ $customer->city ?? 'Dhaka' }}, {{ $customer->district ?? 'Dhaka' }}
Address:

{{ $customer->address ?? 'Showroom Collection' }}

Internal Sales & CRM Notes

@csrf
@csrf

Vehicle Orders ({{ $customer->orders->count() }})

@if($customer->orders->count() > 0)
@foreach($customer->orders as $order)
#{{ $order->order_number }}

{{ $order->car_title }} (Chassis: {{ $order->chassis_number ?? 'Pending' }})

{{ str_replace('_', ' ', $order->status) }} ৳{{ number_format($order->total_amount_bdt) }}
Manage
@endforeach
@else

No confirmed vehicle orders on record for this customer.

@endif

Auction Bid Authorizations ({{ $customer->bids->count() }})

@if($customer->bids->count() > 0)
@foreach($customer->bids as $bid)
{{ $bid->auctionVehicle->brand ?? '' }} {{ $bid->auctionVehicle->model ?? 'Vehicle' }}

Lot #{{ $bid->auctionVehicle->lot_number ?? 'N/A' }} · {{ $bid->created_at->format('M d, Y') }}

¥{{ number_format($bid->max_bid_jpy) }} Landed: ৳{{ number_format($bid->estimated_landed_cost_bdt) }}
{{ $bid->status }}
Review
@endforeach
@else

No auction bids placed by this client yet.

@endif
@endsection