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

{{ $title }}

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

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

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

Inventory Alert

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

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

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

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

@php $attrItemsNumbers = 0; @endphp @if(!empty($proDetails['product_attributes'])) @foreach($proDetails['product_attributes'] as $attributes)
@if($attributes['groupitems']) @foreach($attributes['groupitems'] as $items) @php $attrItemsNumbers++; @endphp
@if(config('constants.color_codes')) @endif
@if ($proDetails['product_type'] == 'Product') @endif
@endforeach @endif

@endforeach @endif

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

@if($product_direct_ingredient) @foreach($product_direct_ingredient as $key => $prd_ing)
{{ __('lbl.product_name') }} {{ __('lbl.product_sku') }} {{ __('lbl.product_barcode') }} {{ __('lbl.quantity') }} {{ __('lbl.unit_type') }} {{ __('lbl.action') }}
{{$prd_ing['ingredient_name']}} {{$prd_ing['sku']}} {{$prd_ing['barcode']}} {{ Form::text('quantity[]', $prd_ing['quantity'], ["class"=>"form-control mxlen_20 text-right","placeholder"=>__('lbl.quantity'),"id"=>"quantity_{$prd_ing['ingredient_product_id']}","name"=>"quantity[]"]) }}