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

{{ $title }}

@if($warning != "")

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

{{ $warning }}

@else {{ Form::open(['url' => route('product_post_tab'), 'method'=>'post', 'file'=>true, 'enctype'=>'multipart/form-data', 'name' => 'productconfigtab', 'id' => 'productconfigtab']) }}

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

{{ Form::button(' '.__('lbl.save'), ["name"=>"submit",'class' => 'clickbtncommon btn-sm btn btn-primary', 'type' => 'submit']) }} {{ __('lbl.cancel') }}
{{ Form::label('product_name',__('lbl.product_name'), ['class' => 'col-sm-3 control-label']) }}
{{ Form::text('product_name', '', ["class"=>"form-control","placeholder"=>__('lbl.product_name'),"id"=>"product_name","name"=>"product_name"]) }}
{{ Form::label('product_type',__('lbl.product_type'), ['class' => 'col-sm-3 control-label']) }}
{{ Form::select('product_type', $product_types, '',["class"=>"form-control","id"=>"product_type","name"=>"product_type"]) }}
{{ Form::label('sel_category',__('lbl.sel_category'), ['class' => 'col-sm-3 control-label']) }}
{{ Form::select('cat_id', $categories, '',['class'=>'form-control','id'=>'cat_id',"name"=>"cat_id"]) }}
{{ Form::label('sel_sub_category',__('lbl.sel_sub_category'), ['class' => 'col-sm-3 control-label']) }}
{{ Form::label('product_sku',__('lbl.product_sku'), ['class' => 'col-sm-3 control-label']) }}
{{ Form::text('product_sku', '', ["class"=>"form-control","placeholder"=>__('lbl.product_sku'),"id"=>"product_sku","name"=>"product_sku"]) }}
{{ Form::label('product_barcode',__('lbl.product_barcode'), ['class' => 'col-sm-3 control-label']) }}
{{ Form::text('product_barcode', '', [ "class"=>"form-control","placeholder"=>__('lbl.product_barcode'),"id"=>"product_barcode","name"=>"product_barcode", 'maxlength' => 20]) }}
{{ Form::label('product_cost',__('lbl.product_cost'), ['class' => 'col-sm-3 control-label']) }}
{{ Form::text('product_cost', '0.00', ["class"=>"form-control numer_only",'maxlength' => 10,"placeholder"=>__('lbl.product_cost'),"id"=>"product_cost","name"=>"product_cost"]) }}
{{ Form::label('product_price',__('lbl.product_price'), ['class' => 'col-sm-3 control-label']) }}
{{ Form::text('product_price', '0.00', ["class"=>"form-control numer_only",'maxlength' => 10,"placeholder"=>__('lbl.product_price'),"id"=>"product_price","name"=>"product_price"]) }}
{{ Form::label('product_color',__('lbl.product_color'), ['class' => 'col-sm-3 control-label']) }}
{{ Form::text('product_color', '', ["class"=>"form-control product_color","placeholder"=>__('lbl.product_color'),"id"=>"product_color","name"=>"product_color"]) }}
{{ Form::label('status',__('lbl.status'), ['class' => 'col-sm-3 control-label']) }}
{{ Form::select('product_status', $product_status, '',["class"=>"form-control","id"=>"product_status","name"=>"product_status"]) }}
{{ Form::label('product_reward',__('lbl.product_reward'), ['class' => 'col-sm-3 control-label']) }}
{{ Form::text('product_reward', '', ["class"=>"form-control","placeholder"=>__('lbl.product_reward'),"id"=>"product_reward","name"=>"product_reward"]) }}
{{ Form::label('product_group',__('lbl.product_group'), ['class' => 'col-sm-3 control-label']) }}
{{ Form::select('product_group', $product_group, '',['class'=>'form-control','id'=>'product_group',"name"=>"product_group"]) }}
{{ Form::label('description',__('lbl.description'), ['class' => 'col-sm-3 control-label']) }}
{{ Form::textarea('product_description', '', ["class"=>"form-control","rows"=>2,"placeholder"=>__('lbl.description'),"id"=>"product_description","name"=>"product_description"]) }}
{{ Form::label('product_image',__('lbl.product_image'), ['class' => 'col-sm-3 control-label']) }}
{!! Form::file('image') !!}
{{ Form::label('tax ',__('lbl.tax'), ['class' => 'col-sm-3 control-label']) }}
{{ Form::select('product_tax_group', $product_tax_group, '',["multiple"=>"multiple","class"=>"form-control select2","id"=>"product_tax_group","name"=>"product_tax_group[]"]) }}
{{ Form::label('flat_tax',__('lbl.flat_tax'), ['class' => 'col-sm-3 control-label']) }}
{{ Form::text('flat_tax', 1, ["class"=>"form-control","placeholder"=>__('lbl.flat_tax'),"id"=>"flat_tax","name"=>"flat_tax"]) }}
{{ Form::label('active_taxes',__('lbl.active_taxes'), ['class' => 'col-sm-3 control-label']) }}
{{ Form::text('prevailing_tax', $prevailing_tax, ["readonly", "class"=>"form-control","placeholder"=>__('lbl.prevailing_tax'),"id"=>"prevailing_tax","name"=>"prevailing_tax"]) }}
{{ Form::label('tax_class',__('lbl.tax_class'), ['class' => 'col-sm-3 control-label']) }}
{{ Form::select('product_tax_class', $product_tax_class, '',[ "class"=>"form-control","id"=>"product_tax_class","name"=>"product_tax_class"]) }}
{{ Form::label(__('lbl.product_price_apply')) }}
{{ Form::text('product_price_time_period', '',["class"=>"form-control reservationtime","placeholder"=>__('lbl.product_price_apply'),"id"=>"reservationtime","name"=>"product_price_time_period[]"]) }} @if ($errors->has('product_price_time_period')) @endif
{{ 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[]"]) }} @if ($errors->has('product_price_tires')) @endif
{{ Form::label(__('lbl.product_price')) }} {{ Form::text('product_price_custome', '', ["class"=>"form-control","placeholder"=>__('lbl.product_price'),'maxlength' => 10 ,"id"=>"product_price_custome","name"=>"product_price_custome[]"]) }} @if ($errors->has('product_price_custome')) @endif
{{ Form::label(__('lbl.action')) }}
{{ Form::button(' Remove', ["name"=>"remove_item","style"=>"width:50%","class"=>"remove_dataitem form-control clickbtncommon btn-sm btn btn-primary ","id"=>"remove_item","name"=>"remove_item[]"]) }}
{{ Form::label('require_serial_number', __('lbl.require_serial_number'), ['class' => 'col-sm-3 control-label']) }}
{{ Form::label('do_not_allow', __('lbl.do_not_allow'), ['class' => 'col-sm-3 control-label']) }}
{{ Form::label('default_inventory', __('lbl.default_inventory'), ['class' => 'col-sm-3 control-label']) }}
{{ Form::label('track_in_inventory', __('lbl.track_in_inventory'), ['class' => 'col-sm-3 control-label']) }}
{{ Form::label('reorder_to_par', __('lbl.reorder_to_par'), ['class' => 'col-sm-3 control-label']) }}
{{ Form::label('tax_on_reorder', __('lbl.tax_on_reorder'), ['class' => 'col-sm-3 control-label']) }}
{{ Form::label('umo', __('lbl.umo'), ['class' => 'col-sm-3 control-label']) }}
{{ Form::text('uom', '1', ["class"=>"form-control numer_only", 'readonly', 'maxlength' => 50 ,"placeholder"=>__('lbl.umo'),"id"=>"uom","name"=>"uom"]) }} UMO value is set in based on Stock Unit section option Primary is YES Conversion value.
{{ Form::label('bin_value', __('lbl.bin_value'), ['class' => 'col-sm-3 control-label']) }}
{{ Form::text('bin_value', '', ["class"=>"form-control","placeholder"=>__('lbl.bin_value'),"id"=>"bin_value","name"=>"bin_value"]) }}
{{ Form::label('threshold', __('lbl.threshold'), ['class' => 'col-sm-3 control-label']) }}
{{ Form::text('threshold', '', ["class"=>"form-control","placeholder"=>__('lbl.threshold'),"id"=>"threshold","name"=>"threshold"]) }}
{{ Form::label('primary_vendor', __('lbl.primary_vendor'), ['class' => 'col-sm-3 control-label']) }}
{{ Form::select('primary_vendor', $primary_vendor, '',['class'=>'form-control','id'=>'primary_vendor',"name"=>"primary_vendor"]) }}
{{ Form::label('vendor_item_id', __('lbl.vendor_item_id'), ['class' => 'col-sm-3 control-label']) }}
{{ Form::text('vendor_item_id', '', ["class"=>"form-control","placeholder"=>__('lbl.vendor_item_id'),"id"=>"vendor_item_id","name"=>"vendor_item_id"]) }}
{{ Form::label('reorder_unit_type', __('lbl.reorder_unit_type'), ['class' => 'col-sm-3 control-label']) }}
{{ Form::text('reorder_unit_type', '', ["class"=>"form-control","placeholder"=>__('lbl.reorder_unit_type'),"id"=>"reorder_unit_type","name"=>"reorder_unit_type"]) }}
{{ Form::label('default_reorder_quantity', __('lbl.default_reorder_quantity'), ['class' => 'col-sm-3 control-label']) }}
{{ Form::text('default_reorder_quantity', '', ["class"=>"form-control","placeholder"=>__('lbl.default_reorder_quantity'),"id"=>"default_reorder_quantity","name"=>"default_reorder_quantity"]) }}
{{ Form::label('default_reorder_price', __('lbl.default_reorder_price'), ['class' => 'col-sm-3 control-label']) }}
{{ Form::text('default_reorder_price', '', ["class"=>"form-control","placeholder"=>__('lbl.default_reorder_price'),'maxlength' => 10,"id"=>"default_reorder_price","name"=>"default_reorder_price"]) }}
{{ Form::label(__('lbl.name')) }} {{ Form::text('unit', 'UNIT', ["class"=>"form-control","placeholder"=>__('lbl.name'),"id"=>"unit_name","name"=>"unit_name[]"]) }}
{{ Form::label(__('lbl.conversion')) }} {{Form::number('conversion', 1, ['class' => 'form-control number', 'min' => 1, 'max' => 9999, "id" => "conversion", "name"=>"conversion[]"])}}
{{ Form::label(__('lbl.barcode')) }} {{ Form::text('barcode', '', ["readonly","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','id'=>'inv_active',"name"=>"inv_active[]"]) }}
{{ Form::label(__('lbl.primary')) }}
{{ Form::select('primary[]', ['YES'=>'YES','NO'=>'NO'], 'YES',['class'=>'form-control','id'=>'primary']) }}
{{ Form::label(__('lbl.action')) }}
{{ Form::button(' Remove', ["class"=>"form-control clickbtncommon btn-sm btn btn-primary remove_stockitem ","id"=>"remove_stockitem","name"=>"remove_stockitem[]"]) }}
{{ Form::button(' '.__('lbl.save'), ["name"=>"submit",'class' => 'clickbtncommon btn-sm btn btn-primary', 'type' => 'submit']) }} {{ __('lbl.cancel') }}
{{ Form::hidden('takenBy', 0, ['id' => 'takenBy']) }} {{ Form::close() }} @endif
{{ Form::label(__('lbl.name')) }} {{ Form::text('unit', '', ["class"=>"form-control","placeholder"=>__('lbl.name'),"id"=>"unit_name","name"=>"unit_name[]"]) }}
{{ Form::label(__('lbl.conversion')) }} {{Form::number('conversion', null, ['class' => 'form-control number', 'min' => 1, 'max' => 9999, "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','id'=>'inv_active',"name"=>"inv_active[]"]) }}
{{ Form::label(__('lbl.primary')) }}
{{ Form::select('primary[]', ['YES'=>'YES','NO'=>'NO'], 'NO',['class'=>'form-control primary','id'=>'primary']) }}
{{ Form::label(__('lbl.action')) }}
{{ Form::button(' Remove', ["class"=>"form-control clickbtncommon btn-sm btn btn-primary ","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/backend/products/add_edit.js' ]) !!} @stop