@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 @extends('front.layouts.master') @section('title', __('taxido::front.ride')) @section('content')
    @foreach ($locations as $index => $location) @if ($loop->last)
  • {{ $location }}
  • @else
  • {{ $location }}
  • @endif @endforeach

{{ __('taxido::static.rides.ride_details') }}

  • {{ \Carbon\Carbon::parse($ride?->created_at)->format('d M, Y') }}
  • #{{ $ride?->ride_number }}
  • @if ($ride->otp)
  • {{ __('taxido::static.rides.otp') }}: {{ $ride->otp }}
  • @endif

{{ __('taxido::static.rides.general_detail') }}

  • {{ __('taxido::static.rides.service') }} {{ $ride->service['name'] }}
  • {{ __('taxido::static.rides.service_category') }} {{ $ride->service_category['name'] }}
  • {{ __('taxido::static.rides.ride_distance') }} {{ $ride?->distance }} {{ $ride?->distance_unit }}
  • @if (isset($ride->service['slug']) && in_array($ride->service['slug'], [ServicesEnum::PARCEL, ServicesEnum::FREIGHT]))
  • {{ __('taxido::static.rides.weight') }} {{ $ride?->weight ?? null }}
  • @endif
  • {{ __('taxido::static.rides.ride_fare') }} {{ $cs . number_format(round($ride?->ride_fare, 2), 2) }}
  • {{ __('taxido::static.rides.payment_method') }}
  • {{ __('taxido::static.rides.payment_status') }} {{ ucfirst(strtolower($ride->payment_status)) }}
  • {{ __('taxido::static.rides.ride_status') }} {{ ucfirst($ride->ride_status['name']) }}

{{ __('taxido::static.rides.driver_detail') }}

@if (isset($ride?->driver['profile_image_url'])) {{ $ride?->driver['name'] }} @else
{{ strtoupper($ride?->driver['name'][0]) }}
@endif
{{ $ride?->driver['name'] }}
{{ __('taxido::static.riders.rating') }}: ({{ $ride?->driver['rating_count'] }})
    @if (isset($ride?->driver['email']))
  • {{ __('taxido::static.rides.email') }} : @if (isDemoModeEnabled()) {{ __('taxido::static.demo_mode') }} @else {{ $ride?->driver['email'] ?? '' }} @endif
  • @endif @if (isset($ride?->driver['country_code']) && isset($ride?->driver['phone']))
  • {{ __('taxido::static.rides.phone') }} : @if (isDemoModeEnabled()) {{ __('taxido::static.demo_mode') }} @else +{{ $ride?->driver['country_code'] ?? '' }} {{ $ride?->driver?->phone ?? '' }} @endif
  • @endif @if (isset($ride?->vehicle_type['plate_number']))
  • {{ __('taxido::static.riders.vehicle_num') }}: {{ $ride?->vehicle_type['plate_number'] ?? '' }}
  • @endif @if (isset($ride?->vehicle_type['vehicle_image_url']))
  • {{ __('taxido::static.rides.vehicle_type') }}:
    {{ $ride?->vehicle_type['name'] }}
    ( {{ $ride?->vehicle_type['name'] }})
  • @endif
@if (isset($ride->service['slug']) && in_array($ride->service['slug'], [ServicesEnum::PARCEL, ServicesEnum::FREIGHT]))

{{ __('taxido::front.rides.cargo_details') }}

Cargo Image
    @if ($ride->parcel_receiver)
  • {{ __('taxido::static.rides.receiver_name') }}:{{ $ride->parcel_receiver['name'] }}

  • {{ __('taxido::static.rides.receiver_no') }}: @if (isDemoModeEnabled()) {{ __('taxido::static.demo_mode') }} @else +{{ $ride->parcel_receiver['country_code'] ?? '' }} {{ $ride->parcel_receiver['phone'] ?? '' }} @endif
  • @endif
@endif @if (isset($ride->service_category['slug']) && in_array($ride->service_category['slug'], [ServiceCategoryEnum::RENTAL]))
  • {{ __('taxido::static.rides.vehicle_name') }}: {{ $ride?->rental_vehicle?->name }}
  • @if ($ride?->is_with_driver == 1)
  • {{ __('taxido::static.rides.assign_driver_name') }}: {{ $ride?->assigned_driver['name'] }}
  • {{ __('taxido::static.rides.assign_driver_no') }}: @if (isDemoModeEnabled()) {{ __('taxido::static.demo_mode') }} @else +{{ $ride?->assigned_driver['country_code'] ?? '' }} {{ $ride?->assigned_driver['phone'] ?? '' }} @endif
  • @else
  • {{ __('taxido::static.rides.driver_name') }}: {{ $ride?->driver?->name }}
  • {{ __('taxido::static.rides.driver_no') }}: {{ $ride?->driver?->phone }}
  • @endif
  • {{ __('taxido::static.rides.vehicle_registration_no') }}: {{ $ride?->rental_vehicle?->registration_no }}
@endif

{{ __('taxido::static.rides.price_details') }}

@if ($ride?->payment_status == PaymentStatus::COMPLETED) @if ($ride->invoice_id) {{ __('taxido::static.rides.invoice') }} @endif @endif
  • {{ __('taxido::static.rides.ride_fare') }}{{ $cs . number_format(round($ride->ride_fare, 2), 2) }}
  • @if ($ride->additional_distance_charge > 0)
  • {{ __('taxido::static.rides.additional_distance_charge') }}{{ $cs . number_format(round($ride->additional_distance_charge, 2), 2) }}
  • @endif @if ($ride->additional_minute_charge > 0)
  • {{ __('taxido::static.rides.additional_minute_charge') }}{{ $cs . number_format(round($ride->additional_minute_charge, 2), 2) }}
  • @endif @if ($ride->additional_weight_charge > 0)
  • {{ __('taxido::static.rides.additional_weight_charge') }}{{ $cs . number_format(round($ride->additional_weight_charge, 2), 2) }}
  • @endif @if ($ride->waiting_charges > 0)
  • {{ __('taxido::static.rides.waiting_charges') }}{{ $cs . number_format(round($ride->waiting_charges, 2), 2) }}
  • @endif @if ($ride->bid_extra_amount > 0)
  • {{ __('taxido::static.rides.bid_extra_amount') }}{{ $cs . number_format(round($ride->bid_extra_amount, 2), 2) }}
  • @endif
  • {{ __('taxido::static.rides.subtotal') }}{{ $cs . number_format(round($ride->sub_total, 2), 2) }}
  • {{ __('taxido::static.rides.platform_fee') }}{{ $cs . number_format(round($ride->platform_fees, 2), 2) }}
  • {{ __('taxido::static.rides.tax') }}{{ $cs . number_format(round($ride->tax, 2), 2) }}
  • {{ __('taxido::static.rides.admin_commission') }}{{ $cs . number_format(round($ride->commission, 2), 2) }}
  • {{ __('taxido::front.total_bill') }}{{ $cs . number_format(round($ride->total, 2), 2) }}
@endsection @if ($settings['location']['map_provider'] == 'google_map') @includeIf('taxido::admin.ride.google') @elseIf($settings['location']['map_provider'] == 'osm') @includeIf('taxido::admin.ride.osm') @endif @push('scripts') @endpush