{!! Form::open(['url' => action([\App\Http\Controllers\UnitController::class, 'update'], [$unit->id]), 'method' => 'PUT', 'id' => 'unit_edit_form' ]) !!}

@lang( 'unit.edit_unit' )

{!! Form::label('actual_name', __( 'unit.name' ) . ':*') !!} {!! Form::text('actual_name', $unit->actual_name, ['class' => 'form-control', 'required', 'placeholder' => __( 'unit.name' )]); !!}
{!! Form::label('short_name', __( 'unit.short_name' ) . ':*') !!} {!! Form::text('short_name', $unit->short_name, ['class' => 'form-control', 'placeholder' => __( 'unit.short_name' ), 'required']); !!}
{!! Form::label('allow_decimal', __( 'unit.allow_decimal' ) . ':*') !!} {!! Form::select('allow_decimal', ['1' => __('messages.yes'), '0' => __('messages.no')], $unit->allow_decimal, ['placeholder' => __( 'messages.please_select' ), 'required', 'class' => 'form-control']); !!}
@show_tooltip(__('lang_v1.multi_unit_help'))
1 {{$unit->actual_name}} = {!! Form::text('base_unit_multiplier', !empty($unit->base_unit_multiplier) ? @number_format($unit->base_unit_multiplier) : null, ['class' => 'form-control input_number', 'placeholder' => __( 'lang_v1.times_base_unit' )]); !!} {!! Form::select('base_unit_id', $units, $unit->base_unit_id, ['placeholder' => __( 'lang_v1.select_base_unit' ), 'class' => 'form-control']); !!}

*@lang('lang_v1.edit_multi_unit_help_text')

{!! Form::close() !!}