@if(checkRole(['owner']))
{{ Form::label('branch_id', getphrase('branch')) }} * {{Form::select('branch_id', $branches, null, ['class'=>'form-control','onChange'=>'getSubjects()', '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('subject_id', getphrase('subject')) }} * {{Form::select('subject_id', $subjects, null, ['class'=>'form-control','onChange'=>'getSubjectParents()', 'id'=>'subject', 'ng-model'=>'subject_id', 'required'=> 'true', 'ng-class'=>'{"has-error": formTopics.subject_id.$touched && formTopics.subject_id.$invalid}' ])}}
{!! getValidationMessage()!!}
{{ Form::label('parent_id', getphrase('select_parent')) }} * {{Form::select('parent_id', $parent_topics, null, ['class'=>'form-control', 'id'=>'parent' ])}}
{{ Form::label('topic_name', getphrase('topic_name')) }} * {{ Form::text('topic_name', $value = null , $attributes = array('class'=>'form-control', 'placeholder' => 'Introduction', 'ng-model'=>'topic_name', 'required'=> 'true', 'ng-class'=>'{"has-error": formTopics.topic_name.$touched && formTopics.topic_name.$invalid}', ))}}
{!! getValidationMessage()!!}
{{ Form::label('description', getphrase('description')) }} {{ Form::textarea('description', $value = null , $attributes = array('class'=>'form-control', 'rows'=>'5', 'placeholder' => 'Description of the topic')) }}