@if(isset($category))
{{ Form::model($category, ['route' => ['category.update',$category->id], 'method' => 'patch','class'=>'form-horizontal form-material','data-parsley-validate'=>'','autocomplete'=>'off']) }}
@else
{{ Form::open(['route' => 'category.store','class'=>'form-horizontal form-material','data-parsley-validate'=>'','method'=>'POST','autocomplete'=>'off']) }}
@endif
Category Details
Details of Category
@if(isset($userData) && ($userData->role_id < 2))
{{ Form::select('company_id',$companies,Input::old('company_id'),['class'=>'form-control companyFetchPropertyAjax select2','data-parsley-required'=>'true','placeholder' => 'Select Company']) }}
@if(isset($errors) && $errors->first('company_id'))
{{ $errors->first('company_id') }}
@endif
@else
@if(isset($userData) && ($userData->role_id > 2))
{{ Form::hidden('company_id',$userData->parent_user_id) }}
@else
{{ Form::hidden('company_id',$userData->id) }}
@endif
@endif
{{ Form::text('name',null,['class'=>'form-control','placeholder'=>'Category Name','data-parsley-required'=>'true','autofocus'=>'true']) }}
@if(isset($errors) && $errors->first('name'))
{{ $errors->first('name') }}
@endif
Category status
{{ Form::checkbox('status',1,null,['data-on-color'=>'info','data-off-color'=>'danger']) }}
{{ Form::close() }}