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

Ride History

As of {{ $updatedAt->toDayDateTimeString() }}
@if(Request::exists('search') || Request::exists('user_type') || Request::exists('vehicle_type') || Request::exists('status')) @endif
@php $search = Request::query('search'); $vehicleTypeId = Request::query('vehicle_type'); $status = Request::query('status'); @endphp
@if(session()->has('del_msg')) @endif
@forelse ($orderHistory as $rideHistory) @empty @endforelse
{{ __('Order#') }} {{ __('Booking Type') }} {{ __('Date') }} {{ __('Customer Name') }} {{ __('Customer Number') }} {{ __('Receiver Number') }} {{ __('Driver Name') }} {{ __('Driver Number') }} {{ __('Vehicle Type') }} {{ __('Distance') }} {{ __('Fare') }} {{ __('Status') }} {{ __('Actions') }}
{{ $rideHistory->id }} @if ($rideHistory->booking_source != "Elite App") @endif @if (is_null($rideHistory->customer_id)) {{ __('Instant - ') }} @endif @if (isset($rideHistory->elite_admin_id)) Elite - @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 }} @if ($rideHistory->customer()->exists()) @if ($rideHistory->customer->is_vendor == 1) (V) @endif @endif @else @if ($rideHistory->customer()->exists()) @if ($rideHistory->customer->is_vendor == 1) {{ $rideHistory->customer->name }} (V) @else {{ $rideHistory->customer->name }} @endif @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 (!is_null($rideHistory->receiver_phone)) {{ $rideHistory->receiver_phone }} @if (in_array($rideHistory->booking_status,["Confirmed","Ongoing","Completed"])) @endif @else {{ __("N/A") }} @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 {{ $rideHistory->vehicleType->name ?? "NA" }} @endif {{ $rideHistory->total_km }} @if (in_array($rideHistory->trip_type,["Rental","Acting Drivers"])) @if ($rideHistory->booking_status == "Completed") Rs.{{ $rideHistory->total_fare }} @else Rs.{{ $rideHistory->base_fare }} @endif @else @if ($rideHistory->booking_status == "Completed") Rs.{{ $rideHistory->total_fare }} @else {{ Str::before($rideHistory->approx_fare, '-') }} @endif @endif {{ $rideHistory->booking_status }}
@if (!is_null($rideHistory->driver_id)) @endif @if (in_array($rideHistory->booking_status,['Pending','Cancelled'])) @endif @if (!in_array(Auth::guard('admin')->user()->type,[3,4,5,6]) && in_array($rideHistory->booking_status,['Pending','Confirmed'])) @endif {{-- @if ($rideHistory->trip_type == "Local" && is_null($rideHistory->customer_id) && $rideHistory->incentive_added != 1) @endif --}} @if(!in_array(Auth::guard('admin')->user()->type,[3,4,6])) @endif
{{ __('Looks like there\'s a VOID!') }}
{{ $orderHistory->withQueryString()->render("pagination::bootstrap-5") }}
@endsection @extends('admin.layouts.footer')