{{ __('Payments') }}

+ Add Payment
@if(session('success')) @endif @if($payments->isEmpty())

No payments recorded yet

Start by adding a payment for a trip.

Record First Payment
@else
@foreach($payments as $payment)
{{-- Header --}}
{{ $payment->created_at->format('d M Y') }}

{{ $payment->trip->location ?? 'Trip #'.$payment->trip_id }}

{{ $payment->trip->vehicle->vehicle_number ?? '' }} • {{ $payment->trip->driver->driver_name ?? '' }}

{{ $payment->trip->date?->format('d M Y') }}

{{ $payment->status }}
{{-- Trip Rent --}}
Trip Rent ₹{{ number_format($payment->trip->rent_amount, 2) }}
{{-- Payment Breakdown --}}

Advance

₹{{ number_format($payment->advance, 0) }}

Paid

₹{{ number_format($payment->paid, 0) }}

Balance

₹{{ number_format($payment->balance, 0) }}

{{-- Method --}} @if($payment->method)

Via: {{ $payment->method }}

@endif {{-- Actions --}}
✏️ Edit
@csrf @method('DELETE')
@endforeach
{{ $payments->links() }}
@endif