{{ 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', 'ng-pattern' => getRegexPattern("name"), 'required'=> 'true', 'ng-class'=>'{"has-error": formTopics.topic_name.$touched && formTopics.topic_name.$invalid}', ))}}
{!! getValidationMessage()!!} {!! getValidationMessage('pattern')!!}
{{ Form::label('description', getphrase('description')) }} {{ Form::textarea('description', $value = null , $attributes = array('class'=>'form-control', 'rows'=>'5', 'placeholder' => 'Description of the topic')) }}