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 }}
Vehicle Details
Vehicle: {{ $data->getVehicle->name }}
Category: {{ $data->getCab->getVehicleCategory->name }}
Vehicle No: {{ $data->getVehicle->vehicle_number }}
Seats: {{ $data->getVehicle->number_of_seat }}
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
Payment Information
@if($data->remaining_amount > 0) @endif
Method: {{ ucfirst($data->payment_method) }}
Paid Amount: Rs {{ number_format($data->paid_amount, 2) }}
Remaining: Rs {{ number_format($data->remaining_amount, 2) }}
Billing Details
@if($data->coupon_detail) @endif
Description Amount (Rs )
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' ? '%' : 'Rs ' }} off)
-{{ number_format($data->coupon_discount, 2) }}
Sub Total {{ number_format($data->total_amount, 2) }}
Grand Total Rs {{ number_format($data->grand_total, 2) }}
@if($data->coupon_detail)
Coupon Applied
{{ $data->coupon_detail['title'] }} - Code: {{ $data->coupon_detail['code'] }} | Discount: {{ $data->coupon_detail['discount'] }}{{ $data->coupon_detail['type'] == 'percentage' ? '%' : 'Rs ' }}
@endif