@use('Modules\Taxido\Enums\ServicesEnum') @use('App\Enums\PaymentStatus') @use('Modules\Taxido\Enums\RideStatusEnum') @use('Modules\Taxido\Enums\ServiceCategoryEnum') @php $locations = is_array($ride->locations ?? null) ? $ride->locations : []; $settings = getTaxidoSettings(); $ridestatuscolorClasses = getRideStatusColorClasses(); $paymentstatuscolorClasses = getPaymentStatusColorClasses(); $locationCoordinates = $ride->location_coordinates ?? []; $paymentLogoUrl = getPaymentLogoUrl(strtolower($ride->payment_method ?? 'cash')); $currencySymbol = getDefaultCurrencySymbol(); $cs = $ride?->currency_symbol ?? $currencySymbol; @endphp @push('css') @endpush @extends('front.layouts.master') @section('title', "Ride Tracking - $ride->ride_number ?? '' ") @section('content')
{{ ucfirst($ride->ride_status['name'] ?? 'Unknown') }}
#{{ $ride->ride_number ?? '' }}
@if ($ride->otp)
OTP: {{ $ride->otp }}
@endif

Ride Timeline

@php $activities = $ride->ride_status_activities ?? collect([]); $currentStatus = $ride->ride_status['name'] ?? ''; $hasActivities = count($activities) > 0; @endphp @if ($hasActivities) @foreach ($activities->sortBy('created_at') as $activity) @php $statusName = $activity->ride_status->name ?? $activity->status; $statusTime = $activity->changed_at ?? $activity->created_at; $isCurrent = $statusName === $currentStatus; @endphp
{{ ucfirst(str_replace('_', ' ', $statusName)) }}
{{ \Carbon\Carbon::parse($statusTime)->format('M j, g:i A') }}
@endforeach @else
{{ ucfirst(str_replace('_', ' ', $currentStatus)) }}
Current ride status
{{ now()->format('M j, g:i A') }}
Requested
A new ride was requested by the rider
{{ \Carbon\Carbon::parse($ride->created_at)->format('M j, g:i A') }}
@endif
@php $hasStartRideLocation = !empty($ride->start_ride_locations) && !empty($ride->start_ride_coordinates); $startRideLocationText = is_array($ride->start_ride_locations) ? ($ride->start_ride_locations[0] ?? '') : $ride->start_ride_locations; @endphp @if($hasStartRideLocation)
@endif
Waiting for driver location...
  • Total Stops {{ count($locations) }}
  • Route Type Multi-stop Route
  • Tracking Live
    @php $points = range('A', 'Z'); @endphp @foreach ($locations as $index => $location) @if ($loop->last)
  • {{ $location }}{{ $points[$index] }}
  • @else
  • {{ $location }}{{ $points[$index] }}
  • @endif @endforeach
    @if (isset($ride?->rider['email']) && !isDemoModeEnabled())
  • Email {{ $ride?->rider['email'] ?? 'N/A' }}
  • @endif @if (isset($ride?->rider['country_code']) && isset($ride?->rider['phone']) && !isDemoModeEnabled())
  • Phone +{{ $ride?->rider['country_code'] ?? '' }} {{ $ride?->rider['phone'] ?? '' }}
  • @endif
    @if (isset($ride?->driver['email']) && !isDemoModeEnabled())
  • Email {{ $ride?->driver['email'] ?? 'N/A' }}
  • @endif @if (isset($ride?->driver['country_code']) && isset($ride?->driver['phone']) && !isDemoModeEnabled())
  • Phone +{{ $ride?->driver['country_code'] ?? '' }} {{ $ride?->driver['phone'] ?? '' }}
  • @endif
    @if (isset($ride?->vehicle_type['name']))
  • Vehicle Type @if (isset($ride?->vehicle_type['vehicle_image_url'])) {{ $ride?->vehicle_type['name'] }} @endif {{ $ride?->vehicle_type['name'] }}
  • @endif @if (isset($ride?->vehicle_type['plate_number']))
  • Plate Number {{ $ride?->vehicle_type['plate_number'] }}
  • @endif
  • Service {{ $ride->service['name'] ?? 'N/A' }}
  • Service Category {{ $ride->service_category['name'] ?? 'N/A' }}
  • Distance {{ $ride?->distance ?? '0' }} {{ $ride?->distance_unit ?? 'km' }}
  • @if (isset($ride->service['slug']) && in_array($ride->service['slug'], [ \Modules\Taxido\Enums\ServicesEnum::PARCEL, \Modules\Taxido\Enums\ServicesEnum::FREIGHT, ]))
  • Weight {{ $ride?->weight ?? 'N/A' }}
  • @endif
  • Payment Method Payment method
  • Payment Status {{ ucfirst(strtolower($ride->payment_status ?? 'Pending')) }}
  • Ride Fare {{ $cs . number_format(round($ride->ride_fare ?? 0, 2), 2) }}
  • @if (($ride->additional_distance_charge ?? 0) > 0)
  • Additional Distance Charge {{ $cs . number_format(round($ride->additional_distance_charge, 2), 2) }}
  • @endif @if (($ride->additional_minute_charge ?? 0) > 0)
  • Additional Minute Charge {{ $cs . number_format(round($ride->additional_minute_charge, 2), 2) }}
  • @endif @if (($ride->additional_weight_charge ?? 0) > 0)
  • Additional Weight Charge {{ $cs . number_format(round($ride->additional_weight_charge, 2), 2) }}
  • @endif @if (($ride->waiting_charges ?? 0) > 0)
  • Waiting Charges {{ $cs . number_format(round($ride->waiting_charges, 2), 2) }}
  • @endif @if (($ride->bid_extra_amount ?? 0) > 0)
  • Bid Extra Amount {{ $cs . number_format(round($ride->bid_extra_amount, 2), 2) }}
  • @endif
  • Subtotal {{ $cs . number_format(round($ride->sub_total ?? 0, 2), 2) }}
  • Platform Fee {{ $cs . number_format(round($ride->platform_fees ?? 0, 2), 2) }}
  • Tax {{ $cs . number_format(round($ride->tax ?? 0, 2), 2) }}
  • Admin Commission {{ $cs . number_format(round($ride->commission ?? 0, 2), 2) }}
  • Total Bill {{ $cs . number_format(round($ride->total ?? 0, 2), 2) }}
@endsection @push('scripts') @if ($settings['location']['map_provider'] == 'google_map') @elseif ($settings['location']['map_provider'] == 'osm') @endif @if ($settings['location']['map_provider'] == 'google_map') @endif @endpush @push('css') @endpush