@if(checkRole(['owner']))
{{ Form::label('branch_id', getphrase('branch')) }} * {{Form::select('branch_id', $branches, null, ['class'=>'form-control', 'id'=>'branch_id', 'ng-model'=>'branch_id', 'required'=> 'true', 'ng-class'=>'{"has-error": formTopics.branch_id.$touched && formTopics.branch_id.$invalid}' ])}}
{!! getValidationMessage()!!}
@else {{ Form::hidden('branch_id', getUserRecord()->branch_id, array('id'=>'branch_id')) }} @endif
{{ Form::label('category', getphrase('category_name')) }} * {{ Form::text('category', $value = null , $attributes = array('class'=>'form-control', 'placeholder' => getPhrase('enter_category_name'), 'ng-model'=>'category', 'ng-pattern' => getRegexPattern('name'), 'required'=> 'true', 'ng-class'=>'{"has-error": formCategories.category.$touched && formCategories.category.$invalid}', )) }}
{!! getValidationMessage()!!} {!! getValidationMessage('pattern')!!}
{{ Form::label('category', getphrase('image')) }}
@if($record) @if($record->image)