{{ Form::text('title', $product->title, array('id'=>'title','class' => "form-control ".APFrmErrHelp::hasError($errors, 'title')." ",'placeholder' => 'Enter name')) }}
{!! APFrmErrHelp::showErrors($errors, 'title') !!}
{{ Form::text('arabic_title', $product->arabic_title, array('id'=>'arabic_title','class' => "form-control ".APFrmErrHelp::hasError($errors, 'arabic_title')." ",'placeholder' => 'Enter arabic name')) }}
{!! APFrmErrHelp::showErrors($errors, 'arabic_title') !!}
{{ Form::text('priority', $product->priority, array('id'=>'priority','class' => "form-control ".APFrmErrHelp::hasError($errors, 'priority')." ",'placeholder' => 'Enter priority')) }}
{!! APFrmErrHelp::showErrors($errors, 'priority') !!}
{!! Form::select('brand_id',['' => __('Select Brand')]+$brands, (!empty($product->brand_id))?$product->brand_id:'', array('class'=>'form-control select2', 'id'=>'brand_id')) !!}
{!! APFrmErrHelp::showErrors($errors, 'brand_id') !!}
{!! Form::select('category_id[]',$categories, (!empty($product->category_id))?json_decode($product->category_id,true):'', array('class'=>'form-control select2 select2-multiple', 'id'=>'category_id', 'multiple'=>'multiple')) !!}
{!! APFrmErrHelp::showErrors($errors, 'category_id') !!}
@php
$subCat = !empty($product->sub_category_id)?implode(',',json_decode($product->sub_category_id,true)):'';
@endphp
{!! Form::select('sub_category_id[]',[], '', array('class'=>'form-control select2 select2-multiple', 'id'=>'sub_category_id', 'multiple'=>'multiple','data-ids'=>$subCat)) !!}
{!! APFrmErrHelp::showErrors($errors, 'sub_category_id') !!}
{{ Form::textarea('description', $product->description, array('id'=>'description','class' => "form-control ".APFrmErrHelp::hasError($errors, 'description')." ",'placeholder' => 'Enter description')) }}
{!! APFrmErrHelp::showErrors($errors, 'description') !!}
{{ Form::textarea('arabic_description', $product->arabic_description, array('id'=>'arabic_description','class' => "form-control ".APFrmErrHelp::hasError($errors, 'arabic_description')." ",'placeholder' => 'Enter arabic description')) }}
{!! APFrmErrHelp::showErrors($errors, 'arabic_description') !!}