{!! Form::open([ 'url' => action([\App\Http\Controllers\StockAdjustmentController::class, 'storeManualAdjustment']), 'method' => 'post', 'id' => 'manual_stock_adjustment_form', ]) !!}

@if($movement_type === 'add') @lang('stock_adjustment.add_stock') @else @lang('stock_adjustment.remove_stock') @endif

{!! Form::hidden('product_id', $variation->product_id) !!} {!! Form::hidden('variation_id', $variation->id) !!} {!! Form::hidden('movement_type', $movement_type) !!}
{{ $product_label }}
{!! Form::label('location_id', __('purchase.business_location') . ':*') !!}

@lang('report.current_stock'): @format_quantity(0)

{!! Form::label('transaction_date', __('messages.date') . ':*') !!}
{!! Form::text('transaction_date', @format_datetime('now'), ['class' => 'form-control', 'required', 'id' => 'manual_adjustment_transaction_date']) !!}
{!! Form::label('quantity', __('sale.qty') . ':*') !!} {!! Form::text('quantity', 1, ['class' => 'form-control input_number', 'required']) !!}
@if(session('business.enable_serial_tracking') && !empty($variation->product->enable_sr_no))
{!! Form::label('serial_numbers', __('lang_v1.serial_numbers') . ':*') !!} {!! Form::textarea('serial_numbers', null, ['class' => 'form-control serial_numbers', 'rows' => 3, 'placeholder' => __('lang_v1.one_serial_per_line')]) !!}
@endif
{!! Form::label('unit_price', __('sale.unit_price') . ':*') !!} {!! Form::text('unit_price', @num_format($variation->dpp_inc_tax), ['class' => 'form-control input_number', 'required']) !!}
{!! Form::label('adjustment_type', __('stock_adjustment.adjustment_type') . ':*') !!} {!! Form::select('adjustment_type', ['normal' => __('stock_adjustment.normal'), 'abnormal' => __('stock_adjustment.abnormal')], 'normal', ['class' => 'form-control select2', 'required']) !!}
{!! Form::label('additional_notes', __('stock_adjustment.reason_for_stock_adjustment') . ':*') !!} {!! Form::textarea('additional_notes', null, ['class' => 'form-control', 'rows' => 3, 'required', 'placeholder' => __('stock_adjustment.reason_for_stock_adjustment')]) !!}
{!! Form::close() !!}