Invoice #{{ $invoice->id }}

Customer: {{ $invoice->customer->name ?? 'N/A' }}

Date: {{ \Carbon\Carbon::parse($invoice->date)->format('F j, Y') }}

Status: {{ ucfirst($invoice->status) }}

@forelse($invoice->bookings as $booking) @empty @endforelse
Booking Id Customer Vehicle Driver Extra Charges Price
#{{ $booking->id }} {{ $booking->customer->name ?? 'N/A' }} {{ optional($booking->vehicle)->model_name ?? 'N/A' }} - {{ optional($booking->vehicle)->vehicle_number ?? 'N/A' }} {{ optional($booking->driver)->name ?? 'N/A' }} Rs - {{ number_format($booking->extra_charges ?? 0, 2) }} Rs - {{ number_format($booking->price, 2) }}
No bookings found for this invoice.

Base Amount: Rs - {{ number_format($invoice->base_amount, 2) }}

Extra Charges: Rs - {{ number_format($invoice->extra_charges, 2) }}

Discount ({{ ucfirst($invoice->discount_type) }}): Rs - {{ number_format($invoice->discount_value, 2) }}

Tax Amount: Rs - {{ number_format($invoice->tax_amount, 2) }}

Net Amount: Rs - {{ number_format($invoice->net_amount, 2) }}

Paid: Rs - {{ number_format($invoice->paid_amount, 2) }}

Outstanding: Rs - {{ number_format($invoice->outstanding, 2) }}