{!! Form::open(['url' => action('\Modules\Essentials\Http\Controllers\EssentialsAllowanceAndDeductionController@update', $allowance->id), 'method' => 'put', 'id' => 'add_allowance_form' ]) !!}

@lang( 'essentials::lang.edit_allowance_and_deduction' )

{!! Form::label('description', __( 'lang_v1.description' ) . ':*') !!} {!! Form::text('description', $allowance->description, ['class' => 'form-control', 'required', 'placeholder' => __( 'lang_v1.description' ) ]); !!}
{!! Form::label('type', __( 'lang_v1.type' ) . ':*') !!} {!! Form::select('type', ['allowance' => __('essentials::lang.allowance'), 'deduction' => __('essentials::lang.deduction')], $allowance->type, ['class' => 'form-control', 'required' ]); !!}
{!! Form::label('employees', __('essentials::lang.employee') . ':*') !!} {!! Form::select('employees[]', $users, $selected_users, ['class' => 'form-control select2', 'required', 'multiple' ]); !!}
{!! Form::label('amount_type', __( 'essentials::lang.amount_type' ) . ':*') !!} {!! Form::select('amount_type', ['fixed' => __('lang_v1.fixed'), 'percent' => __('lang_v1.percentage')], $allowance->amount_type, ['class' => 'form-control', 'required' ]); !!}
{!! Form::label('amount', __( 'sale.amount' ) . ':*') !!} {!! Form::text('amount', @num_format($allowance->amount), ['class' => 'form-control input_number', 'placeholder' => __( 'sale.amount' ), 'required' ]); !!}
{!! Form::label('applicable_date', __( 'essentials::lang.applicable_date' ) . ':') !!} @show_tooltip(__('essentials::lang.applicable_date_help'))
{!! Form::text('applicable_date', $applicable_date, ['class' => 'form-control', 'placeholder' => __( 'essentials::lang.applicable_date' ), 'readonly' ]); !!}
{!! Form::close() !!}