@extends('layouts.app') @section('title', $customer->name) @section('content')
Back to Customers
{{ substr($customer->name, 0, 1) }}

{{ $customer->name }}

{{ ucfirst($customer->status) }}

Email

{{ $customer->email }}

Phone

{{ $customer->phone }}

License Number

{{ $customer->license_number }}

License Expiry

{{ $customer->license_expiry }}

Rental History

@forelse($customer->rentals as $rental) @empty @endforelse
Car Dates Amount Status
{{ $rental->car->brand }} {{ $rental->car->model }} {{ $rental->start_date->format('M d') }} - {{ $rental->end_date->format('M d, Y') }} BHD {{ number_format($rental->total_amount, 0) }} {{ $rental->status }}
No rentals yet
@endsection