@can('rides.cancel') @if ($ride->status->canTransitionTo(\App\Enums\RideStatus::Cancelled)) {{ __('Cancel ride') }} @endif @endcan
  1. {{ $ride->pickup_address }}

    @if ($ride->pickup_note)

    “{{ $ride->pickup_note }}”

    @endif
  2. @foreach ($ride->stops as $stop)
  3. {{ $stop->address }}

    @if ($stop->arrived_at)

    {{ __('Reached :time', ['time' => $stop->arrived_at->format('H:i')]) }}

    @endif
  4. @endforeach
  5. {{ $ride->drop_address ?? __('Open-ended (rental)') }}

@if ($ride->requests->isEmpty()) @else
@foreach ($ride->requests as $offer) @endforeach
{{ __('Round') }}{{ __('Driver') }}{{ __('Distance') }}{{ __('Offered') }}{{ __('Response') }}
{{ $offer->dispatch_round }} {{ $offer->driver?->user?->name ?? '#'.$offer->driver_id }} {{ $offer->distance_km }} km {{ $offer->created_at->format('H:i:s') }} @if ($offer->reject_reason)“{{ $offer->reject_reason }}”@endif @if ($offer->responded_at){{ __('after :s s', ['s' => (int) $offer->created_at->diffInSeconds($offer->responded_at)]) }}@endif
@endif
@foreach ($ride->statusLogs as $log)
{{ $log->note }} {{ $log->actor?->name ?? __('System') }} · {{ $log->created_at->format('M j, H:i:s') }}
@endforeach
@if ($ride->chatMessages->isNotEmpty())
@foreach ($ride->chatMessages as $message) @php($fromDriver = $message->sender_id !== $ride->rider_id) @endforeach
@endif
@if ($ride->rider){{ __('Rider') }}@endif @if ($ride->driver){{ __('Driver') }}@endif
@if ($fare)
@foreach ($fare->toRiderArray()['items'] as $item)
{{ $item['label'] }} $item['amount'] < 0])>{{ money($item['amount']) }}
@endforeach
{{ __('Total') }}{{ money($fare->total) }}
{{ __('Commission') }}{{ money($fare->commission) }}
{{ __('Driver earning') }}{{ money($fare->driverEarning) }}
@endif
@if ($ride->status === \App\Enums\RideStatus::Completed) @forelse ($ride->ratings as $rating)

{{ $rating->rater_type === \App\Models\Rating::RATER_RIDER ? __('Rider → driver') : __('Driver → rider') }} {{ str_repeat('★', $rating->rating) }}{{ str_repeat('★', \App\Models\Rating::MAX_STARS - $rating->rating) }}

@if ($rating->tags)

{{ collect($rating->tags)->map(fn ($tag) => __(config("ridex.ratings.tags.{$rating->rater_type}.{$tag}", $tag)))->implode(' · ') }}

@endif @if ($rating->review)

“{{ $rating->review }}”

@endif
@empty

{{ __('Not rated yet.') }}

@endforelse
@endif @if ($ride->sosAlerts->isNotEmpty() || $ride->supportTickets->isNotEmpty() || $ride->lostItems->isNotEmpty()) @endif
@can('rides.cancel') @endcan