@extends('layouts.adminLayout.admin_design') @section('content')

{{ $title }}

{{ Form::open(['url' => route('product.store'), 'method'=>'post', 'file'=>true, 'enctype'=>'multipart/form-data', 'name' => 'productconfig', 'id' => 'productconfig']) }}

{{ __('lbl.products_configuration') }}

{{ Form::button(' '.__('lbl.save'), ["id"=>"productSubmit","name"=>"submit",'class' => 'productSubmit btn btn-primary btn-sm clickbtncommon ', 'type' => 'submit']) }} @if(Helper::widgetAccess('default_product_view')) @else @endif {{ __('lbl.cancel') }}
@include('admin.v2.products.tabs.create-basic-product-details')
@include('admin.v2.products.tabs.create-advance-product-details')
@include('admin.v2.products.tabs.create-attribute')
@include('admin.v2.products.tabs.create-price-option')
@include('admin.v2.products.tabs.create-product-modifier')
@include('admin.v2.products.tabs.create-inventory')
@include('admin.v2.products.tabs.create-ingredients')
@include('admin.v2.products.tabs.create-mpmealplan')
{{ Form::hidden('manualgeneratorsku','1',['id'=>'manualgeneratorsku']) }} {{ Form::hidden('manualgeneratorbarcode','1',['id'=>'manualgeneratorbarcode']) }} {{ Form::hidden('myAction','POST',['id'=>'myAction']) }} {{ Form::hidden('productActionId',0,['id'=>'productActionId']) }} {{ Form::hidden('takenBy', 0, ['id' => 'takenBy']) }} {{ Form::hidden('modifiers_class',route('modifiers_class'),['id'=>'modifiers_class']) }} {{ Form::close() }} {{ Form::hidden('skubarcodeserialnumber', 1, ['id' => 'skubarcodeserialnumber']) }} {{ Form::hidden('isAutoGenerateBarcode', (Helper::widgetAccess('auto_generate_barcode'))?true:false,['id'=>'isAutoGenerateBarcode']) }} {{ Form::hidden('isAutoGenerateSku', (Helper::widgetAccess('auto_generate_sku'))?true:false, ['id'=>'isAutoGenerateSku']) }} {{ Form::hidden('route_barcode', route('productBarcode'), ['id' => 'route_barcode']) }} {{ Form::hidden('catId', 0, ['id' => 'catId']) }} {{ Form::hidden('subCatId', 0, ['id' => 'subCatId']) }} {{ Form::hidden('product_id', 0, ['id' => 'product_id']) }} {{ Form::hidden('shorturl',route('subcategories'),['id'=>'shorturl']) }} {{ Form::hidden('no_subcategories_available',__('lbl.no_subcategories_available'),['id'=>'no_subcategories_available'])}} {{ Form::hidden('route_auto_generate',route('autoGenerateSku'),['id'=>'route_auto_generate']) }} {{ Form::hidden('route_auto_generate_barcode',route('autoGenerateBarcode'),['id'=>'route_auto_generate_barcode']) }} {{ Form::hidden('generateSku',route('generateSku'),['id'=>'generateSku']) }} {{ Form::hidden('generateBarcode',route('generateBarcode'),['id'=>'generateBarcode']) }} {{ Form::hidden('product_search',route('product_search'),['id'=>'product_search']) }} {{ Form::hidden('stockunitsdrop',route('productstockunitsdrop'),['id'=>'stockunitsdrop'])}} {{ Form::hidden('totalItems','0',['id'=>'totalItems','name'=>'totalItems']) }}
{{ Form::label(__('lbl.name')) }} {{ Form::text('unit', 'Unit', ["class"=>"form-control mxlen_8","placeholder"=>__('lbl.name'),"id"=>"unit_name","name"=>"unit_name[]"]) }}
{{ Form::label(__('lbl.conversion')) }} {{ Form::text('conversion', 1, ["class"=>"form-control mxlen_6","placeholder"=>__('lbl.conversion'),"id"=>"conversion","name"=>"conversion[]"]) }}
{{ Form::label(__('lbl.barcode')) }} {{ Form::text('barcode', '', ["class"=>"form-control mxlen_10","placeholder"=>__('lbl.barcode'),"id"=>"barcode","name"=>"barcode[]"]) }}
{{ Form::label(__('lbl.unit')) }} {{ Form::select('unit', $inventory_unit, '',['class'=>'form-control','id'=>'unit',"name"=>"unit[]"]) }}
{{ Form::label(__('lbl.active')) }}
{{ Form::select('inv_active[]', ['YES'=>'YES','NO'=>'NO'], 'YES',['class'=>'form-control inv_active','id'=>'inv_active',"name"=>"inv_active[]"]) }}
{{ Form::label(__('lbl.primary')) }}
{{ Form::select('primary[]', ['YES'=>'YES','NO'=>'NO'], 'YES',['class'=>'form-control primary','id'=>'primary']) }}
{{ Form::label(__('lbl.action')) }}
{{ Form::button(' ', ["class"=>"btn btn-primary btn-sm clickbtncommon remove_stockitem ","id"=>"remove_stockitem","name"=>"remove_stockitem[]"]) }}
@endsection @section('pagescript') {!! Helper::pagejs([ 'js/lib/select2/dist/js/select2.full.min.js', 'js/lib/moment/min/moment.min.js', 'js/lib/bootstrap-daterangepicker/daterangepicker.js', 'js/lib/bootstrap-datepicker/dist/js/bootstrap-datepicker.min.js', 'js/lib/bootstrap-colorpicker/dist/js/bootstrap-colorpicker.min.js', 'js/lib/plugins/timepicker/bootstrap-timepicker.min.js', 'js/lib/tags/bootstrap-tagsinput.min.js', 'js/backend/producttab/add_edit.js', 'js/backend/producttab/productmodifiers.js', 'js/backend/producttab/productingredient.js', 'js/lib/colorpick/dependencies/tinycolor-0.9.15.min.js', 'js/lib/colorpick/1.2.3/js/pick-a-color-1.2.3.min.js' ]) !!} @stop