{!! Form::open([ 'class' => 'form-inline', 'method' => 'GET', 'id' => 'formGenerate' ]) !!}
{!! Form::select('airport', $airports, $selectedAirport, ['required', 'class'=>'singleselect', 'id'=>'airport']) !!}
@if (env(MULTIPLE_AIRLINE))
{!! Form::select('airline[]', $airlines, \request("airline"), ['multiple'=>'multiple', 'class'=>'multiselect_search', 'id'=>'airline']) !!}
@endif
{!! Form::text('dateFrom', $dateFrom, ['class'=>'form-control dateFrom myinput input-sm', 'placeholder'=>'From Date', 'id'=>'from_date']) !!} {!! Form::text('dateTo', $dateTo, ['class'=>'form-control dateTo myinput input-sm', 'placeholder' => 'To Date', 'id'=>'to_date']) !!}
{{-- --}}
@php $disabled = \request("generate") ? "" : "disabled" @endphp
{{-- @if (isset($roster) && $roster)--}} {{-- @endif--}} {!! Form::hidden("roster_id", isset($roster) && $roster ? $roster->id : null, ["id" => "roster_id"]) !!} {!! Form::submit( trans("content.generate"), ['class' => 'btn btn-primary', 'name' => 'generate', "id" => "generate_btn" ]) !!} {!! Form::submit( trans("content.save"), ['class' => 'btn btn-success', 'name' => 'save', "id" => "save_btn", $disabled ]) !!} {!! Form::submit( trans("content.reset"), ['class' => 'btn btn-danger', 'name' => 'reset', "id" => "reset_btn" ]) !!}
@lang("content.type")
{{-- --}} {{-- --}} {{-- --}}
@lang("content.shift_settings")
{!! Form::text("shift_max_hours", \request("shift_max_hours") ? \request("shift_max_hours") : $shiftMaxHours, ['class' => 'form-control input-80 input-sm', "min" => 0]) !!}
{!! Form::text("shift_min_hours", \request("shift_min_hours") ? \request("shift_min_hours") : $shiftMinHours, ['class' => 'form-control input-80 input-sm', "min" => 0]) !!}
{!! Form::text("shift_min_rest_time", \request("shift_min_rest_time") ? \request("shift_min_rest_time") : $shiftMinRestTime, ['class' => 'form-control input-80 input-sm', "min" => 0]) !!}
@lang("content.other_settings")
@lang("content.manual_staff_assignment")
{!! Form::text('date', $dateFrom, ['id' => 'assigned_date', 'class'=>'form-control date myinput input-sm assign-date']) !!}
{!! Form::select('flights', [], null, ['class'=>'input-sm margin-right-5 flights-list']) !!}
{!! Form::close() !!}