@extends('mainlayout.layout') @php($customerName = trim($customer->first_name . ' ' . $customer->middle_name . ' ' . $customer->last_name)) @section('title', config('app.name') . ' | ' . ($customerName ?: 'Customer')) @section('topbar-search', 'enabled') @section('content')
Dashboard Customer

{{ $customerName ?: 'Customer details' }}

Customer profile and order history.

Recent orders

The latest orders placed by this customer.

{{ $orders->count() }} {{ Str::plural('order', $orders->count()) }}
@forelse($orders as $order) @empty @endforelse
Order IDProperty & plotPayment planAmountStatus
{{ $order->referenceid ?: $order->id }} {{ optional($order->property)->name ?: 'Property not available' }}Plot {{ optional($order->plot)->plotnumber ?: 'not selected' }} {{ ucfirst($order->order_type ?: 'Not specified') }} TZS {{ number_format((int) $order->amount) }} {{ $order->status_description ?: 'Status unavailable' }}
No orders found for this customer.
@endsection @push('scripts') @endpush