@extends('layouts.app') @section('content')
Back to Payment

Pay Penalty

@if($penalty->bookingID) Booking #{{ $penalty->bookingID }} • Penalty Payment @else Customer Penalty Payment @endif

Penalty Details

@if($penalty->reason)

Reason

{{ $penalty->reason }}

@endif @php // Calculate total: Use amount if available (customer-level), otherwise sum fees (booking-based) $totalAmount = $penalty->amount ?? ($penalty->penaltyFees + $penalty->fuelSurcharge + $penalty->mileageSurcharge); @endphp @if($penalty->bookingID) {{-- Booking-based penalty: Show breakdown --}}

Fee Breakdown

Late Fees:
MYR {{ number_format($penalty->penaltyFees ?? 0, 2) }}
Fuel Surcharge:
MYR {{ number_format($penalty->fuelSurcharge ?? 0, 2) }}
Mileage Surcharge:
MYR {{ number_format($penalty->mileageSurcharge ?? 0, 2) }}
@endif

Total Penalty

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

@if($penalty->date_imposed)
Imposed on {{ \Carbon\Carbon::parse($penalty->date_imposed)->format('d M Y') }}
@endif
@csrf
QR Code

Pay To: HASTA Rental

8821 3491 0022

@endsection