@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') }}

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

{{ Form::label( __('lbl.product_name') ) }} {{ Form::text('product_name', '', ["class"=>"form-control mxlen_100","placeholder"=>__('lbl.product_name'),"id"=>"product_name"]) }}
{{ Form::label(__('lbl.product_type')) }} {{ Form::select('product_type', $product_types, '',["class"=>"form-control","id"=>"product_type"]) }}
{{ Form::label(__('lbl.sel_category')) }} {{ Form::select('cat_id', !empty($categories)? [''=>__('lbl.sel_category')]+$categories:[], '',['class'=>'form-control searchCategory select2','id'=>'cat_id']) }}
{{ Form::label(__('lbl.sel_sub_category')) }} {{ Form::select('sub_cat_id', [''=>__('lbl.sel_category')], '',['class'=>'form-control searchCategory select2','id'=>'sub_cat_id']) }}
{{ Form::label(__('lbl.product_sku') ,'',['style'=>'width:100%; clear:both']) }}
{{ Form::text('product_sku', '', ["class"=>"form-control mxlen_20","placeholder"=>__('lbl.product_sku'),"id"=>"product_sku"]) }}
{{ Form::label(__('lbl.product_barcode') ,'',['style'=>'width:100%; clear:both']) }}
{{ Form::text('product_barcode', '', ['maxlength' => 20, "class"=>"form-control","placeholder"=>__('lbl.product_barcode'),"id"=>"product_barcode"]) }}
{{ Form::label(__('lbl.product_cost')) }} {{ Form::text('product_cost', '0.00', ["class"=>"form-control mxlen_8 numer_only","onkeypress"=>"return validateFloatKeyPress(this,event);","placeholder"=>__('lbl.product_cost'),"id"=>"product_cost"])}}
{{ Form::label(__('lbl.product_price')) }} {{ Form::text('product_price', '0.00', ["class"=>"form-control mxlen_8 numer_only","onkeypress"=>"return validateFloatKeyPress(this,event);","placeholder"=>__('lbl.product_price'),"id"=>"product_price"])}}
{{ Form::label(__('lbl.product_color')) }} {!! Form::colorlistSelect('product_color', '',["class"=>"form-control","id"=>"product_color"]) !!}
{{ Form::label(__('lbl.status')) }} {{ Form::select('product_status', $product_status, 'Active',["class"=>"form-control","id"=>"product_status"]) }}
{{ Form::label(__('lbl.product_reward')) }} {{ Form::text('product_reward', '', ["class"=>"form-control mxlen_5 numer_only","placeholder"=>__('lbl.product_reward'),"id"=>"product_reward"]) }}
{{ Form::label(__('lbl.sizes')) }} {{ Form::text('sizes', '', ["class"=>"form-control mxlen_50","rows"=>10,"placeholder"=>__('lbl.sizes'),"id"=>"sizes"]) }}
{{ Form::label(__('lbl.modifiers')) }} {{ Form::select('product_modifiers_id[]', $modifiers, '',["multiple"=>"multiple","class"=>"form-control select2","id"=>"product_modifiers_id"]) }}
{{ Form::label(__('lbl.crv_applied')) }} {{ Form::select('crv_applied', ['0'=>'NO','1'=>'YES'], '0',["class"=>"form-control","id"=>"crv_applied"]) }}
{{ Form::label(__('lbl.crv_amount')) }} {{ Form::text('crv_amount', '',["class"=>"form-control numer_float_only","id"=>"crv_amount"]) }}
{{ Form::label(__('lbl.product_image')) }}
{{ Form::label(__('lbl.establishments')) }} ({{__('lbl.product_copy_message')}}) {{ Form::select('establishments[]', $establishments, '',["multiple"=>"multiple","class"=>"form-control select2","id"=>"establishments"]) }}
{{ Form::label(__('lbl.pattern_description')) }} {{ Form::text('pattern_description', '', ["class"=>"bootstrap-tagsinput form-control","placeholder"=>"", "id"=>"pattern_description"]) }}
{{ Form::label(__('lbl.special_instruction')) }} {{ Form::text('special_instruction', '', ["class"=>"bootstrap-tagsinput form-control","placeholder"=>"", "id"=>"special_instruction"]) }}
{{ Form::label(__('lbl.sort')) }}
{{ Form::number('product_sort', '0', ["class"=>"form-control mxlen_100","placeholder"=>__('lbl.product_sort'),"id"=>"product_sort","min"=>"0"]) }}
{{ Form::label("product_tags", __('lbl.product_tags')) }} {{ Form::text('product_tags', '', ["class"=>"bootstrap-tagsinput form-control","placeholder"=>"", "id"=>"product_tags"]) }}
{{ Form::label(__('lbl.style_code')) }} {{ Form::text('style_code', '', ["class"=>"form-control mxlen_30","rows"=>2,"placeholder"=>__('lbl.style_code'),"id"=>"style_code"]) }}
{{ Form::label(__('lbl.clr')) }} {{ Form::text('clr', '', ["class"=>"form-control mxlen_30","rows"=>2,"placeholder"=>__('lbl.clr'),"id"=>"clr"]) }}
{{ Form::label(__('lbl.description')) }} {{ Form::text('product_description', '', ["class"=>"form-control mxlen_400","rows"=>2,"placeholder"=>__('lbl.description'),"id"=>"product_description"]) }}
{{ Form::select('game_hours', $gameHours, '00', ["class"=>"form-control select2", "id"=>"game_hours"]) }}
{{ Form::select('game_minutes', $gameMinutes, '00', ["class"=>"form-control select2","id"=>"game_minutes"]) }}
{{ Form::label(__('lbl.is_gift_card')) }}
{{ Form::checkbox('is_gift_card', 1, false, ["class"=>"","id"=>"is_gift_card"]) }}
{{ Form::label(__('lbl.is_gratis_services')) }}
{{ Form::checkbox('is_gratis_services', '1', false,["class"=>"","id"=>"is_gratis_services"]) }}
{{ Form::label(__('lbl.is_taxable')) }}
{{ Form::checkbox('product_is_taxable', '1', true,["class"=>"","id"=>"product_is_taxable"]) }}
{{ Form::label(__('lbl.sold_by_weight')) }}
{{ Form::checkbox('sold_by_weight', '1', false,["class"=>"","id"=>"sold_by_weight"]) }}
{{ Form::label(__('lbl.is_custom_product')) }}
{{ Form::checkbox('is_custom_product', '1', false,["class"=>"","id"=>"is_custom_product"]) }}
{{ Form::label(__('lbl.is_for_kiosk')) }}
{{ Form::checkbox('isForKiosk', '1', false,["class"=>"","id"=>"isForKiosk"]) }}
{{ Form::label(__('lbl.is_custom_service')) }}
{{ Form::checkbox('is_custom_service', '1', false,["class"=>"","id"=>"is_custom_service"]) }}
{{ Form::label(__('lbl.web')) }}
{{ Form::checkbox('web', '1', false,["class"=>"","id"=>"web"]) }}
{{ Form::label(__('lbl.pos')) }}
{{ Form::checkbox('pos', '1', false,["class"=>"","id"=>"pos"]) }}
@if(Helper::widgetAccess('show_inventory_min_max_alert'))

