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

View Ride History - {{ $rideHistory->id }}

{{ __('Booking Details') }}

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

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

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

{{ __('Receiver Name :') }} {{ $rideHistory->receiver_name }}

{{ __('Receiver Number :') }} {{ $rideHistory->receiver_phone }}

{{ __('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->driver()->exists()) {{ $rideHistory->driver->vehicleType->name }} @else {{ $rideHistory->vehicle_type }} @endif

{{ __('Vehicle Capacity :') }} @if (is_null($rideHistory->customer_id)) @if ($rideHistory->driver->vehicle_type_id == 4) {{ $rideHistory->driver->max_weight }} kgs @else {{ $rideHistory->driver->passenger_limit }} Person @endif @else @if ($rideHistory->vehicle_type_id == 4) {{ $rideHistory->vehicle_capacity }} kgs @else {{ $rideHistory->vehicle_capacity }} Person @endif @endif

{{ __('Pickup Pincode :') }} {{ $rideHistory->pincode }}

{{ __('Pickup City :') }} {{ $rideHistory->city }}

{{ __('Drop Pincode :') }} {{ $rideHistory->drop_pincode }}

{{ __('Drop City :') }} {{ $rideHistory->drop_city }}

{{ __('Pickup Address :') }} {{ $rideHistory->pickup_address }} @if (isset($rideHistory->p_latitude)) @endif

Ride Start Location : {{ $rideHistory->start_location ?? "NA" }} @if (isset($rideHistory->start_latitude)) @endif

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

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

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

{{ __('Drop Address :') }} {{ $rideHistory->drop_address }} @if (isset($rideHistory->d_latitude)) @endif

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

{{ __('Stop Point 1 :') }} {{ $rideHistory->stop1_address }} @if (isset($rideHistory->stop1_latitude)) @endif

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

{{ __('Stop Point 2 :') }} {{ $rideHistory->stop2_address }} @if (isset($rideHistory->stop2_latitude)) @endif

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

{{ __('Stop Point 3 :') }} {{ $rideHistory->stop3_address }} @if (isset($rideHistory->stop3_latitude)) @endif

@endif @if ($rideHistory->booking_status == "Completed" && !is_null($rideHistory->end_address))

{{ __('Ride End Location :') }} {{ $rideHistory->end_address }} @if (isset($rideHistory->end_latitude)) @endif

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

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

@endif @endif

{{ __('Trip Type :') }} @if (is_null($rideHistory->customer_id)) Instant - @endif @if (isset($rideHistory->elite_admin_id)) Elite - @endif {{ $rideHistory->trip_type }}

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

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

@if($rideHistory->trip_type == "Rental") {{ __('Limit KM :') }} @else {{ __('Limit Hrs. :') }} @endif @if($rideHistory->trip_type == "Rental") {{ $rideHistory->limit_km }} KM @else {{ $rideHistory->limit_km }} hrs @endif

@if($rideHistory->trip_type == "Rental") {{ __('After Limit, Fare / KM :') }} @else {{ __('After Limit, Fare / Min :') }} @endif Rs.{{ $rideHistory->after_limit_fare }}

@endif

{{ __('Base Fare :') }} Rs.{{ $rideHistory->base_fare }}

{{ __('Fare / KM :') }} Rs.{{ $rideHistory->fare_per_km }}

{{ __('After Limit, Fare / Min :') }} Rs.{{ $rideHistory->minute_fare }}

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

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

@endif @if ($rideHistory->trip_type != "Rental" && $rideHistory->approx_fare != "N/A")

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

@endif @if ($rideHistory->trip_type != "Rental" && $rideHistory->approx_time != "N/A")

Approx. Time : {{ $rideHistory->approx_time }}

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

{{ __('Coupon Used :') }} @if (is_null($rideHistory->coupon_name)) {{ __("None") }} @else {{ $rideHistory->coupon_name }} @endif

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

{{ __('Vehicle Length :') }} {{ $rideHistory->vehicle_length }}

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

{{ __('Vehicle Body :') }} @if ($rideHistory->vehicle_body == -1) {{ __("Any") }} @elseif($rideHistory->vehicle_body == 1) {{ __("Closed") }} @elseif($rideHistory->vehicle_body == 0) {{ __("Open") }} @endif

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

@endif

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

{{ __('Total Duration :') }} {{ $rideHistory->total_duration ?? "NA" }}

@if (!is_null($rideHistory->subtotal_fare) && $rideHistory->subtotal_fare != "")

{{ __('Subtotal Fare (including Base Fare) :') }} Rs.{{ $rideHistory->subtotal_fare }}

@endif

{{ __('Waiting Fare :') }} @if (is_null($rideHistory->waiting_fare)) Rs. 0 @else Rs.{{ $rideHistory->waiting_fare }} @endif

{{ __('Driver Bata :') }} @if (is_null($rideHistory->excess_fare)) Rs. 0 @else Rs.{{ $rideHistory->excess_fare }} @endif

{{ __('Total Fare :') }} @if (is_null($rideHistory->total_fare)) Rs. 0 @else Rs.{{ $rideHistory->total_fare }} @endif

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

{{ __('Alerted Drivers :') }} @if (isset($rideHistory->selected_drivers)) @forelse ($rideHistory->selected_drivers as $selectedDrivers) {{ $selectedDrivers }}, @empty {{-- --}} @endforelse @endif

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

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

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