{{ Form::text('title', !empty($product->title)?$product->title:Request::old('title'), array('id'=>'title','class' => "form-control ".APFrmErrHelp::hasError($errors, 'title')." ",'placeholder' => 'Enter title')) }} {!! APFrmErrHelp::showErrors($errors, 'title') !!}
{{ Form::text('arabic_title', !empty($product->arabic_title)?$product->arabic_title:Request::old('arabic_title'), array('id'=>'arabic_title','class' => "form-control ".APFrmErrHelp::hasError($errors, 'arabic_title')." ",'placeholder' => 'Enter arabic title')) }} {!! APFrmErrHelp::showErrors($errors, 'arabic_title') !!}
{{ Form::text('priority', !empty($product->priority)?$product->priority:Request::old('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') !!}
{!! Form::select('sub_category_id[]',[], '', array('class'=>'form-control select2 select2-multiple', 'id'=>'sub_category_id', 'multiple'=>'multiple','data-ids'=>'')) !!} {!! APFrmErrHelp::showErrors($errors, 'sub_category_id') !!}
{{ Form::textarea('description', !empty($product->description)?$product->description:Request::old('description'), array('id'=>'description','class' => "form-control ".APFrmErrHelp::hasError($errors, 'description')." ",'placeholder' => 'Enter description')) }} {!! APFrmErrHelp::showErrors($errors, 'description') !!}
{{ Form::textarea('arabic_description', !empty($product->arabic_description)?$product->arabic_description:Request::old('arabic_description'), array('id'=>'arabic_description','class' => "form-control ".APFrmErrHelp::hasError($errors, 'arabic_description')." ",'placeholder' => 'Enter arabic description')) }} {!! APFrmErrHelp::showErrors($errors, 'arabic_description') !!}