@component('mail::message')
{{-- Company Logo --}}
# Trip Receipt
Dear {{ $trip->customer->first_name ?? 'Customer' }} {{ $trip?->customer?->last_name ?? '' }},
Thank you for riding with us. Here are the details of your recent trip:
---
## 🚗 Driver Information
- **Name:** {{ $trip->driver->first_name ?? 'N/A' }} {{ $trip->driver->last_name ?? 'N/A' }}
- **Phone:** {{ $trip->driver->phone ?? 'N/A' }}
- **Vehicle:** {{ $trip->driver->vehicle->category->name ?? 'N/A' }}
- **Model:** {{ $trip->driver?->vehicle?->model?->name ?? 'N/A' }}
---
## 📍 Trip Details
- **Trip ID:** {{ $trip->ref_id }}
- **Pickup Location:** {{ $trip->coordinate->pickup_address ?? 'N/A' }}
- **Destination:** {{ $trip->coordinate->destination_address ?? 'N/A' }}
- **Total Distance:** {{ $trip->actual_distance ?? 'N/A' }} km
- **Fare:** ETB {{ number_format($trip->actual_fare, 2) }}
- **Date:** {{ \Carbon\Carbon::parse($trip->created_at)->format('Y-m-d H:i A') }}
---
@component('mail::button', ['url' => route('trip.receipt.pdf', ['trip' => $trip->id]), 'color' => 'success'])
Download PDF Invoice
@endcomponent
Thanks for choosing {{ config('app.name') }}!
@component('mail::subcopy')
This receipt was generated and sent by {{ config('app.name') }}.
Need help? Call us at support 7374.
@endcomponent
@endcomponent