@extends('admin.layouts.app') @section('title','Customer Details') @section('breadcrumb','Customers / '.$user->name) @section('content')
CUSTOMER PROFILE

{{ $user->name }}

{{ $user->email }} · Customer since {{ $user->created_at?->format('M d, Y') }}

{{ strtoupper(substr($user->name,0,1)) }}

{{ $user->name }}

{{ $user->is_active ? 'Active customer' : 'Inactive customer' }}
Email{{ $user->email }}
Phone{{ $user->phone ?: 'Not provided' }}
Customer ID#{{ str_pad((string)$user->id,6,'0',STR_PAD_LEFT) }}
Total Shipments{{ number_format($user->shipments_count) }}
Quotes{{ number_format($quotes->count()) }}
Delivered{{ number_format($shipments->where('status','Delivered')->count()) }}
Active Orders{{ number_format($shipments->whereIn('status',['Ordered','Sorting','In Transit','Out for Delivery'])->count()) }}

Customer details

Update contact and account status.

@csrf @method('PUT')

Recent activity

Customer-related operational history.

@forelse($activities as $activity)
@include('admin.partials.icon',['name'=>'users'])
{{ ucwords(str_replace(['.','_'],' ', $activity->action)) }}{{ $activity->metadata ?: 'Administrative activity' }}
@empty
No activity recorded for this customer.
@endforelse

Shipment history

Latest shipments associated with this customer.

View Shipments →
@forelse($shipments as $shipment)@empty@endforelse
Tracking IDServiceDestinationStatusCreated
{{ $shipment->tracking_id }}{{ $shipment->service_type }}{{ trim(($shipment->destination_city ? $shipment->destination_city.', ' : '').($shipment->destination_country ?: '—')) }}{{ $shipment->status }}{{ $shipment->created_at?->format('M d, Y') }}Open
No shipments found for this customer.

Quote requests

Recent quote activity from this customer.

All Quotes →
@forelse($quotes as $quote)@empty@endforelse
ServiceOriginDestinationStatusRequested
{{ $quote->service_type ?: 'Courier service' }}{{ $quote->origin ?: '—' }}{{ $quote->destination ?: '—' }}{{ ucfirst($quote->status) }}{{ $quote->created_at?->format('M d, Y') }}
No quote requests found.
@endsection