@php
$system_setting = App\SystemSetting::first();
if(empty($system_setting))
{
$system_setting= App\SystemSetting::create([]);
}
@endphp
{{ formText('Stock ID', 'stock_id', $product->stock_id ?? '', ['class' => 'form-control validate[required]','id' => 'stock_id','maxlength' => $system_setting->stock_id_limit]) }}
{{ formText(__('xproduct::product.labels.product_name_code'), 'product_code', $product->item_code ?? '', ['class' => 'form-control validate[required]','id' => 'product_code']) }}
{{ formDropdown(__('xproduct::product.labels.product_type'),'product_type',Config::get('system.product_types'),isset($product->type) ? $product->type : Config::get('system.default_product_type'),['class' => 'form-control', 'id' => 'product_type']) }}
@php
$categories = \Pramix\XProduct\Models\ProductCategoriesModel::where('parent_id', 0)->get();
@endphp
{{ Form::select('manufacture',\Pramix\XProduct\Models\ManufactureModel::pluck('manufacture_name', 'manufacture_name'),isset($manufacture) ? $manufacture : '',['class' => 'common_auto_load_data form-control select2','name' => 'manufacture','data-loading_value' => $manufacture ?? '','placeholder' => 'Select Manufacture','id' => 'manufacture']) }}
@if( Gate::check('EDIT_ITEM_DESCRIPION') && !empty($product))
{{ formTextArea(__('xproduct::product.labels.description'), 'description', $product->description ?? '', ['class' => 'form-control validate[maxSize[45]]','id' => 'description','rows' => 3,'maxlength' => $system_setting->product_description_limit]) }}
@else
@if (!empty($product))
{{ formTextArea(__('xproduct::product.labels.description'), 'description', $product->description ?? '', ['class' => 'form-control validate[maxSize[45]]','id' => 'description','rows' => 3,'maxlength' => $system_setting->product_description_limit ,'readonly']) }}
@else
{{ formTextArea(__('xproduct::product.labels.description'), 'description', $product->description ?? '', ['class' => 'form-control validate[maxSize[45]]','id' => 'description','rows' => 3,'maxlength' => $system_setting->product_description_limit]) }}
@endif
@endif