@extends('layouts.app4') @section('title', 'ABOOD BUS') @section('content') @include('includes.alerts')
@if($seatNaming == 'Number') @if($seatCapacity == '57' && $seatNumbering == '12-34-57SEAT')
{{__('text.company')}}: {{ $company }}
{{__('text.bus')}} : {{ $bus }}
{{__('text.departure')}} : {{ $departure }}
{{__('text.arrive')}} : {{ $arrival }}
{{__('text.available')}} {{__('text.selected')}} {{__('text.taken')}}
@csrf
{{ $from }} - {{ $to }}
{{__('text.choose_seat')}}
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '1') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '1') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '2') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '2') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '3') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '3') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '4') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '4') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '5') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '5') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '6') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '6') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '7') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '7') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '8') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '8') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '9') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '9') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '10') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '10') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '11') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '11') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '12') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '12') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '13') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '13') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '14') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '14') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '15') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '15') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 2) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '16') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '16') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '17') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '17') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '18') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '18') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '19') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '19') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '20') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '20') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '21') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '21') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '22') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '22') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '23') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '23') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '24') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '24') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '25') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '25') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '26') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '26') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '27') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '27') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '28') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '28') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '29') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '29') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '30') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '30') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '31') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '31') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '32') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '32') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '33') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '33') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '34') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '34') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '35') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '35') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '36') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '36') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '37') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '37') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '38') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '38') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '39') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '39') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '40') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '40') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '41') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '41') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '42') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '42') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '43') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '43') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '44') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '44') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '45') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '45') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '46') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '46') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '47') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '47') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '48') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '48') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '49') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '49') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '50') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '50') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '51') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '51') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '52') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '52') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '53') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '53') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '54') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '54') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '57') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '57') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '55') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '55') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    5. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '56') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '56') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
@elseif($seatCapacity == '56' && $seatNumbering == '1-23-56SEAT')
{{__('text.company')}}: {{ $company }}
{{__('text.bus')}} : {{ $bus }}
{{__('text.departure')}} : {{ $departure }}
{{__('text.arrive')}} : {{ $arrival }}
{{__('text.available')}} {{__('text.selected')}} {{__('text.taken')}}
@csrf
{{ $from }} - {{ $to }}
{{__('text.choose_seat')}}
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '1') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '1') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '2') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '2') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '3') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '3') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '4') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '4') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '5') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '5') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '6') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '6') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '7') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '7') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '8') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '8') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '9') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '9') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '10') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '10') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '11') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '11') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '12') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '12') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '13') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '13') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '14') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '14') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '15') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '15') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 2) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '16') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '16') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '17') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '17') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '18') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '18') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '19') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '19') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '20') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '20') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '21') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '21') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '22') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '22') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '23') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '23') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '24') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '24') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '25') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '25') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '26') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '26') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '27') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '27') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '28') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '28') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '29') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '29') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '30') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '30') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '31') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '31') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '32') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '32') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '33') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '33') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '34') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '34') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '35') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '35') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '36') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '36') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '37') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '37') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '38') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '38') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '39') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '39') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '40') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '40') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '41') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '41') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '42') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '42') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '43') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '43') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '44') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '44') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '45') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '45') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '46') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '46') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '47') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '47') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '48') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '48') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '49') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '49') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '50') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '50') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '51') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '51') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '52') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '52') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '53') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '53') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '54') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '54') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '55') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '55') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    5. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '56') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '56') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
@elseif($seatCapacity == '56' && $seatNumbering == '12-34-56SEAT')
{{__('text.company')}}: {{ $company }}
{{__('text.bus')}} : {{ $bus }}
{{__('text.departure')}} : {{ $departure }}
{{__('text.arrive')}} : {{ $arrival }}
{{__('text.available')}} {{__('text.selected')}} {{__('text.taken')}}
@csrf
{{ $from }} - {{ $to }}
{{__('text.choose_seat')}}
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '1') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '1') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '2') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '2') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '3') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '3') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '4') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '4') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '5') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '5') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '6') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '6') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '7') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '7') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '8') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '8') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '9') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '9') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '10') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '10') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '11') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '11') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '12') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '12') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '13') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '13') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '14') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '14') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '15') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '15') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 2) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '16') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '16') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '17') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '17') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '18') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '18') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '19') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '19') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '20') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '20') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '21') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '21') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '22') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '22') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '23') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '23') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '24') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '24') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '25') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '25') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '26') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '26') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '27') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '27') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '28') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '28') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '29') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '29') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '30') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '30') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '31') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '31') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '32') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '32') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '33') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '33') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '34') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '34') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '35') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '35') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '36') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '36') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '37') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '37') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '38') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '38') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '39') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '39') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '40') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '40') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '41') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '41') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '42') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '42') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '43') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '43') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '44') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '44') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '45') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '45') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '46') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '46') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '47') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '47') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '48') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '48') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '49') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '49') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '50') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '50') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '51') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '51') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '52') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '52') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '53') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '53') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '54') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '54') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '57') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '57') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '55') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '55') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    5. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '56') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '56') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
@elseif($seatCapacity == '53' && $seatNumbering == '12-34-53SEAT')
{{__('text.company')}}: {{ $company }}
{{__('text.bus')}} : {{ $bus }}
{{__('text.departure')}} : {{ $departure }}
{{__('text.arrive')}} : {{ $arrival }}
{{__('text.available')}} {{__('text.selected')}} {{__('text.taken')}}
@csrf
{{ $from }} - {{ $to }}
{{__('text.choose_seat')}}
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '1') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '1') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '2') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '2') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '3') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '3') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '4') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '4') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '5') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '5') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '6') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '6') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '7') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '7') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '8') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '8') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '9') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '9') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '10') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '10') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '11') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '11') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '12') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '12') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '13') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '13') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '14') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '14') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '15') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '15') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 2) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '16') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '16') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '17') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '17') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '18') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '18') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '19') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '19') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '20') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '20') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '21') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '21') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '22') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '22') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '23') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '23') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '24') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '24') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '25') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '25') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '26') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '26') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '27') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '27') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '28') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '28') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '29') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '29') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '30') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '30') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '31') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '31') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '32') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '32') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '33') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '33') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '34') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '34') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '35') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '35') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '36') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '36') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '37') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '37') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '38') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '38') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '39') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '39') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '40') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '40') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '41') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '41') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '42') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '42') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '43') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '43') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '44') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '44') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '45') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '45') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '46') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '46') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '47') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '47') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '48') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '48') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '49') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '49') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '50') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '50') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '51') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '51') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '52') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '52') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    5. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '53') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '53') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
@elseif($seatCapacity == '52' && $seatNumbering == '1-23-52SEAT')
{{__('text.company')}}: {{ $company }}
{{__('text.bus')}} : {{ $bus }}
{{__('text.departure')}} : {{ $departure }}
{{__('text.arrive')}} : {{ $arrival }}
{{__('text.available')}} {{__('text.selected')}} {{__('text.taken')}}
@csrf
{{ $from }} - {{ $to }}
{{__('text.choose_seat')}}
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '1') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '1') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '2') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '2') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '3') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '3') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '4') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '4') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '5') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '5') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '6') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '6') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '7') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '7') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '8') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '8') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '9') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '9') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '10') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '10') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '11') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '11') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '12') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '12') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '13') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '13') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '14') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '14') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '15') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '15') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 2) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '16') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '16') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '17') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '17') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '18') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '18') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '19') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '19') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '20') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '20') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '21') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '21') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '22') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '22') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '23') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '23') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '24') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '24') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '25') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '25') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '26') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '26') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '27') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '27') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '28') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '28') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '29') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '29') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '30') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '30') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '31') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '31') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '32') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '32') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '33') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '33') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '34') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '34') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '35') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '35') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '36') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '36') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '37') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '37') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '38') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '38') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '39') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '39') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '40') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '40') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '41') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '41') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '42') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '42') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '43') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '43') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '44') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '44') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '45') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '45') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '46') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '46') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '47') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '47') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '48') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '48') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '49') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '49') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '50') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '50') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '51') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '51') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    5. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '52') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '52') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    6. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '53') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '53') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
@elseif($seatCapacity == '40' && $seatNumbering == '1-23-40SEAT')
{{__('text.company')}}: {{ $company }}
{{__('text.bus')}} : {{ $bus }}
{{__('text.departure')}} : {{ $departure }}
{{__('text.arrive')}} : {{ $arrival }}
{{__('text.available')}} {{__('text.selected')}} {{__('text.taken')}}
@csrf
{{ $from }} - {{ $to }}
{{__('text.choose_seat')}}
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '1') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '1') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '2') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '2') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '3') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '3') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '4') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '4') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '5') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '5') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '6') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '6') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '7') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '7') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '8') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '8') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '9') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '9') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '10') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '10') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '11') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '11') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '12') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '12') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '13') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '13') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '14') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '14') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '15') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '15') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 2) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '16') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '16') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '17') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '17') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '18') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '18') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '19') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '19') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '20') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '20') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '21') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '21') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '22') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '22') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '23') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '23') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '24') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '24') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '25') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '25') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '26') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '26') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '27') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '27') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '28') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '28') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '29') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '29') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '30') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '30') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '31') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '31') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '32') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '32') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '33') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '33') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '34') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '34') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '35') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '35') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '36') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '36') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '37') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '37') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '38') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '38') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '39') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '39') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    5. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '40') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '40') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
@elseif($seatCapacity == '49' && $seatNumbering == '12-34-49SEAT')
{{__('text.company')}}: {{ $company }}
{{__('text.bus')}} : {{ $bus }}
{{__('text.departure')}} : {{ $departure }}
{{__('text.arrive')}} : {{ $arrival }}
{{__('text.available')}} {{__('text.selected')}} {{__('text.taken')}}
@csrf
{{ $from }} - {{ $to }}
{{__('text.choose_seat')}}
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '1') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '1') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '2') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '2') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '3') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '3') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '4') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '4') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '5') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '5') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '6') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '6') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '7') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '7') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '8') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '8') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '9') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '9') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '10') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '10') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '11') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '11') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '12') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '12') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '13') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '13') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '14') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '14') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '15') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '15') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 2) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '16') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '16') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '17') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '17') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '18') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '18') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '19') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '19') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '20') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '20') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '21') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '21') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '22') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '22') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '23') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '23') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '24') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '24') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '25') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '25') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '26') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '26') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '27') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '27') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '28') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '28') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '29') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '29') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '30') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '30') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '31') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '31') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '32') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '32') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '33') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '33') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '34') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '34') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '35') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '35') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '36') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '36') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '37') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '37') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '38') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '38') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '39') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '39') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '40') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '40') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '41') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '41') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '42') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '42') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '43') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '43') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '44') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '44') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '45') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '45') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '46') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '46') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '47') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '47') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '48') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '48') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '48') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '48') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
@elseif($seatCapacity == '60')
{{__('text.company')}}: {{ $company }}
{{__('text.bus')}} : {{ $bus }}
{{__('text.departure')}} : {{ $departure }}
{{__('text.arrive')}} : {{ $arrival }}
{{__('text.available')}} {{__('text.selected')}} {{__('text.taken')}}
@csrf
{{ $from }} - {{ $to }}
{{__('text.choose_seat')}}
{{--//////////////////////////////////////////////--}} @elseif($seatCapacity == '57' && $seatNumbering == '34-21-57SEAT')
{{__('text.company')}}: {{ $company }}
{{__('text.bus')}} : {{ $bus }}
{{__('text.departure')}} : {{ $departure }}
{{__('text.arrive')}} : {{ $arrival }}
{{__('text.available')}} {{__('text.selected')}} {{__('text.taken')}}
@csrf
{{ $from }} - {{ $to }}
{{__('text.choose_seat')}}
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '3') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '3') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '4') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '4') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '2') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '2') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '1') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '1') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '7') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '7') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '8') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '8') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '6') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '6') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '5') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '5') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '11') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '11') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '12') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '12') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '10') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '10') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '9') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '9') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '15') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '15') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 2) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '16') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '16') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '14') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '14') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '13') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '13') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '19') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '19') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '20') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '20') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '18') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '18') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '17') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '17') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '23') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '23') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '24') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '24') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '22') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '22') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '21') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '21') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '27') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '27') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '28') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '28') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '26') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '26') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '25') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '25') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '31') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '31') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '32') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '32') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '30') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '30') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '29') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '29') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '35') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '35') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '36') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '36') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '34') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '34') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '33') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '33') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '39') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '39') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '40') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '40') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '38') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '38') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '37') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '37') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '43') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '43') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '44') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '44') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '42') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '42') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '41') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '41') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '47') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '47') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '48') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '48') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '46') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '46') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '45') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '45') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '51') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '51') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '52') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '52') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '50') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '50') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '49') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '49') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '55') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '55') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '56') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '56') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '57') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '57') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '54') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '54') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    5. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '53') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '53') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
{{--@@@@@@@@@@@@@@@@@@@@@@@@@@@--}} {{--\\\\\\\//////////////////////////////////////////////\\\\\\\--}} @elseif($seatCapacity == '55' && $seatNumbering == '34-21-55SEAT')
{{__('text.company')}}: {{ $company }}
{{__('text.bus')}} : {{ $bus }}
{{__('text.departure')}} : {{ $departure }}
{{__('text.arrive')}} : {{ $arrival }}
{{__('text.available')}} {{__('text.selected')}} {{__('text.taken')}}
@csrf
{{ $from }} - {{ $to }}
{{__('text.choose_seat')}}
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '2') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '2') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '1') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '1') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '3') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '3') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '4') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '4') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '6') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '6') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '5') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '5') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '7') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '7') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '8') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '8') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '10') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '10') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '9') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '9') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '11') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '11') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '12') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '12') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '14') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '14') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '13') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '13') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '15') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '15') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 2) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '16') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '16') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '18') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '18') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '17') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '17') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '19') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '19') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '20') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '20') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '22') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '22') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '21') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '21') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '23') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '23') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '24') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '24') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '26') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '26') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '25') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '25') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '27') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '27') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '28') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '28') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '30') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '30') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '29') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '29') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '31') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '31') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '32') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '32') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '34') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '34') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '33') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '33') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '35') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '35') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '36') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '36') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '38') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '38') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '37') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '37') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '39') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '39') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '40') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '40') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '42') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '42') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '41') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '41') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '43') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '43') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '44') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '44') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '46') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '46') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '45') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '45') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '47') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '47') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '48') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '48') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '50') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '50') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '49') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '49') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '51') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '51') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '52') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '52') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '55') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '55') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '54') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '54') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    5. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '53') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '53') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
{{--@@@@@@@@@@@@@@@@@@@@@@@@@@@--}} {{--\\\\\\\//////////////////////////////////////////////\\\\\\\--}} @elseif($seatCapacity == '53' && $seatNumbering == '34-21-53SEAT')
{{__('text.company')}}: {{ $company }}
{{__('text.bus')}} : {{ $bus }}
{{__('text.departure')}} : {{ $departure }}
{{__('text.arrive')}} : {{ $arrival }}
{{__('text.available')}} {{__('text.selected')}} {{__('text.taken')}}
@csrf
{{ $from }} - {{ $to }}
{{__('text.choose_seat')}}
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '2') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '2') ->value('status'); @endphp @if($active == 1) @if($status == 1 ) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '1') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '1') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '3') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '3') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '4') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '4') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '6') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '6') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '5') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '5') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '7') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '7') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '8') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '8') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '10') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '10') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '9') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '9') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '11') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '11') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '12') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '12') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '14') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '14') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '13') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '13') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '15') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '15') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 2) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '16') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '16') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '18') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '18') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '17') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '17') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '19') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '19') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '20') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '20') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '22') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '22') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '21') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '21') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '24') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '24') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '23') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '23') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '25') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '25') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '26') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '26') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '28') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '28') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '27') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '27') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '29') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '29') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '30') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '30') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '32') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '32') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '31') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '31') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '33') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '33') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '34') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '34') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '36') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '36') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '35') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '35') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '37') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '37') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '38') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '38') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '40') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '40') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '39') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '39') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '41') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '41') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '42') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '42') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '44') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '44') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '43') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '43') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '45') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '45') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '46') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '46') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '48') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '48') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '47') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '47') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '49') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '49') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '50') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '50') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '53') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '53') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '52') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '52') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    5. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '51') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '51') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
{{-- @@@@@@@@@@@@@@@@@@@@@@@@@@@--}} {{--\\\\\\\//////////////////////////////////////////////\\\\\\\--}} @elseif($seatCapacity == '33' && $seatNumbering == '3-21-33SEAT')
{{__('text.company')}}: {{ $company }}
{{__('text.bus')}} : {{ $bus }}
{{__('text.departure')}} : {{ $departure }}
{{__('text.arrive')}} : {{ $arrival }}
{{__('text.available')}} {{__('text.selected')}} {{__('text.taken')}}
@csrf
{{ $from }} - {{ $to }}
{{__('text.choose_seat')}}
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '3') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '3') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '2') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '2') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '1') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '1') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '6') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '6') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '5') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '5') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '4') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '4') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '9') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '9') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '8') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '8') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '7') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '7') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '12') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '12') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '11') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '11') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '10') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '10') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '14') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '14') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '13') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '13') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '16') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '16') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '15') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '15') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 2) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '18') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '18') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '17') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '17') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '19') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '19') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '21') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '21') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '20') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '20') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '22') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '22') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '24') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '24') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '23') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '23') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '25') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '25') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '27') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '27') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '26') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '26') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '28') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '28') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '30') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '30') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '29') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '29') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '31') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '31') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '33') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '33') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '32') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '32') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
{{-- --}}
{{-- @@@@@@@@@@@@@@@@@@@@@@@@@@@--}} @elseif($seatCapacity == '45')
{{__('text.company')}}: {{ $company }}
{{__('text.bus')}} : {{ $bus }}
{{__('text.departure')}} : {{ $departure }}
{{__('text.arrive')}} : {{ $arrival }}
{{__('text.available')}} {{__('text.selected')}} {{__('text.taken')}}
@csrf
{{ $from }} - {{ $to }}
{{__('text.choose_seat')}}
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '3') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); @endphp @if($status == 1) @elseif($status > 1) @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '4') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); @endphp @if($status == 1) @elseif($status > 1) @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '2') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); @endphp @if($status == 1) @elseif($status > 1) @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '1') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); @endphp @if($status == 1) @elseif($status > 1) @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '7') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); @endphp @if($status == 1) @elseif($status > 1) @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '8') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); @endphp @if($status == 1) @elseif($status > 1) @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '6') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); @endphp @if($status == 1) @elseif($status > 1) @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '5') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); @endphp @if($status == 1) @elseif($status > 1) @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '10') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); @endphp @if($status == 1) @elseif($status > 1) @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '9') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); @endphp @if($status == 1) @elseif($status > 1) @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '13') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); @endphp @if($status == 1) @elseif($status > 1) @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '14') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); @endphp @if($status == 1) @elseif($status > 1) @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '15') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); @endphp @if($status == 1) @elseif($status > 2) @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '16') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); @endphp @if($status == 1) @elseif($status > 1) @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '17') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); @endphp @if($status == 1) @elseif($status > 1) @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '18') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); @endphp @if($status == 1) @elseif($status > 1) @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '19') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); @endphp @if($status == 1) @elseif($status > 1) @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '20') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); @endphp @if($status == 1) @elseif($status > 1) @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '21') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); @endphp @if($status == 1) @elseif($status > 1) @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '22') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); @endphp @if($status == 1) @elseif($status > 1) @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '23') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); @endphp @if($status == 1) @elseif($status > 1) @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '24') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); @endphp @if($status == 1) @elseif($status > 1) @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '25') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); @endphp @if($status == 1) @elseif($status > 1) @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '26') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); @endphp @if($status == 1) @elseif($status > 1) @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '27') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); @endphp @if($status == 1) @elseif($status > 1) @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '28') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); @endphp @if($status == 1) @elseif($status > 1) @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '29') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); @endphp @if($status == 1) @elseif($status > 1) @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '30') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); @endphp @if($status == 1) @elseif($status > 1) @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '31') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); @endphp @if($status == 1) @elseif($status > 1) @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '32') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); @endphp @if($status == 1) @elseif($status > 1) @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '33') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); @endphp @if($status == 1) @elseif($status > 1) @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '34') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); @endphp @if($status == 1) @elseif($status > 1) @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '35') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); @endphp @if($status == 1) @elseif($status > 1) @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '36') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); @endphp @if($status == 1) @elseif($status > 1) @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '37') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); @endphp @if($status == 1) @elseif($status > 1) @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '38') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); @endphp @if($status == 1) @elseif($status > 1) @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '39') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); @endphp @if($status == 1) @elseif($status > 1) @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '40') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); @endphp @if($status == 1) @elseif($status > 1) @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '41') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); @endphp @if($status == 1) @elseif($status > 1) @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '42') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); @endphp @if($status == 1) @elseif($status > 1) @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '43') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); @endphp @if($status == 1) @elseif($status > 1) @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '44') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); @endphp @if($status == 1) @elseif($status > 1) @endif
    5. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '45') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); @endphp @if($status == 1) @elseif($status > 1) @endif
{{-- --}}
{{-- @elseif($seatCapacity == '53' && $seatNumbering == '34-21-53toiletSEAT')--}} @elseif($seatCapacity == '53' && $seatNumbering == '34-21-53SEAT-TOILET')
{{__('text.company')}}: {{ $company }}
{{__('text.bus')}} : {{ $bus }}
{{__('text.departure')}} : {{ $departure }}
{{__('text.arrive')}} : {{ $arrival }}
{{__('text.available')}} {{__('text.selected')}} {{__('text.taken')}}
@csrf
{{ $from }} - {{ $to }}
{{__('text.choose_seat')}}
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '3') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '3') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '4') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '4') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '2') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '2') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '1') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '1') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '7') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '7') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '8') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '8') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '6') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '6') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '5') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '5') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '11') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '11') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '12') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '12') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '10') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '10') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '9') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '9') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '15') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '15') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 2) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '16') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '16') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '14') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '14') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '13') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '13') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '19') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '19') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '20') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '20') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '18') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '18') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '17') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '17') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. TOILET
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '22') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '22') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '21') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '21') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. DOOR
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '23') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '23') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '24') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '24') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '25') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '25') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '26') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '26') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '27') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '27') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '28') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '28') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '29') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '29') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '30') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '30') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '31') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '31') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '32') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '32') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '33') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '33') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '34') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '34') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '35') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '35') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '36') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '36') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '37') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '37') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '38') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '38') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '39') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '39') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '40') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '40') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '41') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '41') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '42') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '42') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '43') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '43') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '44') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '44') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '45') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '45') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '46') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '46') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '47') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '47') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '48') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '48') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '49') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '49') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '50') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '50') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '53') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '53') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '52') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '52') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    5. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '51') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '51') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
@elseif($seatCapacity == '58' && $seatNumbering == '34-21-58SEAT')
{{__('text.company')}}: {{ $company }}
{{__('text.bus')}} : {{ $bus }}
{{__('text.departure')}} : {{ $departure }}
{{__('text.arrive')}} : {{ $arrival }}
{{__('text.available')}} {{__('text.selected')}} {{__('text.taken')}}
@csrf
{{ $from }} - {{ $to }}
{{__('text.choose_seat')}}
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '58') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '58') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '3') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '3') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '4') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '4') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '2') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '2') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '1') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '1') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '7') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '7') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '8') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '8') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '6') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '6') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '5') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '5') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '11') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '11') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '12') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '12') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '10') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '10') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '9') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '9') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '15') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '15') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 2) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '16') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '16') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '14') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '14') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '13') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '13') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '19') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '19') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '20') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '20') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '18') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '18') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '17') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '17') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '23') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '23') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '24') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '24') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '22') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '22') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '21') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '21') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '27') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '27') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '28') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '28') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '26') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '26') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '25') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '25') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '31') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '31') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '32') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '32') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '30') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '30') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '29') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '29') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '35') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '35') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '36') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '36') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '34') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '34') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '33') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '33') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '39') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '39') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '40') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '40') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '38') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '38') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '37') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '37') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '43') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '43') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '44') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '44') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '42') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '42') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '41') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '41') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '47') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '47') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '48') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '48') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '46') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '46') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '45') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '45') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '51') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '51') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '52') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '52') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '50') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '50') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '49') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '49') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    1. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '55') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '55') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    2. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '56') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '56') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    3. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '57') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '57') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    4. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '54') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '54') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
    5. @php $bus = \Illuminate\Support\Facades\DB::table('schedules') ->where('id', $schedule) ->value('bus_id'); $seat = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '53') ->value('id'); $status = \Illuminate\Support\Facades\DB::table('bookings') ->where('schedule_id', $schedule) ->where('seat_id', $seat) ->value('status'); $active = \Illuminate\Support\Facades\DB::table('bus_seats') ->where('bus', $bus) ->where('naming', '53') ->value('status'); @endphp @if($active == 1) @if($status == 1) @elseif($status > 1) @endif @endif
@endif @endif
@endsection