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

{{ $customer->name }}

{{ $customer->customer_type }}

{{ $customer->customer_code }} • {{ $customer->phone }} • {{ $customer->city ?? 'Kerala' }}

Total Bookings {{ $customer->rentals->count() }} Rentals recorded
Security Deposit Held ₹{{ number_format($customer->security_deposit_held, 2) }} Refundable liability
Advance Balance ₹{{ number_format($customer->advance_balance, 2) }} Available to allocate
Outstanding Balance ₹{{ number_format($customer->outstanding_balance, 2) }} Receivables

Rental History & Costumes

@forelse($customer->rentals as $rental)
{{ $rental->order_number }} {{ $rental->status }}

{{ $rental->rental_start_date->format('d M') }} to {{ $rental->rental_end_date->format('d M Y') }} • {{ $rental->allocations->count() }} physical piece(s)

@foreach($rental->allocations as $a) {{ $a->rentalUnit->unit_code }} @endforeach
₹{{ number_format($rental->total_rental_amount, 2) }} View Order Details →
@empty
No rental bookings on file for this customer.
@endforelse