@use('Modules\Taxido\Enums\ServicesEnum') @use('Modules\Taxido\Enums\RideStatusEnum') @use('Modules\Taxido\Enums\ServiceCategoryEnum') @php $locations = $ride->locations; $settings = getTaxidoSettings(); $ridestatuscolorClasses = getRideStatusColorClasses(); $paymentstatuscolorClasses = getPaymentStatusColorClasses(); $locationCoordinates = $ride->location_coordinates; $paymentLogoUrl = getPaymentLogoUrl(strtolower($ride->payment_method)); $currencySymbol = getDefaultCurrencySymbol(); @endphp @extends('admin.layouts.master') @section('title', __('taxido::static.rides.rides')) @section('content')

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

{{ __('taxido::static.rides.general_detail') }}
  • {{ __('taxido::static.rides.ride_id') }}: #{{ $ride->ride_number }}
  • @if ($ride->start_time)
  • {{ __('taxido::static.rides.start_date_time') }} : {{ $ride?->start_time?->format('Y-m-d H:i:s A') ?? null }}
  • @endif @if (in_array($ride?->service_category?->slug, [ServiceCategoryEnum::PACKAGE, ServiceCategoryEnum::RENTAL]))
  • {{ __('taxido::static.rides.end_date_time') }} : {{ $ride?->end_time?->format('Y-m-d H:i:s A') ?? null }}
  • @endif
  • {{ __('taxido::static.rides.ride_status') }} : {{ ucfirst(strtolower($ride->ride_status->name)) }}
  • {{ __('taxido::static.rides.payment_status') }} : {{ ucfirst(strtolower($ride->payment_status)) }}
  • {{ __('taxido::static.rides.service') }} : {{ $ride->service->name }}
  • @if (!in_array($ride->service->slug, [ServicesEnum::AMBULANCE]))
  • {{ __('taxido::static.rides.service_category') }} : {{ $ride?->service_category?->name }}
  • @endif
  • {{ __('taxido::static.rides.otp') }} : {{ $ride->otp }} @if (in_array($ride?->service?->slug, [ServicesEnum::PARCEL]))
  • {{ __('taxido::static.rides.parcel_otp') }}: {{ $ride?->parcel_delivered_otp }}
  • {{ __('taxido::static.rides.weight') }}: {{ $ride?->weight }}
  • @endif @if (in_array($ride?->service_category?->slug, [ServiceCategoryEnum::RENTAL]))
  • {{ __('taxido::static.rides.no_of_days') }} : {{ $ride->no_of_days }}
  • @endif @if (in_array($ride->service->slug, [ServicesEnum::AMBULANCE]))
  • {{ __('taxido::static.rides.ambulance_name') }} : {{ $ride->driver?->ambulance?->name }}
  • @endif @if (!in_array($ride?->service_category?->slug, [ServiceCategoryEnum::RENTAL]))
  • {{ __('taxido::static.rides.ride_distance') }} : {{ $ride?->distance }} {{ $ride?->distance_unit }}
  • @endif
  • {{ __('taxido::static.rides.waiting_total_times') }} : {{ $ride?->waiting_total_times }}{{ __('taxido::static.rides.minutes') }}
  • {{ __('taxido::static.rides.payment_method') }} :
@if ($ride?->service_category?->slug != ServiceCategoryEnum::RENTAL && !in_array($ride->service->slug, [ServicesEnum::AMBULANCE]) && $ride->bids->isNotEmpty())

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

{{ $ride->bids->count() }}

