@extends('admin.layouts.app') @section('content')
{{-- navbar - top --}} @include('admin.layouts.topbar')
{{-- navbar - side --}} @include('admin.layouts.nav')

{{ __('View Ride History') }}

{{ __('Booking Details') }}

{{ __('Date : ') }}{{ \Carbon\Carbon::parse($rideHistory->from_date)->format('jS F Y h:i:s A') }}

{{ __('Customer Name :') }} @if ($rideHistory->customer()->exists()) {{ $rideHistory->customer->name }} @else {{ $rideHistory->cust_name }} @endif

{{ __('Customer Number :') }} @if ($rideHistory->customer()->exists()) {{ $rideHistory->customer->whatsapp_no }} @else {{ $rideHistory->cust_phone }} @endif

{{ __('Driver Name :') }} @if ($rideHistory->driver()->exists()) {{ $rideHistory->driver->name }} @else {{ __('N/A') }} @endif

{{ __('Driver Number :') }} @if ($rideHistory->driver()->exists()) {{ $rideHistory->driver->whatsapp_no }} @else {{ __('N/A') }} @endif

{{ __('Vehicle No. :') }} @if ($rideHistory->driver()->exists()) {{ $rideHistory->driver->vehicle_no }} @else {{ __('N/A') }} @endif

{{ __('Vehicle Type :') }} @if ($rideHistory->vehicleType()->exists()) {{ $rideHistory->vehicleType->name }} @else {{ __('N/A') }} @endif

{{ __('Vehicle Capacity :') }} @if ($rideHistory->vehicleCapacity()->exists()) {{ $rideHistory->vehicleCapacity->capacity }} {{ $rideHistory->vehicleCapacity->capacity_unit }} @else {{ __('N/A') }} @endif

{{ __('Trip Type :') }} {{ $rideHistory->trip_type }}

@if ($rideHistory->trip_type == "Rental")

{{ __('Package Name :') }} {{ $rideHistory->package_name }}

@endif

{{ __('OTP :') }} {{ $rideHistory->otp }}

{{ __('Approx. Fare :') }} {{ Str::before($rideHistory->approx_fare,"-") }}

{{ __('Coupon Used :') }} @isset($rideHistory->coupon_name) {{ $rideHistory->coupon_name }} @else {{ __("None") }} @endisset

@if ($rideHistory->vehicle_type_id == 4)

{{ __('Goods Type :') }} {{ $rideHistory->goods_type }}

{{ __('Helper Needed :') }} @if ($rideHistory->loading_needed == 1) {{ __("Yes") }} @else {{ __("No") }} @endif

@endif

{{ __('Pickup Address :') }} {{ $rideHistory->pickup_address }}

{{ __('Drop Address :') }} {{ $rideHistory->drop_address }}

@if (!is_null($rideHistory->stop1_address))

{{ __('Stop Point 1 :') }} {{ $rideHistory->stop1_address }}

@endif @if (!is_null($rideHistory->stop2_address))

{{ __('Stop Point 2 :') }} {{ $rideHistory->stop2_address }}

@endif @if (!is_null($rideHistory->stop3_address))

{{ __('Stop Point 3 :') }} {{ $rideHistory->stop3_address }}

@endif

{{ __('Distance :') }} {{ $rideHistory->total_km }}

{{ __('Booking Status :') }} {{ $rideHistory->booking_status }}

@if ($rideHistory->booking_status == "Cancelled")

{{ __('Cancellation Reason :') }} {{ $rideHistory->cancellation_reason }}

@endif
@endsection @extends('admin.layouts.footer')