Edit Inventory
{!! Form::open(['route'=>array('spare-part.update', $spare_part->id), 'onsubmit'=>'BtnSubmit.disabled = true','method' => 'put','files'=>true]) !!}
{!! Form::close() !!}
{{$errors->first('part_number')}}
{{$errors->first('part_description')}}
{{$errors->first('cost_price')}}
{{$errors->first('selling_price')}}
{!! Form::select("income_account_id", [''=>'Select ']+$incomes, old("income_account_id",$spare_part->income_account_id), ['class'=>'form-control' ,'id' => 'product_id1','required'=>'required'] ) !!}
{{$errors->first('income_account_id')}}
{!! Form::select("expense_account_id", [''=>'Select ']+$expenses, old("expense_account_id",$spare_part->expense_account_id), ['class'=>'form-control' ,'id' => 'expense_account_id','required'=>'required'] ) !!}
{{$errors->first('expense_account_id')}}
{!! Form::select("inventory_account_id", [''=>'Select ']+$assets, old("inventory_account_id",$spare_part->inventory_account_id), ['class'=>'form-control' ,'id' => 'inventory_account_id','required'=>'required'] ) !!}
{{$errors->first('inventory_account_id')}}
{{$errors->first('mark_up')}}
{!! Form::select("department_id", [''=>'Select ']+$department, old("department_id",$spare_part->department_id), ['class'=>'form-control', 'required', 'id'=>'department_id', 'required'] ) !!}
{{$errors->first('department_id')}}
{!! Form::select("spare_part_brand_id", [''=>'Select ']+$brands, old("spare_part_brand_id", $spare_part->spare_part_brand_id), ['class'=>'form-control', 'id'=>'spare_part_brand_id','required'] ) !!}
{{$errors->first('spare_part_brand_id')}}
{!! Form::select("category_id", [''=>'Select ']+$category, old("category_id",$spare_part->category_id), ['class'=>'form-control', 'id'=>'category_id'] ) !!}
{{$errors->first('category_id')}}
{!! Form::select("sub_category_id", [''=>'Select ']+$sub_category, old("sub_category_id",$spare_part->sub_category_id), ['class'=>'form-control', 'id'=>'sub_category_id'] ) !!}
{{$errors->first('sub_category_id')}}
{{-- account_ledger_id --}}
{!! Form::select("sale_return_account_id",$saleReturnAccount, $spare_part->sale_return_account_id, ['class'=>'form-control' ,'id' => 'sale_return_account_id'] ) !!}
{{$errors->first('sale_return_account_id')}}
{{-- account_ledger_id --}}
{!! Form::select("purchase_return_account_id", [''=> 'Select']+$purchaseReturnAccount, $spare_part->purchase_return_account_id, ['class'=>'form-control' ,'id' => 'purchase_return_account_id'] ) !!}
{{$errors->first('purchase_return_account_id')}}
{!! Form::select("supplier_id",[''=>'Select Supplier']+$supplier, old("supplier_id",$spare_part->supplier_id), ['class'=>'form-control' ,'id' => 'supplier_id'] ) !!}
{{$errors->first('minimum_stock_report')}}
{{$errors->first('parts_image')}}
@if($spare_part->parts_image != asset('/storage'))
View Image
@endif
keep_stock == "yes" ? 'checked' : ''}}
value="yes">
{{$errors->first('keep_stock')}}