{{--
--}}
{{--
--}} {{--
--}} {{--
--}}
Toggle navigation
Bus Chart
{{--
About Us
--}} {{--
Routes
--}} {{--
Services
--}}
Contact Us
{{--Wilson--}} @include('includes.alerts')
{{__('text.company')}}: {{ $company }}
{{__('text.bus')}} : {{ $bus }}
Label : {{ $label }}
{{__('text.departure')}} : {{ $departure }}
{{__('text.available')}}
{{__('text.selected')}}
{{__('text.taken')}}
@csrf
{{ $from }} - {{ $to }}
{{__('text.choose_seat')}}
@php $view = 'seats.seat-map'; $bus = $busId; @endphp
@php $i = 1; $length = count($bus_seats); $booking_status = 0; @endphp @foreach($bus_seats as $i => $busSeat) @if($route == 69 || $route == 70 || $route == 75 || $route == 76 || $route == 81 || $route == 82) @if($i === $length)
@foreach($busSeat as $seat) @php $booking_status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat->seat) ->value('status'); @endphp
@if($seat->seat_status == 1) @if($booking_status == 1)
{{ $seat->seat_name }}
@elseif($booking_status > 1)
{{ $seat->seat_name }}
@else {{--
{{ $seat->seat_name }}
--}} @endif @endif
@endforeach
@else
@foreach($busSeat as $seat) @php $booking_status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat->seat) ->value('status'); @endphp
@if($seat->seat_name == 'TOI' || $seat->seat_name == 'LET' || $seat->seat_name == 'DO' || $seat->seat_name == 'OR') {{--
--}}
{{ $seat->seat_name }}
@else @if($seat->seat_status == 1) @if($booking_status == 1)
{{ $seat->seat_name }}
@elseif($booking_status > 1)
{{ $seat->seat_name }}
@else {{--
{{ $seat->seat_name }}
--}} @endif @endif @endif
@endforeach
@endif @else @if($i === $length)
@foreach($busSeat as $seat)
@if($seat->seat_status == 1) @if($seat->booking_status == 1)
{{ $seat->seat_name }}
@elseif($seat->booking_status > 1)
{{ $seat->seat_name }}
@else
{{ $seat->seat_name }}
@endif @endif
@endforeach
@else
@foreach($busSeat as $seat)
@if($seat->seat_status == 1) @if($seat->booking_status == 1)
{{ $seat->seat_name }}
@elseif($seat->booking_status > 1)
{{ $seat->seat_name }}
@endif @endif
@endforeach
@endif @endif @endforeach {{-- @foreach($bus_seats as $i => $busSeat)--}} {{-- @if($i === $length)--}} {{--
--}} {{--
--}} {{-- @foreach($busSeat as $seat)--}} {{--
--}} {{-- @if($seat->seat_status == 1)--}} {{-- @if($seat->booking_status == 1)--}} {{--
--}} {{--
{{ $seat->seat_name }}
--}} {{-- @elseif($seat->booking_status > 1)--}} {{--
--}} {{--
{{ $seat->seat_name }}
--}} {{-- @endif--}} {{-- @endif--}} {{--
--}} {{-- @endforeach--}} {{--
--}} {{--
--}} {{-- @else--}} {{--
--}} {{--
--}} {{-- @foreach($busSeat as $seat)--}} {{--
--}} {{-- @if($seat->seat_status == 1)--}} {{-- @if($seat->booking_status == 1)--}} {{--
--}} {{--
{{ $seat->seat_name }}
--}} {{-- @elseif($seat->booking_status > 1)--}} {{--
--}} {{--
{{ $seat->seat_name }}
--}} {{-- @endif--}} {{-- @endif--}} {{--
--}} {{-- @endforeach--}} {{--
--}} {{--
--}} {{-- @endif--}} {{-- @endforeach--}}
PROCEED
{{--End Wilson--}} @include('v1.contact_footer')