@extends('layouts/pos_layout') @section('title', '| Add Product') @section('content')
Product List @if ($isImportFromExcelStatus == 'true') Upload Product Excel Sheet @endif
New Product
{!! Form::open([ 'url' => '', 'enctype' => 'multipart/form-data', 'role' => 'form', 'class' => 'form-horizontal form-groups', ]) !!}
@php $labelRequiredForAll = ' *'; $labelRequiredForBUS = ' '; if ($companyType == 'BUS') { $labelRequiredForBUS .= ' *'; } @endphp
{!! Form::label('name', 'Product Name:'.$labelRequiredForAll, ['class' => 'col-sm-4 control-label'],false) !!}
{!! Form::text('name', $value = null, [ 'class' => 'form-control', 'id' => 'name', 'type' => 'text', 'placeholder' => 'Enter product name', ]) !!}

{!! Form::label('description', 'Decscription:', ['class' => 'col-sm-4 control-label'],false) !!}
{!! Form::textarea('description', $value = null, [ 'class' => 'form-control', 'id' => 'description', 'rows' => 2, 'placeholder' => 'Enter description', ]) !!}

{!! Form::label('supplierId', 'Supplier Name:'.$labelRequiredForAll, ['class' => 'col-sm-4 control-label'],false) !!}
{!! Form::select('supplierId', $suppliers, null, [ 'class' => 'form-control', 'id' => 'supplierId', 'placeholder' => 'Please Select Supplier Name', ]) !!}

{!! Form::label('groupId', 'Group:'.$labelRequiredForAll, ['class' => 'col-sm-4 control-label'],false) !!}
{!! Form::select('groupId', $productGroups, null, [ 'class' => 'form-control', 'id' => 'groupId', 'placeholder' => 'Please Select Product Group', ]) !!}

{!! Form::label('categoryId', 'Category:'.$labelRequiredForAll, ['class' => 'col-sm-4 control-label'],false) !!}
{!! Form::select('categoryId', $productCategories, null, [ 'class' => 'form-control', 'id' => 'categoryId', 'placeholder' => 'Please Select Prduct Category', ]) !!}

{!! Form::label('subCategoryId', 'Sub Category:'.$labelRequiredForAll, ['class' => 'col-sm-4 control-label'],false) !!}
{!! Form::select('subCategoryId', $productSubCategories, null, [ 'class' => 'form-control', 'id' => 'subCategoryId', 'placeholder' => 'Please Select Prduct SubCategory', ]) !!}

{!! Form::label('brandId', 'Brand:'.$labelRequiredForBUS, ['class' => 'col-sm-4 control-label'],false) !!}
{!! Form::select('brandId', $productBrands, null, [ 'class' => 'form-control custom-select2', 'id' => 'brandId', 'placeholder' => 'Please Select Prduct Brand', ]) !!}

{!! Form::label('modelId', 'Model:'.$labelRequiredForBUS, ['class' => 'col-sm-4 control-label'],false) !!}
{!! Form::select('modelId', $productModels, null, [ 'class' => 'form-control custom-select2', 'id' => 'modelId', 'placeholder' => 'Please Select Prduct Model', ]) !!}

{!! Form::label('sizeId', 'Size:'.$labelRequiredForBUS, ['class' => 'col-sm-4 control-label'],false) !!}
{!! Form::select('sizeId', $productSizes, null, [ 'class' => 'form-control', 'id' => 'sizeId', 'placeholder' => 'Please Select Prduct Size', ]) !!}

{!! Form::label('colorId', 'Color:'.$labelRequiredForBUS, ['class' => 'col-sm-4 control-label'],false) !!}
{!! Form::select('colorId', $productColors, null, [ 'class' => 'form-control', 'id' => 'colorId', 'placeholder' => 'Please Select Prduct Color', ]) !!}

{!! Form::label('uomId', 'UOM:'.$labelRequiredForBUS, ['class' => 'col-sm-4 control-label'],false) !!}
{!! Form::select('uomId', $productUOMs, null, [ 'class' => 'form-control', 'id' => 'uomId', 'placeholder' => 'Please Select UOM', ]) !!}

@if(isset($isSalesTypeCheckStatus->billingSale) && $isSalesTypeCheckStatus->billingSale == 'true')
{!! Form::label('country_id_of_origin', 'Country of origin:', ['class' => 'col-sm-4 control-label'],false) !!}
{!! Form::select('country_id_of_origin', $countriesData, null, [ 'class' => 'form-control custom-select2', 'id' => 'country_id_of_origin', 'placeholder' => 'Please Select Country', ]) !!}

