@if(isset($unit))
{!! Form::open(['url' => action([\App\Http\Controllers\UnitController::class, 'update'], [$unit->id]), 'method' => 'PUT', 'id' => 'modal_add_form' ]) !!}
@else
{!! Form::open(['url' => action([\App\Http\Controllers\UnitController::class, 'store']), 'method' => 'post', 'id' => $quick_add ? 'quick_add_unit_form' : 'modal_add_form' ]) !!}
@endif
{!! Form::label('actual_name', __( 'unit.unit_actual_name' ) . ':*') !!}
{!! Form::text('actual_name', $unit->actual_name ?? '', ['class' => 'form-control', 'required', 'placeholder' => __( 'unit.unit_actual_name' ) ]); !!}
{!! Form::label('short_name', __( 'unit.unit_short_name' ) . ':*') !!}
{!! Form::text('short_name', $unit->short_name ?? '', ['class' => 'form-control', 'required', 'placeholder' => __( 'unit.short_name' ) ]); !!}
{!! Form::label('allow_decimal', __( 'unit.allow_decimal' ) . ':') !!}
{!! Form::select('allow_decimal',[0=>"No",1=>"Yes"], $unit->allow_decimal ?? '', ['class' => 'form-control']); !!}
@if(!$quick_add)
@endif
{!! Form::close() !!}