@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') }} :
@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') }} :
@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) }}
{{ __('taxido::static.rides.comments') }}
{{ $ride?->comment }}
{{-- Show cancellation reason if status is cancelled --}} @if (in_array($ride?->ride_status?->slug, [RideStatusEnum::CANCELLED]))-
@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
{{ __('taxido::static.rides.cancellation_reason') }}
{{ $ride->cancellation_reason->title ?? __('taxido::static.rides.default_cancel_reason') }}