@extends('layouts.app') @section('title', 'Find a Ride') @section('styles') @endsection @section('content')

🔍 Find a Ride

Search for available rides across Pakistan

@if($rides->count() > 0)
{{ $rides->total() }} rides found
@foreach($rides as $ride)
@if($ride->vehicle->vehicle_images && count($ride->vehicle->vehicle_images) > 0) {{ $ride->vehicle->brand }} @else @endif Rs {{ number_format($ride->price_per_seat * 280, 0) }} {{ $ride->departure_datetime->format('D, M d') }}
{{ $ride->route->fromCity->name }}
{{ $ride->departure_datetime->format('h:i A') }}
{{ $ride->route->estimated_duration_minutes ? floor($ride->route->estimated_duration_minutes / 60) . 'h' : '~2h' }}
{{ $ride->route->toCity->name }}
{{ $ride->arrival_datetime->format('h:i A') }}
@if($ride->driver->avatar) {{ $ride->driver->name }} @else {{ substr($ride->driver->name, 0, 1) }} @endif
{{ $ride->driver->name }}
⭐ {{ number_format($ride->driver->rating ?? 4.5, 1) }} @if($ride->driver->is_verified) ✓ Verified @endif {{ $ride->vehicle->brand }} {{ $ride->vehicle->model }}
{{ $ride->available_seats }} seats
@if($ride->amenities && count($ride->amenities) > 0)
@foreach(array_slice($ride->amenities, 0, 4) as $amenity) {{ $amenity }} @endforeach
@endif
@endforeach
{{ $rides->appends(request()->query())->links() }}
@else
🚗

No rides found

No rides match your search criteria.
Try different dates or cities.

Back to Home
@endif @endsection