{!! Form::open(['url' => action([\App\Http\Controllers\UnitController::class, 'store']), 'method' => 'post', 'id' => $quick_add ? 'quick_add_unit_form' : 'unit_add_form' ]) !!}

@lang( 'unit.add_unit' )

{!! Form::label('actual_name', __( 'unit.name' ) . ':*') !!} {!! Form::text('actual_name', null, ['class' => 'form-control', 'required', 'placeholder' => __( 'unit.name' )]); !!}
{!! Form::label('short_name', __( 'unit.short_name' ) . ':*') !!} {!! Form::text('short_name', null, ['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')], null, ['placeholder' => __( 'messages.please_select' ), 'required', 'class' => 'form-control']); !!}
@if(!$quick_add)
@show_tooltip(__('lang_v1.multi_unit_help'))
1 @lang('product.unit') = {!! Form::text('base_unit_multiplier', null, ['class' => 'form-control input_number', 'placeholder' => __( 'lang_v1.times_base_unit' )]); !!} {!! Form::select('base_unit_id', $units, null, ['placeholder' => __( 'lang_v1.select_base_unit' ), 'class' => 'form-control']); !!}
@endif
{!! Form::close() !!}