{{ __('Ride History') }}
@if(session()->has('del_msg'))
@endif
{{ $orderHistory->withQueryString()->render("pagination::bootstrap-5") }}
| {{ __('Order#') }} | {{ __('Booking Type') }} | {{ __('Date') }} | {{ __('Customer Name') }} | {{ __('Customer Number') }} | {{ __('Driver Name') }} | {{ __('Driver Number') }} | {{ __('Vehicle Type') }} | {{ __('Distance') }} | {{ __('Fare') }} | @if (Auth::guard('admin')->user()->type != 4){{ __('Status') }} | {{ __('Actions') }} | @endif
|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ $rideHistory->id }} | @if (is_null($rideHistory->customer_id)) {{ __('Instant - ') }} @endif {{ $rideHistory->trip_type }} | {{ \Carbon\Carbon::parse($rideHistory->from_date)->format('jS F Y h:i:s A') }} | @if (!is_null($rideHistory->cust_name)) {{ $rideHistory->cust_name }} @else @if ($rideHistory->customer()->exists()) {{ $rideHistory->customer->name }} @else {{ __("N/A") }} @endif @endif | @if (!is_null($rideHistory->cust_phone)) {{ $rideHistory->cust_phone }} @else @if ($rideHistory->customer()->exists()) {{ $rideHistory->customer->whatsapp_no }} @else {{ __("N/A") }} @endif @endif | @if ($rideHistory->driver()->exists()) {{ $rideHistory->driver->name }} @else {{ __("N/A") }} @endif | @if ($rideHistory->driver()->exists()) {{ $rideHistory->driver->whatsapp_no }} @else {{ __('N/A') }} @endif | @if ($rideHistory->driver()->exists()) @if ($rideHistory->driver->vehicleType()->exists()) {{ $rideHistory->driver->vehicleType->name }} @endif @else {{ __('N/A') }} @endif | {{ $rideHistory->total_km }} | Rs.{{ $rideHistory->total_fare }} | @if (Auth::guard('admin')->user()->type != 4){{ $rideHistory->booking_status }} | @endif |
| {{ __('Looks like there\'s a VOID!') }} | |||||||||||