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

{{ $title }} : {{$proDetails['product_name']}} SKU: {{$proDetails['product_sku']}} Barcode: {{$proDetails['product_barcode']}}

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

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

{{ Form::button(' '.__('lbl.save'), ["name"=>"submit","id"=>"",'class' => 'btn btn-primary btn-sm clickbtncommon productSubmit', 'type' => 'submit'])}} @if(Helper::widgetAccess('default_product_view')) @else @endif {{ __('lbl.cancel') }}
@include('admin.v2.products.tabs.edit-basic-product-details')
@include('admin.v2.products.tabs.edit-advance-product-details')
@php $attrItemsNumbers = 0; @endphp @include('admin.v2.products.tabs.edit-attribute')
@include('admin.v2.products.tabs.edit-price-option')
@include('admin.v2.products.tabs.edit-product-modifier')
@include('admin.v2.products.tabs.edit-inventory')
@include('admin.v2.products.tabs.edit-ingredients')
@include('admin.v2.products.tabs.edit-mpmealplan')

{{ Form::hidden('manualgeneratorsku','1',['id'=>'manualgeneratorsku']) }} {{ Form::hidden('manualgeneratorbarcode','1',['id'=>'manualgeneratorbarcode']) }} {{ Form::hidden('old_sub_cat_id', $proDetails['sub_cat_id'], ['id' => 'old_sub_cat_id']) }} {{ Form::hidden('productActionId', $proDetails['id'] ,['id'=>'productActionId']) }} {{ Form::hidden('takenBy', 0, ['id' => 'takenBy']) }} {{ Form::hidden('modifiers_class',route('modifiers_class'),['id'=>'modifiers_class']) }} {{ Form::hidden('product_image_file_old',$proDetails['product_image_name'], ['id'=> 'product_image_file_old']) }} {{ Form::hidden('myAction','PATCH',['id'=>'myAction']) }} {{ Form::close() }} {{ Form::hidden('skubarcodeserialnumber', ($attrItemsNumbers+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', $proDetails['cat_id'], ['id' => 'catId'])}} {{ Form::hidden('subCatId', $proDetails['sub_cat_id'], ['id' => 'subCatId']) }} {{ Form::hidden('product_id', $proDetails['id'], ['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('attributeGroupremove',route('attributeGroupremove'),['id'=>'attributeGroupremove'])}} {{ Form::hidden('productmodifierremove',route('productmodifierremove'),['id'=>'productmodifierremove']) }} {{ Form::hidden('attributeGroupItemremove',route('attributeGroupItemremove'),['id'=>'attributeGroupItemremove']) }} {{ Form::hidden('total_groups',($proDetails['product_attributes'])? count($proDetails['product_attributes']) : 0,['id'=>'total_groups']) }} {{ Form::hidden('product_search', route('product_search'),['id'=>'product_search']) }} {{ Form::hidden('stockunitsdrop', route('productstockunitsdrop'),['id'=>'stockunitsdrop'])}} {{ Form::hidden('totalIngredientItems', ($product_direct_ingredient)? count($product_direct_ingredient) : 0,['id'=>'totalIngredientItems']) }}
{{ Form::label(__('lbl.product_price_apply')) }}
{{ Form::text('product_price_time_period', '',["class"=>"form-control reservationtime mxlen_25","placeholder"=>__('product.product_price_apply'),"id"=>"reservationtime","name"=>"product_price_time_period[]"]) }}
{{ Form::label(__('lbl.product_price_tire')) }} {{ Form::select('product_price_tires', $product_price_tires, '',['class'=>'form-control','id'=>'product_price_tires',"name"=>"product_price_tires[]"]) }}
{{ Form::label(__('lbl.product_price')) }} {{ Form::text('product_price_custome', '', ["class"=>"form-control mxlen_5","onkeypress"=>"return validateFloatKeyPress(this,event);","placeholder"=>__('lbl.product_price'),"name"=>"product_price_custome[]"]) }}
{{ Form::label(__('lbl.action')) }}
{{ Form::button(' ', ["name"=>"remove_edititem","class"=>"remove_edititem btn btn-primary btn-sm clickbtncommon ","id"=>"remove_edititem","name"=>"remove_edititem[]"]) }}
{{ Form::label(__('lbl.name')) }} {{ Form::text('unit', '', ["class"=>"form-control","placeholder"=>__('lbl.name'),"id"=>"unit_name","name"=>"unit_name[]"]) }}
{{ Form::label(__('lbl.conversion')) }} {{ Form::text('conversion', '', ["class"=>"form-control numer_only","placeholder"=>__('lbl.conversion'),"id"=>"conversion","name"=>"conversion[]"]) }}
{{ Form::label(__('lbl.barcode')) }} {{ Form::text('barcode', '', ["class"=>"form-control","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'], 'NO',['class'=>'form-control','id'=>'primary']) }}
{{ Form::label(__('lbl.action')) }}
{{ Form::button(' ', ["class"=>"btn btn-primary btn-sm clickbtncommon remove_stockitemedit ","id"=>"remove_stockitemedit","name"=>"remove_stockitemedit[]"]) }}
  
{{Form::hidden('ingredientaddupdate',route('ingredientaddupdate'),['id'=>'ingredientaddupdate'])}} {{Form::hidden('ingredientItemdelete',route('ingredientItemdelete'),['id'=>'ingredientItemdelete'])}} {{Form::hidden('ingredientItemlog',route('ingredientItemlog'),['id'=>'ingredientItemlog'])}} @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