@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')
| 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) }} | ||