@extends($bookingLayout ?? 'crm.master') @section('title', 'Booking Invoice — ' . $booking->booking_number) @php $bookingRoutePrefix = request()->routeIs('crm.booking.*') ? 'crm.booking.' : (request()->routeIs('car-rental.*') ? 'car-rental.' : 'booking.'); $readOnlyInvoice = $readOnlyInvoice ?? request()->routeIs('car-rental.*'); @endphp @section('head-extra') @endsection @section('content')
| Booking ID: | {{ $booking->booking_number }} |
|---|---|
| Created: | {{ $booking->created_at->format('F j, Y') }} |
| Booking Date: | {{ $booking->start_datetime->format('F j, Y') }} |
| Total (USD): | ${{ number_format($booking->total_amount, 2) }} |
| Product | Rate | Amount | |
|---|---|---|---|
|
{{ $item->product_name }} {{ $booking->start_datetime->format('D M j, Y') }} {{ $booking->start_datetime->format('g:i A') }} – {{ $booking->end_datetime->format('g:i A') }} @if($booking->rate_label) {{ $booking->rate_label }} @endif |
Qty: {{ $item->quantity }} @ ${{ number_format($item->unit_price, 2) }}
@if($item->rate_type === 'per_hour') {{ (int)$item->duration_hours }} Hour{{ (int)$item->duration_hours != 1 ? 's' : '' }} @elseif($item->rate_type === 'per_day') {{ max(1, ceil($item->duration_hours / 24)) }} Day{{ ceil($item->duration_hours/24) != 1 ? 's' : '' }} @elseif($item->rate_type === 'per_24_hours') {{ max(1, ceil($item->duration_hours / 24)) }} × 24 Hours @else 1 Booking @endif |
${{ number_format($item->subtotal, 2) }} | |
|
@if($booking->rental_location)
Rental Location: {{ $booking->rental_location }} @endifIs this rental for a Wedding? {{ $booking->is_wedding ? 'Yes' : 'No' }} @if($booking->is_wedding && $booking->bride_groom_name)Bride & Groom: {{ $booking->bride_groom_name }} @endif @if($booking->purpose)Purpose of the booking: {{ $booking->purpose }} @endif |
Sub-Total: | ${{ number_format($booking->subtotal, 2) }} | |
| {{ $tl['name'] }} ({{ $tl['percent'] }}%): | ${{ number_format($tl['amount'], 2) }} | ||
| Discount{{ $booking->discount_code ? ' (' . $booking->discount_code . ')' : '' }}: | -${{ number_format($booking->discount_amount, 2) }} | ||
| Total: | ${{ number_format($booking->total_amount, 2) }} | ||
| Amount Paid: | @if($booking->amount_paid > 0 && $booking->amount_paid < $booking->total_amount) ${{ number_format($booking->amount_paid, 2) }} (partial) @else ${{ number_format($booking->amount_paid, 2) }} @endif | ||
| Balance Due: | ${{ number_format($booking->balance_due, 2) }} | ||
| Print PDF | |||