Inventory Alert

{{ Form::label('Min Inventory') }} {{ Form::number('min_inventory', '', ["class"=>"form-control mxlen_100","placeholder"=>'Min Inventory',"id"=>"min_inventory"]) }}
{{ Form::label('Max Inventory') }} {{ Form::number('max_inventory', '', ["class"=>"form-control mxlen_100","placeholder"=>'Max Inventory',"id"=>"max_inventory"]) }}
@endif

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

{{ Form::label(__('lbl.mpautoissuegiftcard')) }}
{{ Form::checkbox('mpautoissuegiftcard', '1', false,["class"=>"","id"=>"mpautoissuegiftcard"]) }}
{{ Form::label(__('lbl.mpgiftcardamount')) }}
{{ Form::number('mpgiftcardamount', 0,["class"=>"form-control ","id"=>"mpgiftcardamount"]) }}
{{ Form::label(__('lbl.mppurchasecounter').' ('.__('lbl.mpmealplantype').')')}} {{ Form::text('mppurchasecounter', 7, ["class"=>"form-control mxlen_5","onkeypress"=>"return validateFloatKeyPress(this,event);","placeholder"=>__('lbl.mppurchasecounter'),"id"=>"mppurchasecounter"]) }}
{{ Form::label(__('lbl.planexpirydays'))}} {{ Form::number('mpplanexpirydays', 0, ["class"=>"form-control","placeholder"=>__('lbl.planexpirydays'),"id"=>"mpplanexpirydays"]) }}

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

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

{{ __('lbl.action') }} {{ __('lbl.product_name') }} {{ __('lbl.product_sku') }} {{ __('lbl.product_barcode') }} {{ __('lbl.quantity') }} {{ __('lbl.unit_type') }}

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