{!! Form::label('country_id_of_manufacture', 'Country of manufacture:', ['class' => 'col-sm-4 control-label'],false) !!}
{!! Form::select('country_id_of_manufacture', $countriesData, null, [ 'class' => 'form-control custom-select2', 'id' => 'country_id_of_manufacture', 'placeholder' => 'Please Select Country', ]) !!}

@endif
{!! Form::label('costPrice', 'Cost Price:'.$labelRequiredForAll, ['class' => 'col-sm-4 control-label'],false) !!}
{!! Form::text('costPrice', $value = null, [ 'class' => 'form-control', 'id' => 'costPrice', 'type' => 'text', 'placeholder' => 'Enter cost price', ]) !!}

{!! Form::label('salesPrice', 'Sales Price:'.$labelRequiredForAll, ['class' => 'col-sm-4 control-label'],false) !!}
{!! Form::text('salesPrice', $value = null, [ 'class' => 'form-control', 'id' => 'salesPrice', 'type' => 'text', 'placeholder' => 'Enter sales price', ]) !!}

@if ($is_incentive_type == 1)
{!! Form::label('incentive_percentage', 'Customer Incentive:'.$labelRequiredForBUS, ['class' => 'col-sm-4 control-label'],false) !!}
{!! Form::text('incentive_percentage', $value = null, [ 'class' => 'form-control', 'id' => 'incentive_percentage', 'type' => 'text', 'placeholder' => 'Enter customer incentive (%)', ]) !!}

@endif
{!! Form::label('minimumStock', 'Minimum Stock:', ['class' => 'col-sm-4 control-label'],false) !!}
{!! Form::text('minimumStock', $value = null, [ 'class' => 'form-control', 'id' => 'minimumStock', 'type' => 'text', 'placeholder' => 'Enter minimum stock', ]) !!}

{!! Form::label('barcode', 'Barcode:'.$labelRequiredForAll, ['class' => 'col-sm-4 control-label'],false) !!}
{!! Form::text('barcode', $value = null, [ 'class' => 'form-control', 'readonly', 'id' => 'barcode', 'type' => 'text', 'placeholder' => 'Enter Barcode', 'required' => 'required', ]) !!}

{!! Form::label('barcodeImage', 'Barcode Image:'.$labelRequiredForAll, ['class' => 'col-sm-4 control-label'],false) !!}
{!! Form::label('systemBarcode', 'System Barcode:', ['class' => 'col-sm-4 control-label'],false) !!}
{!! Form::text('systemBarcode', $value = null, [ 'class' => 'form-control', 'id' => 'systemBarcode', 'type' => 'text', 'placeholder' => 'Enter system barcode', ]) !!}

{!! Form::label('warranty', 'Warranty:', ['class' => 'col-sm-4 control-label'],false) !!}
{!! Form::text('warranty', $value = null, [ 'class' => 'form-control', 'id' => 'warranty', 'type' => 'text', 'placeholder' => 'Enter warranty', ]) !!}

{!! Form::label('serviceWarranty', 'Service Warranty:', ['class' => 'col-sm-4 control-label'],false) !!}
{!! Form::text('serviceWarranty', $value = null, [ 'class' => 'form-control', 'id' => 'serviceWarranty', 'type' => 'text', 'placeholder' => 'Enter service warranty', ]) !!}

{!! Form::label('compresserWarranty', 'Compresser Warranty:', ['class' => 'col-sm-4 control-label'],false) !!}
{!! Form::text('compresserWarranty', $value = null, [ 'class' => 'form-control', 'id' => 'compresserWarranty', 'type' => 'text', 'placeholder' => 'Enter compresser warranty', ]) !!}

{!! Form::label('image_path', 'Upload Image:', ['class' => 'col-sm-4 control-label'],false) !!}
{!! Form::file('image_path', $value = null, ['class' => 'form-control', 'id' => 'image_path', 'type' => 'file']) !!}

{!! Form::label('submit', ' ', ['class' => 'col-sm-2 control-label'],false) !!}
{!! Form::submit('Submit', ['id' => 'add', 'class' => 'btn btn-info']) !!} Close
{!! Form::close() !!}
@include('pos/exportImportData/importModalView/excelProductModal') @endsection