@php $dateFrom = \request("monthlyHoursPeriodFrom") ? \request("monthlyHoursPeriodFrom") : date('Y-m-d', strtotime('first day of this month')) @endphp @php $dateTo = \request("monthlyHoursPeriodTo") ? \request("monthlyHoursPeriodTo") : date('Y-m-d') @endphp
{!! Form::open(['to'=>'crewroster.crew-report', 'method' => 'get', 'class'=>"form-inline"]) !!}
{!! Form::select('crew', ['fcm'=>'Flight Crew','ccm'=>'Cabin Crew'], $crewType, ['class'=>'form-control input_roster crew']) !!}
{!! Form::select('designation', $designationList , \request("destination"), ['class'=>'form-control input_roster crew_designation']) !!}
{!! Form::input('text', 'monthlyHoursPeriodFrom', $dateFrom, ['class'=>'dateFrom form-control']) !!} {!! Form::input('text', 'monthlyHoursPeriodTo', $dateTo, ['class'=>'dateTo form-control']) !!}
{!! Form::select('month[]', $monthNames, \request("month"), ['multiple'=>'multiple', 'class'=>'multiselect']) !!}
{!! Form::select('year', $years, getSelectedYear(), ['class'=>'singleselect']) !!}
{!! Form::hidden('reportType', 'Fatigue') !!} {!! Form::input('submit', 'submit','Submit',[ 'class' => "btn btn-primary"]) !!}
{!! Form::close() !!}