{{ Form::label(__('lbl.product_price_apply')) }} {{ Form::text('product_price_time_period[]', '',["class"=>"form-control reservationtime mxlen_23","placeholder"=>__('product.product_price_apply'),"id"=>"reservationtime"]) }}
{{ Form::label(__('lbl.product_price_tire')) }} {{ Form::select('product_price_tires[]', ($product_price_tires)?$product_price_tires:[], '',['class'=>'form-control','id'=>'product_price_tires']) }}
{{ Form::label(__('lbl.product_price')) }} {{ Form::text('product_price_custome[]', '', ["class"=>"form-control mxlen_8 numer_only","onkeypress"=>"return validateFloatKeyPress(this,event);","placeholder"=>__('lbl.product_price'),"id"=>"product_price_custome"]) }}
{{ Form::label(__('lbl.action')) }}
{{ Form::button(' ', ["class"=>"remove_dataitem btn btn-sm btn-primary clickbtncommon btn-sm ","id"=>"remove_item","name"=>"remove_item[]"]) }}

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

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

{{ Form::label(__('lbl.require_serial_number')) }}
{{ Form::label(__('lbl.do_not_allow')) }}
{{ Form::label(__('lbl.default_inventory')) }}
{{ Form::label(__('lbl.track_in_inventory')) }}
{{ Form::label(__('lbl.reorder_to_par')) }}
{{ Form::label(__('lbl.tax_on_reorder')) }}
{{ Form::label(__('lbl.umo')) }} {{ Form::text('uom', '1', ["class"=>"form-control mxlen_5 digits","placeholder"=>__('lbl.umo'),"id"=>"uom"]) }} @if ($errors->has('uom')) @endif
{{ Form::label(__('lbl.bin_value')) }} {{ Form::text('bin_value', '', ["class"=>"form-control mxlen_10","placeholder"=>__('lbl.bin_value'),"id"=>"bin_value"]) }}
{{ Form::label(__('lbl.threshold')) }} {{ Form::text('threshold', '', ["class"=>"form-control mxlen_5 numer_only","placeholder"=>__('lbl.threshold'),"id"=>"threshold"]) }}
{{ Form::label(__('lbl.primary_vendor')) }} {{ Form::select('primary_vendor', ($primary_vendor)?$primary_vendor:[], '',['class'=>'form-control primaryVendor select2','id'=>'primary_vendor']) }}
{{ Form::label(__('lbl.vendor_item_id')) }} {{ Form::text('vendor_item_id', '', ["class"=>"form-control mxlen_20","placeholder"=>__('lbl.vendor_item_id'),"id"=>"vendor_item_id"]) }}
{{ Form::label(__('lbl.reorder_unit_type')) }} {{ Form::text('reorder_unit_type', '', ["class"=>"form-control mxlen_10","placeholder"=>__('lbl.reorder_unit_type'),"id"=>"reorder_unit_type"]) }}
{{ Form::label(__('lbl.default_reorder_quantity')) }} {{ Form::text('default_reorder_quantity', '', ["class"=>"form-control mxlen_5 numer_only","placeholder"=>__('lbl.default_reorder_quantity'),"id"=>"default_reorder_quantity"]) }}
{{ Form::label(__('lbl.default_reorder_price')) }} {{ Form::text('default_reorder_price', '', ["class"=>"form-control mxlen_8 digits","onkeypress"=>"return validateFloatKeyPress(this,event);", "placeholder"=>__('lbl.default_reorder_price'),"id"=>"default_reorder_price"])}}

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

{{ 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','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[]"]) }}

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

{{ Form::label(__('lbl.printers')) }} {{ Form::select('printer_id[]', $product_printers_group, '',["multiple"=>"multiple", "class"=>"form-control select2","id"=>"printer_id"]) }}
{{ Form::label(__('lbl.kitchen_print_name')) }} {{ Form::textarea('kitchen_print_name', '', ["class"=>"form-control mxlen_100","rows"=>2,"placeholder"=>__('lbl.kitchen_print_name'),"id"=>"kitchen_print_name"]) }}
{{ Form::label(__('lbl.kitchen_description')) }} {{ Form::textarea('kitchen_description', '', ["class"=>"form-control mxlen_100","rows"=>2,"placeholder"=>__('lbl.kitchen_description'),"id"=>"kitchen_description"]) }}
{{ Form::button(' '.__('lbl.save'), ["name"=>"submit",'class' => 'productSubmit btn btn-primary btn-sm clickbtncommon ', 'type' => 'submit'])}} {{ __('lbl.cancel') }}
{{ 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('totalIngredientItems','0',['id'=>'totalIngredientItems','name'=>'totalIngredientItems']) }}
{{ 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