{!! Form::open(['url' => action([\Modules\Maintenance\Http\Controllers\SparePartController::class, 'store']), 'method' => 'post', 'id' => 'mm_spare_part_form']) !!}
{!! Form::label('part_number', __('maintenance::lang.part_number') . ':*') !!}
{!! Form::text('part_number', null, ['class' => 'form-control', 'required']) !!}
{!! Form::label('name', __('maintenance::lang.name') . ':*') !!}
{!! Form::text('name', null, ['class' => 'form-control', 'required']) !!}
{!! Form::label('supplier_id', __('maintenance::lang.supplier') . ':') !!}
{!! Form::select('supplier_id', $customers, null, ['class' => 'form-control select2', 'placeholder' => __('maintenance::lang.select'), 'style' => 'width:100%']) !!}
{!! Form::label('product_id', __('maintenance::lang.pos_product') . ':') !!}
{!! Form::select('product_id', $products ?? [], null, ['class' => 'form-control select2', 'placeholder' => __('maintenance::lang.select'), 'style' => 'width:100%']) !!}
{!! Form::label('location_id', __('maintenance::lang.stock_location') . ':') !!}
{!! Form::select('location_id', $locations ?? [], null, ['class' => 'form-control select2', 'placeholder' => __('maintenance::lang.select'), 'style' => 'width:100%']) !!}
{!! Form::label('quantity', __('maintenance::lang.quantity') . ':') !!}
{!! Form::number('quantity', 0, ['class' => 'form-control', 'min' => '0', 'step' => '0.01']) !!}
{!! Form::label('unit', __('maintenance::lang.unit') . ':') !!}
{!! Form::text('unit', null, ['class' => 'form-control']) !!}
{!! Form::label('min_stock', __('maintenance::lang.min_stock') . ':') !!}
{!! Form::number('min_stock', 0, ['class' => 'form-control', 'min' => '0', 'step' => '0.01']) !!}
{!! Form::label('max_stock', __('maintenance::lang.max_stock') . ':') !!}
{!! Form::number('max_stock', null, ['class' => 'form-control', 'min' => '0', 'step' => '0.01']) !!}
{!! Form::label('purchase_price', __('maintenance::lang.purchase_price') . ':') !!}
{!! Form::number('purchase_price', 0, ['class' => 'form-control', 'min' => '0']) !!}
{!! Form::label('notes', __('maintenance::lang.notes') . ':') !!}
{!! Form::textarea('notes', null, ['class' => 'form-control', 'rows' => 2]) !!}
{!! Form::close() !!}