@section('title', (isset($page_title) ? $page_title . ' | ' : '') . config('app.name')) @section('breadcrumb', isset($page_title) ? $page_title : '')
{{ $page_title }}
@forelse ($list as $key => $data) @empty @endforelse
# Vehicle Info Type Destination Price Status Actions
{{ $key + 1 + ($list->currentPage() - 1) * $list->perPage() }} Name: {{ $data->getVehicle->name }}
({{ $data->getVehicle->vehicle_number }})
Seat: {{ $data->getVehicle->number_of_seat }}
Category: {{ $data->getVehicleCategory->name }}
@if($data->is_local_available) Local @else {{ ucfirst($data->cab_type) }} @endif @if($data->is_local_available) {{ $data->getDestinationFrom->name }} @else {{ $data->getDestinationFrom->name }} {{ $data->getDestinationTo->name }}
Total Distance: {{ $data->total_distance }} KM @endif
@if ($data->cab_type == 'sharing') @php $seatMap = $data->getVehicle->seat_map; $prices = $data->seat_prices ?? []; @endphp @foreach ($seatMap as $row) @foreach ($row as $seat) @if (is_array($seat) && isset($seat['seat_number'])) @php $seatNumber = $seat['seat_number']; $seatType = $seat['type'] ?? ''; $price = $prices[$seatNumber] ?? ''; @endphp
Seat {{ $seatNumber }} @if ($seatType) ({{ $seatType }}) @endif :   ₹ {{ $price }} /-
@endif @endforeach @endforeach @elseif ($data->cab_type != 'sharing') @if($data->is_local_available) @foreach ($data->local_hourly_price as $hourly_id => $price)
{{ getLocalHourlyData($hourly_id)->hour }} hrs | {{ getLocalHourlyData($hourly_id)->km }} km :  ₹ {{ $price }} /-
@endforeach @else ₹ {{ $data->price }} /- @endif @if($data->is_round_trip)
Round Trip Price :  ₹ {{ $data->round_trip_price }} /-
@endif @endif