@extends('layouts.admin') @section('title', 'Customer Profile - ' . $customer->name) @section('content')
Manage details, shipments, and rewards for this customer.
Customer ID: {{ $customer->id }}
Phone
{{ $customer->phone }}
{{ $customer->email }}
Total Shipments
{{ $customer->shipments->count() }}
Reward Points
{{ number_format($customer->points ?? 0) }}
Renewal Date
{{ $customer->renewal_date ? $customer->renewal_date->format('M d, Y') : '-' }}
Name: {{ $customer->name }}
Phone: {{ $customer->phone }}
Email: {{ $customer->email }}
Address: {{ $customer->address ?? '-' }}
{{ number_format($customer->points ?? 0) }} pts
Lifetime Earned: {{ number_format($customer->lifetime_points ?? 0) }}
| Tracking | Weight | Price | Status | Date | |
|---|---|---|---|---|---|
| {{ $shipment->tracking_number }} | {{ $shipment->weight }} kg | ₦{{ number_format($shipment->price, 2) }} | @php $statusColors = [ 'Delivered' => 'bg-green-100 text-green-700', 'In Transit' => 'bg-blue-100 text-blue-700', 'Pending' => 'bg-amber-100 text-amber-700', 'Cancelled' => 'bg-red-100 text-red-700', ]; @endphp {{ $shipment->status }} | {{ $shipment->created_at->format('Y-m-d') }} | View |
| No shipments found. | |||||
{{ $shipment->tracking_number }}
{{ $shipment->status }}{{ $shipment->weight }} kg • ₦{{ number_format($shipment->price, 2) }}
No shipments found.
@endforelse| Invoice # | Amount | Status | Date | |
|---|---|---|---|---|
| {{ $invoice->invoice_number }} | ₦{{ number_format($invoice->amount, 2) }} | {{ $invoice->status }} | {{ $invoice->created_at->format('Y-m-d') }} | View |
| No invoices found. | ||||
{{ $invoice->invoice_number }}
{{ $invoice->status }}₦{{ number_format($invoice->amount, 2) }}
No invoices found.
@endforelse{{ $reward->type }}
{{ $reward->created_at->format('Y-m-d') }}{{ $reward->points }} pts
{{ $reward->description ?? '-' }}
No reward points history found.
@endforelse