@extends('admin.layout.app') @section('title','Create Inventory') @section('content')

Create Inventory

{!! Form::open(['route'=>array('spare-part.store'), 'onsubmit'=>'BtnSubmit.disabled = true','method' => 'post', 'files'=>true]) !!}
{{$errors->first('part_number')}}
{{$errors->first('part_description')}}
{{$errors->first('cost_price')}}
{{$errors->first('selling_price')}}
{!! Form::select("income_account_id", $incomes, old("income_account_id"), ['class'=>'form-control' ,'id' => 'product_id1','required'=>'required'] ) !!}
{{$errors->first('income_account_id')}}
{!! Form::select("expense_account_id", $expenses, old("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",9), ['class'=>'form-control' ,'id' => 'inventory_account_id'] ) !!}
{{$errors->first('inventory_account_id')}}
{{$errors->first('mark_up')}}
{!! Form::select("department_id", [''=>'Select ']+$department, old("department_id"), ['class'=>'form-control', 'required', 'id'=>'department_id','required'=>'required'] ) !!}
{{$errors->first('department_id')}}
{!! Form::select("spare_part_brand_id", []+$brands, old("spare_part_brand_id"), ['class'=>'form-control', 'id'=>'spare_part_brand_id','required'=>'required'] ) !!}
{{$errors->first('spare_part_brand_id')}}
{!! Form::select("category_id", [''=>'Select ']+$category, old("category_id"), ['class'=>'form-control', 'id'=>'category_id'] ) !!}
{{$errors->first('category_id')}}
{!! Form::select("sub_category_id", [''=>'Select '], old("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, old("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",$purchaseReturnAccount, old("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"), ['class'=>'form-control' ,'id' => 'supplier_id'] ) !!}
{{$errors->first('minimum_stock_report')}}
{{$errors->first('parts_image')}}
 
{{$errors->first('keep_stock')}}
{!! Form::close() !!}
@endsection @push('footerscript') @endpush