{!! Form::open(['url' => empty($shift) ? action('\Modules\Essentials\Http\Controllers\ShiftController@store') : action('\Modules\Essentials\Http\Controllers\ShiftController@update', [$shift->id]), 'method' => empty($shift) ? 'post' : 'put', 'id' => 'add_shift_form' ]) !!}
{!! Form::label('name', __( 'user.name' ) . ':*') !!}
{!! Form::text('name', !empty($shift->name) ? $shift->name : null, ['class' => 'form-control', 'placeholder' => __( 'user.name'), 'required']); !!}
{!! Form::label('type', __('essentials::lang.shift_type') . ':*') !!} @show_tooltip(__('essentials::lang.shift_type_tooltip'))
{!! Form::select('type', ['fixed_shift' => __('essentials::lang.fixed_shift'), 'flexible_shift' => __('essentials::lang.flexible_shift')], !empty($shift->type) ? $shift->type : null, ['class' => 'form-control select2', 'required', 'id' => 'shift_type']); !!}
{!! Form::label('holidays', __( 'essentials::lang.holiday' ) . ':') !!}
{!! Form::select('holidays[]', $days, !empty($shift->holidays) ? $shift->holidays : null, ['class' => 'form-control select2', 'multiple' ]); !!}
@show_tooltip(__('essentials::lang.allow_auto_clockout_tooltip'))