@extends('adminlte::page') @section('title', 'Customer Details - MobileSentrix Admin') @section('content_header')

Customer Details

Back to Customers Edit Customer
@stop @section('content')
{{ strtoupper(substr($customer->name, 0, 1)) }}

{{ $customer->name }}

{{ $customer->email }}

{{ $stats['total_orders'] }}

Total Orders

${{ number_format($stats['total_spent'], 2) }}

Total Spent

{{ $stats['pending_orders'] }}

Pending Orders

{{ $stats['completed_orders'] }}

Completed Orders

Order History

@forelse($customer->orders as $order) @empty @endforelse
Order # Date Items Total Status Actions
{{ $order->order_number }} {{ $order->created_at->format('M d, Y') }}
{{ $order->created_at->format('h:i A') }}
{{ $order->orderItems->count() }} items ${{ number_format($order->total, 2) }} @php $badgeClass = match($order->status) { 'completed' => 'badge-success', 'pending' => 'badge-warning', 'processing' => 'badge-info', 'cancelled' => 'badge-danger', 'refunded' => 'badge-secondary', default => 'badge-light', }; @endphp {{ ucfirst($order->status) }} View
No orders found
@stop @section('js') @stop