@extends('layouts.app') @extends('layouts.navbar') @section('content')
{{--
{{ __('From Location Required!') }}
{{ __('To Location Required!') }}

{{ __('Days ') }}

--}} @if(Request::has('to'))
{{ __('From : ') }}{{ !empty($from) ? $from : '' }}
{{ __('To : ') }}{{ !empty($to) ? $to : '' }}
{{ __('Days : ') }}{{ !empty($total_days) ? $total_days : '' }}
@if(!empty($ac)) @if ($ac)
{{ __('A/C : ') }}{{ __('A/C') }}
@else
{{ __('A/C : ') }}{{ __('Non-A/C') }}
@endif @endif
@endif
@forelse($rides as $outstation)

{{ __('Driver Name : ') }}{{ $outstation->user->name }}

{{--
{{ __('Vehicle No. :') }}{{ $outstation->user->vehicle_no }}
--}}
{{ $outstation->user->vehicleBrand->name }} {{ $outstation->user->vehicleModel->name }} - {{ $outstation->user->vehicleColour->name }} @if (in_array($outstation->user->vehicle_type_id,[3])) {{ ($outstation->ac==0) ? __("(Non-A/C)") : __("(A/C)") }} @endif
{{ __('Booking Type : ') }}{{ ($outstation->type==1) ? __("One-Way") : __("Two-Way") }}
@if (in_array($outstation->user->vehicle_type_id,[1,3]))
{{ __('Max. Passengers : ') }}{{ $outstation->no_of_passengers ?? __("N/A") }}
@endif @if (in_array($outstation->user->vehicle_type_id,[2,4]))
{{ __('Max. Weight : ') }}{{ $outstation->total_weight ?? __("N/A") }}
@endif
@if(Request::has('to'))
{{ $outstation->dist_text }}{{ __(' away') }}
{{ __('Drop Distance : ') }}{{ $outstation->drop_text }}
{{ __('Fare : Rs. ') }}{{ round((($outstation->fare_day*$total_days)+( $outstation->fare_km * $outstation->drop_dist ) ),0) }}
@if( (\App\Models\RecentOrder::whereIn('order_status_id',[1,2,5,6])->where('user_id','=',Auth::user()->id)->count()) ==0 ) {{-- Book Ride - V Way Taxi --}} {{ __('Call') }} @else {{-- {{ __('Some Bookings are under pending') }} --}} @endif
@endif
@empty
No Data

{{ __('No Vehicles Available! Try Again Later') }}

@endforelse {{ $rides->withQueryString()->render("pagination::bootstrap-5") }}
@endsection @extends('layouts.footer')