@extends('layouts.master') @section('title', $paymentTitle ?? ('Payment - ' . $booking->booking_number)) @php $amountDue = $amountDueOverride ?? ($booking->balance_due > 0 ? $booking->balance_due : $booking->total_amount); $bookingItem = $booking->items->first(); $policyHtml = $businessSetup?->company_policy; $paymentFormAction = $paymentFormAction ?? route('car-rental.transactions.store', $booking->booking_number); $stripeIntentUrl = $stripeIntentUrl ?? route('car-rental.transactions.stripe-intent', $booking->booking_number); $showAmountPaidFromTransactions = $showAmountPaidFromTransactions ?? true; @endphp @section('custom-styles') @endsection @section('content')
Payment Required
@csrf @if(!empty($booking->booking_number) && $booking->booking_number !== 'Pending Review') @endif
VISA MC AMEX DISC JCB
@if ($errors->any())
{{ $errors->first() }}
@endif

Booking Invoice

{{ $businessSetup?->company_name ?: config('app.name') }}
{{ $booking->customer_name }} @if($booking->customer_email)
{{ $booking->customer_email }}
@endif @if($booking->customer_phone)
{{ $booking->customer_phone }}
@endif @if($booking->customer_address)
{{ $booking->customer_address }}
@endif
{{ collect([$booking->customer_city, $booking->customer_state, $booking->customer_postal_code])->filter()->implode(', ') }}
@if($booking->customer_country)
{{ $booking->customer_country }}
@endif
Booking Date: {{ $booking->start_datetime->format('F j, Y') }}
Total (USD): ${{ number_format($booking->total_amount, 2) }}
@foreach(($booking->tax_lines ?? []) as $line) @endforeach
Product Rate Amount
{{ $bookingItem?->product_name ?: ($booking->items->first()?->product_name ?? 'Vehicle Booking') }}
{{ $booking->start_datetime->format('D M j, Y') }}
{{ $booking->start_datetime->format('h:i A') }} - {{ $booking->end_datetime->format('h:i A') }}
Qty: 1 @ ${{ number_format($bookingItem?->unit_price ?: $booking->subtotal, 2) }} ${{ number_format($bookingItem?->subtotal ?: $booking->subtotal, 2) }}

Rental Location: {{ $booking->rental_location }}

Is this rental for a Wedding?: {{ $booking->is_wedding ? 'Yes' : 'No' }}

@if($booking->purpose)

Purpose: {{ $booking->purpose }}

@endif
Sub-Total: ${{ number_format($booking->subtotal, 2) }}
{{ $line['name'] ?? 'Tax/Fee' }}@if(isset($line['percent'])) ({{ rtrim(rtrim(number_format((float) $line['percent'], 2), '0'), '.') }}%) @endif: ${{ number_format((float) ($line['amount'] ?? 0), 2) }}
Total: ${{ number_format($booking->total_amount, 2) }}
Amount Paid: ${{ number_format($showAmountPaidFromTransactions ? $booking->transactions->where('type', 'payment')->sum('amount') : 0, 2) }}
Balance Due: ${{ number_format($amountDue, 2) }}
@if(filled($policyHtml))
{!! $policyHtml !!}
@endif
@endsection @section('custom-scripts') @endsection