{!! Form::open(['class' => 'form-inline', 'method' => 'GET', 'id' => 'formOPS']) !!}
{!! Form::select('airline', $airlines, \request()->get('airline'), ['class'=>'singleselect_search', 'id'=>'airline', 'required']) !!}
{!! Form::select('airport[]', $airports, \request()->get('airport'), ['multiple'=>'multiple', 'class'=>'multiselect_search', 'id'=>'airport']) !!}
@if ($pairingPerm)
{!! Form::select('type', $types, \request()->get('type'), ['class' => 'singleselect']) !!}
@endif
@php $fromToSelected = !\request()->has('dateSearch') || \request()->get('dateSearch') == 'fromTo' @endphp
{!! Form::text('dateFrom', $fromToSelected ? $dateFrom : $dateYesterday, ['class'=>'form-control dateFrom myinput', 'placeholder'=>'From Date', 'id'=>'from_date']) !!} {!! Form::text('dateTo', $fromToSelected ? $dateTo : $dateYesterday, ['class'=>'form-control dateTo myinput', 'placeholder' => 'To Date', 'id'=>'to_date']) !!}
{!! Form::select('bi_month', $biMonths, \request()->get('bi_month'), ['class'=>'singleselect', 'id'=>'bi_month']) !!}
{!! Form::select('month', $monthNames, $currentMonth, ['class'=>'singleselect', 'id'=>'month']) !!}
{!! Form::select('year', $years, getSelectedYear(), ['class'=>'singleselect', 'id'=>'period']) !!}
{{ Form::hidden("form", 1) }}
{!! Form::close() !!}