@endif
{{ __('taxido::static.rides.driver_detail') }}
@if ($ride?->driver?->profile_image?->original_url) @else
{{ strtoupper($ride?->driver?->name[0]) }}
@endif
@if($ride?->driver && $ride->driver_id)
{{ $ride?->driver?->name }}
{{ __('taxido::static.riders.rating') }}: @php $averageRating = (int) $ride?->driver?->reviews?->avg('rating'); $totalStars = 5; @endphp @for ($i = 0; $i < $averageRating; $i++) Filled Star @endfor @for ($i = $averageRating; $i < $totalStars; $i++) Outlined Star @endfor
@endif
  • {{ __('taxido::static.rides.email') }}: {{ $ride?->driver?->email ?? '' }}
  • {{ __('taxido::static.rides.phone') }}: +{{ $ride?->driver?->country_code ?? '' }} {{ $ride?->driver?->phone ?? '' }}
  • @if (!in_array($ride->service->slug, [ServicesEnum::AMBULANCE]))
  • {{ __('taxido::static.riders.vehicle_num') }}: {{ $ride?->driver?->vehicle_info?->plate_number }}
  • @if (!in_array($ride?->service_category?->slug, [ServiceCategoryEnum::RENTAL]))
  • {{ __('taxido::static.rides.vehicle_type') }}:
    ({{ $ride?->driver?->vehicle_info?->vehicle?->name }})
  • @endif @endif
{{ __('taxido::static.rides.rider_details') }}
@if ($ride?->rider['profile_image']?->original_url ?? null) @else @isset($ride?->rider['name'])
{{ strtoupper($ride?->rider['name'][0] ?? 'G') }}
@endisset @endif
{{ $ride['rider']['name'] ?? 'G' }}
{{ __('taxido::static.rides.rating') }}: @php $averageRating = 0; if ( isset($ride['rider']['reviews']) && count($ride['rider']['reviews']) > 0 ) { $averageRating = (int) collect($ride['rider']['reviews'])->avg( 'rating', ); } $totalStars = 5; @endphp @for ($i = 0; $i < $averageRating; $i++) Filled Star @endfor @for ($i = $averageRating; $i < $totalStars; $i++) Outlined Star @endfor
  • {{ __('taxido::static.rides.email') }}: {{ $ride?->rider['email'] ?? '' }}
  • {{ __('taxido::static.rides.contact_number') }}: +{{ $ride?->rider['country_code'] ?? '' }} {{ $ride?->rider['phone'] ?? '' }}
{{ __('taxido::static.rides.price_details') }}
@if ($ride->invoice_id) @endif @if ($ride->invoice_id) {{ __('taxido::static.rides.driver_invoice') }} @endif
@php $isRental = $ride?->service_category?->slug == ServiceCategoryEnum::RENTAL; $isPackage = $ride?->service_category?->slug == ServiceCategoryEnum::PACKAGE; $isParcel = $ride?->service?->slug == ServicesEnum::PARCEL; $isRideTypes = in_array($ride?->service_category?->slug, [ ServiceCategoryEnum::INTERCITY, ServiceCategoryEnum::RIDE, ServiceCategoryEnum::SCHEDULE, ]) || $ride?->service?->slug == ServicesEnum::FREIGHT; $currencyCode = session('currency', getDefaultCurrencyCode()); $currencySymbol = \App\Models\Currency::where('code', $currencyCode)->value('symbol') ?? getDefaultCurrencySymbol(); $cs = $ride?->currency_symbol ?? $currencySymbol; @endphp
  • {{ __('taxido::static.rides.ride_fare') }} : {{ $cs . number_format($ride?->ride_fare, 2) }}
  • @if ($ride->additional_distance_charge > 0)
  • {{ __('taxido::static.rides.additional_distance_charge') }} : {{ $cs . number_format($ride?->additional_distance_charge, 2) }}
  • @endif @if ($ride->additional_minute_charge > 0)
  • {{ __('taxido::static.rides.additional_minute_charge') }} : {{ $cs . number_format($ride?->additional_minute_charge, 2) }}
  • @endif @if ($ride->additional_weight_charge > 0)
  • {{ __('taxido::static.rides.additional_weight_charge') }} : {{ $cs . number_format($ride?->additional_weight_charge, 2) }}
  • @endif @if ($ride->total_extra_charge > 0)
  • {{ __('taxido::static.rides.extra_charge') }} : {{ $cs . number_format(round($ride?->total_extra_charge, 2), 2) }}
  • @endif @if ($isRental)
  • {{ __('taxido::static.rides.vehicle_charge') }} : {{ $cs . number_format(round($ride?->vehicle_per_day_price, 2) * $ride?->no_of_days, 2) }} ({{ round($ride?->vehicle_per_day_price, 2) }} * {{ $ride?->no_of_days }} {{ __('taxido::static.rides.days') }})
  • {{ __('taxido::static.rides.driver_charge') }} : {{ $cs . number_format(round($ride?->driver_per_day_charge, 2) * $ride?->no_of_days, 2) }} ({{ round($ride?->driver_per_day_charge, 2) }} * {{ $ride?->no_of_days }} {{ __('taxido::static.rides.days') }})
  • @endif @if ($ride->waiting_charges > 0)
  • {{ __('taxido::static.rides.waiting_charges') }} : {{ $cs . number_format($ride?->waiting_charges, 2) }}
  • @endif @if ($ride->bid_extra_amount > 0)
  • {{ __('taxido::static.rides.bid_extra_amount') }} : {{ $cs . number_format($ride?->bid_extra_amount, 2) }}
  • @endif @if ($ride->driver_tips > 0)
  • {{ __('taxido::static.invoice.driver_tips') }} : {{ $cs . number_format(round($ride?->driver_tips, 2), 2) }}
  • @endif
  • {{ __('taxido::static.rides.subtotal') }} : {{ $cs . number_format(round($ride?->sub_total, 2), 2) }}
  • @if ($ride?->coupon_total_discount)
  • {{ __('taxido::static.rides.coupon_discount') }} @if ($ride?->coupon?->code) (#{{ $ride?->coupon?->code }}) @endif : -{{ $cs . number_format(round($ride?->coupon_total_discount, 2), 2) }}
  • @endif
  • {{ __('taxido::static.rides.platform_fee') }} : {{ $cs . number_format($ride?->platform_fees, 2) }}
  • {{ __('taxido::static.rides.tax') }} : {{ $cs . number_format(round($ride?->tax, 2), 2) }}
  • {{ __('taxido::static.rides.admin_commission') }} : {{ $cs . number_format($ride?->commission, 2) }}
  • @if ($ride->processing_fee > 0)
  • {{ __('taxido::static.rides.processing_fee') }} : {{ $cs . number_format($ride?->processing_fee, 2) }}
  • @endif
  • {{ __('taxido::static.rides.total') }} : {{ $cs . number_format(round($ride?->total, 2), 2) }}
    @if ($ride?->comment)
  • {{ __('taxido::static.rides.comments') }}

    {{ $ride?->comment }}

  • @endif
    • {{-- Show cancellation reason if status is cancelled --}} @if (in_array($ride?->ride_status?->slug, [RideStatusEnum::CANCELLED]))
    • {{ __('taxido::static.rides.cancellation_reason') }}

      {{ $ride->cancellation_reason->title ?? __('taxido::static.rides.default_cancel_reason') }}
    • @endif {{-- Show cancellation charges --}} @php $riderCharge = $ride->rider_cancellation_charge ?? 0; $driverCharge = $ride->driver_cancellation_charge ?? 0; $totalCharge = $riderCharge + $driverCharge; @endphp @if ($totalCharge > 0) @if ($riderCharge > 0)
    • {{ __('taxido::static.rides.rider_cancellation_charge') }} : {{ $cs . number_format($riderCharge, 2) }}
    • @endif @if ($driverCharge > 0)
    • {{ __('taxido::static.rides.driver_cancellation_charge') }} : {{ $cs . number_format($driverCharge, 2) }}
    • @endif
    • {{ __('taxido::static.rides.total_cancellation_charge') }} : {{ $cs . number_format($totalCharge, 2) }}
    • @endif
@if (in_array($ride?->service?->slug, [ServicesEnum::PARCEL]))
    @if ($ride?->parcel_receiver)
  • {{ __('taxido::static.rides.receiver_name') }}: {{ $ride?->parcel_receiver['name'] }}
  • {{ __('taxido::static.rides.receiver_no') }}: {{ $ride?->parcel_receiver['country_code'] ?? '' }} {{ $ride?->parcel_receiver['phone'] ?? '' }}
  • {{ __('taxido::static.rides.parcel_otp') }}: {{ $ride?->parcel_delivered_otp }}
  • @endif
@endif @if (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') }}: +{{ $ride?->assigned_driver['country_code'] ?? '' }} {{ $ride?->assigned_driver['phone'] ?? '' }}
  • @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.map_view') }}
    @php $points = range('A', 'Z'); @endphp @foreach ($ride->locations as $index => $location) @if ($loop->last)
  • {{ $location }}{{ $points[$index] }}
  • @else
  • {{ $location }}{{ $points[$index] }}
  • @endif @endforeach
@if (isset($ride?->riderReview))
{{ __('taxido::static.rides.rider_reviews') }}
@if (isset($ride?->riderReview))
{{ __('taxido::static.rides.driver') }} {{ __('taxido::static.rides.rating') }} {{ __('taxido::static.rides.description') }}
@if ($ride?->riderReview?->driver?->profile_image?->original_url) @else @isset($ride?->riderReview?->driver)
{{ strtoupper($ride?->riderReview?->driver?->name[0]) }}
@endisset @endif
{{ $ride?->riderReview?->driver?->name }}
{{ $ride?->riderReview?->driver?->email ?? '' }}
@isset($ride?->riderReview) @php $averageRating = (int) $ride?->riderReview?->rating; $totalStars = 5; @endphp @for ($i = 0; $i < $averageRating; $i++) Filled Star @endfor @for ($averageRating; $i < $totalStars; $i++) Outlined Star @endfor @endisset

{{ \Illuminate\Support\Str::limit($ride?->riderReview?->message, 15) }} {{ $ride?->riderReview?->message }}

{{ __('taxido::static.rides.read_more') }}
@else
data not found
{{ __('taxido::static.widget.no_data_available') }}
@endif
@endif @if (isset($ride?->driverReview))
{{ __('taxido::static.rides.driver_reviews') }}
@if (isset($ride?->driverReview))
{{ __('taxido::static.rides.rider') }} {{ __('taxido::static.rides.rating') }} {{ __('taxido::static.rides.description') }}
@if ($ride?->driverReview?->rider?->profile_image?->original_url) @else @isset($ride?->driverReview?->rider)
{{ strtoupper($ride?->driverReview?->rider?->name[0]) }}
@endisset @endif
{{ $ride?->driverReview?->rider?->name }}
{{ $ride?->driverReview?->rider?->email ?? '' }}
@isset($ride?->driverReview) @php $averageRating = (int) $ride?->driverReview?->rating; $totalStars = 5; @endphp @for ($i = 0; $i < $averageRating; $i++) Filled Star @endfor @for ($i = $averageRating; $i < $totalStars; $i++) Outlined Star @endfor @endisset

{{ \Illuminate\Support\Str::limit($ride?->driverReview?->message, 15) }} {{ $ride?->driverReview?->message }}

{{ __('taxido::static.rides.read_more') }}
@else
data not found
{{ __('taxido::static.widget.no_data_available') }}
@endif
@if (isset($ride?->driverReview))
{{ __('taxido::static.rides.rider') }} {{ __('taxido::static.rides.rating') }} {{ __('taxido::static.rides.description') }}
@if ($ride?->driverReview?->rider?->profile_image?->original_url) @else @isset($ride?->driverReview?->rider)
{{ strtoupper($ride?->driverReview?->rider?->name[0]) }}
@endisset @endif
{{ $ride?->driverReview?->rider?->name }}
{{ $ride?->driverReview?->rider?->email ?? '' }}
@isset($ride?->driverReview) @php $averageRating = (int) $ride?->driverReview?->rating; $totalStars = 5; @endphp @for ($i = 0; $i < $averageRating; $i++) Filled Star @endfor @for ($i = $averageRating; $i < $totalStars; $i++) Outlined Star @endfor @endisset

{{ \Illuminate\Support\Str::limit($ride?->driverReview?->message, 15) }} {{ $ride?->driverReview?->message }}

{{ __('taxido::static.rides.read_more') }}
@else
data not found
{{ __('taxido::static.widget.no_data_available') }}
@endif
@endif @if ($ride->ride_status_activities->isNotEmpty())
Ride Details of #{{ $ride->ride_number }}
Created {{ $ride->created_at->format('j F Y, h:i A') }}
    @foreach($ride?->ride_status_activities->sortByDesc('created_at') as $activity)
  • {{ \Carbon\Carbon::parse($activity->created_at)->format('d-m-Y') }}
    {{ ucfirst(str_replace('_', ' ', $activity->status)) }}
    {{ $activity->ride_status ? $activity->ride_status->description : \Modules\Taxido\Models\RideStatus::getDescriptionByStatus($activity->status) }}
    {{ \Carbon\Carbon::parse($activity->created_at)->format('h:i A') }}
  • @endforeach
@endif
@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