@php
$xs = $fvip = $founded = 0;
$vipseats = explode(',', $depature_details->vip_seat);
$totalvipseat = count($vipseats);
@endphp
@if($totalvipseat > 0)
@for($ic = 1; $ic <= $depature_details->number_of_sit; $ic++)
@foreach($depature_details->booking as $booking)
@if($booking->sit_number == $ic)
{{$ic}}
@php $xs = $ic; break; @endphp
@endif
@endforeach
@if($xs != $ic)
@php $foundeds = 0; @endphp
@for($vi = 0; $vi < $totalvipseat; $vi++)
@if($ic == $vipseats[$vi])
{{$ic}}
@php $foundeds = 1; @endphp
@endif
@endfor
@if($foundeds != 1)
{{$ic}}
@endif
@endif
@if($depature_details->number_of_sit == 47)
@if($ic == 1 || $ic == 4)
@elseif($ic == 8 || $ic == 12 || $ic == 16 || $ic == 20 || $ic == 24 || $ic == 28 || $ic == 32 || $ic == 36 || $ic == 40)
@endif
@elseif($depature_details->number_of_sit == 53)
@if($ic == 2 || $ic == 6 || $ic == 10 || $ic == 14 || $ic == 18 || $ic == 22 || $ic == 26 || $ic == 30 || $ic == 34 || $ic == 38 || $ic == 42 || $ic == 46)
@endif
@else
@if($ic == 2 || $ic == 6 || $ic == 10 || $ic == 14 || $ic == 18 || $ic == 22 || $ic == 26 || $ic == 30 || $ic == 34 || $ic == 38 || $ic == 42 || $ic == 46 || $ic == 50)
@endif
@endif
@endfor
@else
@for($ic = 1; $ic <= $depature_details->number_of_sit; $ic++)
@foreach($depature_details->booking as $booking)
@if($booking->sit_number == $ic)
{{$ic}}
@php $xs = $ic; break; @endphp
@endif
@endforeach
@if($xs == $ic) @else
{{$ic}}
@endif
@if($depature_details->number_of_sit == 53)
@if($ic == 2 || $ic == 6 || $ic == 10 || $ic == 14 || $ic == 18 || $ic == 22 || $ic == 26 || $ic == 30 || $ic == 34 || $ic == 38 || $ic == 42 || $ic == 46)
@endif
@else
@if($ic == 2 || $ic == 6 || $ic == 10 || $ic == 14 || $ic == 18 || $ic == 22 || $ic == 26 || $ic == 30 || $ic == 34 || $ic == 38 || $ic == 42 || $ic == 46 || $ic == 50)
@endif
@endif
@endfor
@endif