@extends('layouts.app') @section('content') {{-- 1. FIXED BACKGROUND --}}
{{-- 2. SCROLLABLE CONTENT --}}
{{-- HEADER SECTION --}} Back to Vehicle Details

Complete Payment

Secure checkout for your rental

Vehicle Selected

{{ $vehicle->model }}

{{-- ======================== LEFT COLUMN: INFO & COST ======================== --}}
{{-- A. RENTAL ITINERARY CARD --}}

Rental Itinerary

{{-- Duration Badge --}} @if($days > 0 && $extraHours > 0) {{ $days }} Day(s) + {{ $extraHours }} Hour(s) @elseif($days > 0) {{ $days }} Day(s) @else {{ $totalHours }} Hour(s) @endif
{{-- Pickup --}}

Pickup

{{ \Carbon\Carbon::parse($pickupDate)->format('d M Y') }}

{{ $pickupLoc }}

Time

{{ request('pickup_time', '10:00') }}

{{-- Return --}}

Return

{{ \Carbon\Carbon::parse($returnDate)->format('d M Y') }}

{{ $returnLoc }}

Time

{{ request('return_time', '10:00') }}

{{-- B. PAYMENT SUMMARY & VOUCHER CARD --}}
{{-- Decorative Glow --}}

PAYMENT SUMMARY

{{-- 1. Cost Breakdown --}}

Cost Breakdown

Rental Charges RM {{ number_format($rentalCharge, 2) }}
Security Deposit REFUNDABLE
RM {{ number_format($vehicle->baseDepo, 2) }}
{{-- Hidden Discount Row (Show via JS) --}}
Total Cost RM {{ number_format($total, 2) }}
{{-- 2. Select Payment Mode --}}

Select Payment Mode

{{-- Full Payment --}} {{-- Deposit Only --}}
{{-- 3. Voucher Input --}}
{{-- VOUCHER DROPDOWN --}}

{{-- 4. Grand Total Display --}}

Amount to Pay Now

*All prices in MYR

MYR {{ number_format($total, 2) }}

{{-- ============================== RIGHT COLUMN: FORM & ACTION ============================== --}}
@csrf @csrf {{-- Hidden Info Inputs --}} {{-- Dynamic Hidden Fields (JS Updates These) --}}
{{-- 1. AGREEMENT SECTION --}}

Rental Agreement

Please download, sign, and upload agreement form.

Download Agreement PDF

{{-- 2. QR & BANK SECTION --}}
Payment QR Code

Bank Account (HASTA)

8821 3491 0022

{{-- 3. UPLOAD PAYMENT PROOF --}}

{{-- 4. REMARKS FIELD --}}
{{-- 5. NOTICE & SUBMIT --}}

Notice

Please complete your payment ASAP. Bookings are not secured until proof of payment is uploaded.

Secure SSL Encrypted Payment

{{-- VALIDATION ERROR MODAL --}} @endsection