@extends('admin.layouts.app') @section('page-title', 'Customer Details') @section('content')
{{-- HEADER --}}

Customer Details

Back
{{-- CUSTOMER CARD --}}
{{-- Avatar --}}
{{ strtoupper(substr($customer->customer_name,0,1)) }}

{{ $customer->customer_name }}

{{ $customer->company_name }}
{{-- Customer Type --}} @if($customer->customer_type == 'premium') Premium Customer @else Regular Customer @endif
{{-- Status --}} @if($customer->status == 'active') Active @else Inactive @endif
{{-- BASIC INFO --}}
Contact Information

Email: {{ $customer->email }}

Mobile: {{ $customer->mobile_no }}

Address: {{ $customer->address }}

Pincode: {{ $customer->pincode }}

Account Information

Customer ID: {{ $customer->customer_id }}

Registered On: {{ $customer->created_at ? $customer->created_at->format('d-m-Y') : '-' }}

Designation: {{ $customer->designation ?? 'N/A' }}

{{-- STATISTICS --}}
{{-- Total Orders --}}
{{ $totalOrders }}

Total Orders

{{-- Total Amount --}}
₹{{ number_format($totalAmount, 2) }}

Total Amount Spent

{{-- Mark Count --}}
{{ $customer->marks->count() }}

Total Mark Numbers

{{-- MARK LIST --}}
Customer Mark Numbers
@if($customer->marks->count() == 0)

No mark numbers found.

@else
    @foreach($customer->marks as $mark)
  • {{ $mark->mark_no }} ({{ $mark->origin }} → {{ $mark->destination }})
  • @endforeach
@endif
@endsection