@section('title', (isset($page_title) ? $page_title . ' | ' : '') . config('app.name')) @section('breadcrumb', isset($page_title) ? $page_title : '')
{{ $page_title }}

RedGoCab

Cab Booking Service

Invoice #{{ $data->booking_id }}

INVOICE

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

Status: {{ ucfirst($data->status) }}


Customer Details
@if ($data->getUser->email) @endif
Name: {{ $data->getUser->name }}
Phone: {{ $data->getUser->phone }}
Email: {{ $data->getUser->email }}
Trip Details
From: {{ $data->getCab->getDestinationFrom->name ?? $data->pickup_location }}
To: {{ $data->getCab->getDestinationTo->name ?? $data->drop_location }}
Date & Time: {{ \Carbon\Carbon::parse($data->pickup_date . ' ' . $data->pickup_time)->format('d M Y, h:i A') }}
Journey Type: {{ ucwords(str_replace('_', ' ', $data->journey_type)) }}
Distance: {{ $data->getCab->total_distance ?? 'N/A' }} km
Vehicle Details
Vehicle: {{ $data->getVehicle->name }}
Category: {{ $data->getCab->getVehicleCategory->name }}
Vehicle Number: {{ $data->getVehicle->vehicle_number }}
Seats: {{ $data->getVehicle->number_of_seat }}
Color: {{ $data->getVehicle->color }}
Year: {{ $data->getVehicle->year }}
Billing Details
@if ($data->coupon_detail) @endif
Description Amount (₹)
Base Fare ({{ $data->getCab->total_distance ?? 'N/A' }} km) {{ number_format($data->booking_amount, 2) }}
Discount Applied Coupon: {{ $data->coupon_detail['code'] }} ({{ $data->coupon_detail['discount'] }}{{ $data->coupon_detail['type'] == 'percentage' ? '%' : '₹' }} off) -{{ number_format($data->coupon_discount, 2) }}
Sub Total {{ number_format($data->total_amount, 2) }}
Grand Total ₹{{ number_format($data->grand_total, 2) }}
Payment Information
@if ($data->remaining_amount > 0) @endif
Payment Method: {{ ucfirst($data->payment_method) }}
Paid Amount: ₹{{ number_format($data->paid_amount, 2) }}
Remaining Amount: ₹{{ number_format($data->remaining_amount, 2) }}
@if ($data->coupon_detail)
Coupon Details
{{ $data->coupon_detail['title'] }}

Code: {{ $data->coupon_detail['code'] }}

Discount: {{ $data->coupon_detail['discount'] }}{{ $data->coupon_detail['type'] == 'percentage' ? '%' : '₹' }}

@else
Invoice Summary
Total Amount: ₹{{ number_format($data->grand_total, 2) }}
Payment Status: {{ $data->remaining_amount > 0 ? 'Partial' : 'Paid' }}
@endif

Thank you for choosing RedGoCab!

This is a computer generated invoice and does not require a signature.