{{ __('message.riderequest') }}

#{{ $data->id }}

{{ __('message.pickup_address') }}

{{ $data->start_address }}

{{ __('message.drop_address') }}

{{ $data->end_address }}

@if(optional($data)->payment != null && optional($data)->payment->payment_status == 'paid')

{{ __('message.total_distance') }}

{{ $data->distance }} {{ $data->distance_unit }}

{{ __('message.total_duration') }}

{{ $data->duration }} {{ __('message.min') }}

{{ __('message.admin_commission') }}

{{ getPriceFormat(optional($data->payment)->admin_commission ?? 0 ) }}

{{ __('message.driver_earning') }}

{{ getPriceFormat(optional($data->payment)->driver_commission ?? 0 ) }}
@endif

{{ __('message.payment') }}

@if(optional($data)->payment != null && optional($data)->payment->payment_status == 'paid') @php $distance_unit = $data->distance_unit; @endphp
    @if($data->minimum_fare == ( $data->subtotal - $data->extra_charges_amount ))
  • {{ __('message.minimum_fare') }} {{ getPriceFormat($data->minimum_fare) }}
  • @else
  • {{ __('message.base_fare') }} {{ __('message.for_first') }} {{ $data->base_distance }} {{ __('message.'.$distance_unit) }} {{ getPriceFormat($data->base_fare) }}
  • {{ __('message.distance') }} @if($data->distance > $data->base_distance) {{ $data->distance - $data->base_distance }} {{ $distance_unit }} x {{ $data->per_distance }}/{{ __('message.'.$distance_unit) }} @else {{ $data->distance }} {{ $distance_unit }} x {{ $data->per_distance }}/{{ __('message.'.$distance_unit) }} @endif {{ getPriceFormat($data->per_distance_charge) }}
  • {{ __('message.duration') }} {{ $data->duration }} {{ __('message.min') }} x {{ $data->per_minute_drive }}/{{ __('message.min') }} {{ getPriceFormat($data->per_minute_drive_charge) }}
  • {{ __('message.wait_time') }} @if($data->waiting_time == 0) @else {{ $data->waiting_time }} {{ __('message.min') }} x {{ $data->per_minute_waiting }}/{{ __('message.min') }} @endif {{ getPriceFormat($data->per_minute_waiting_charge) }}
  • @endif
  • {{ __('message.extra_charges') }} @if(count($data->extra_charges) > 0) @php $extra_charges = collect($data->extra_charges)->pluck('key')->implode(', '); @endphp {{ $extra_charges }} @else @endif {{ getPriceFormat($data->extra_charges_amount) }}
  • {{ __('message.tip') }} {{ getPriceFormat($data->tips) }}
  • {{ __('message.coupon_discount') }} {{ getPriceFormat($data->coupon_discount) }}
  • {{ __('message.amount') }} @php $total_amount = ( $data->tips ?? 0 ) + optional($data->payment)->total_amount; @endphp {{ getPriceFormat($total_amount) }}
@else
  • {{ __('message.payment_method') }} {{ $data->payment_type ?? '-' }}
  • {{ __('message.amount') }} {{ optional($data->payment)->total_amount == null ? '-' : getPriceFormat(optional($data->payment)->total_amount) }}
@endif
@if(count($data->rideRequestHistory) > 0)

{{ __('message.activity_timeline') }}

    @foreach($data->rideRequestHistory as $history)
  • {{ __('message.'.$history->history_type) }}
    {{ $history->datetime }}

    {{ $history->history_message }}

  • @endforeach
@endif

{{ __('message.detail_form_title', [ 'form' => __('message.rider') ]) }}

rider-profile
@if( $data->is_ride_for_other == 0 )

{{ optional($data->rider)->display_name }}

{{ optional($data->rider)->contact_number }}

{{ optional($data->rider)->email }}

{{ optional($data->rideRequestRiderRating())->rating }} @if( optional($data->rideRequestRiderRating())->rating > 0 ) @endif

@else

{{ __('message.booked_by') }}: {{ optional($data->rider)->display_name }}

@if(!empty($data->other_rider_data)) @foreach($data->other_rider_data as $key)

{{ $key ?? '' }}

@endforeach @endif @endif
@if( isset($data->driver) )

{{ __('message.detail_form_title', [ 'form' => __('message.driver') ]) }}

driver-profile

{{ optional($data->driver)->display_name }}

{{ optional($data->driver)->contact_number }}

{{ optional($data->driver)->email }}

{{ optional($data->rideRequestDriverRating())->rating }} @if( optional($data->rideRequestDriverRating())->rating > 0 ) @endif

@endif

{{ __('message.detail_form_title', [ 'form' => __('message.service') ]) }}

service-detail

{{ optional($data->service)->name }}