@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": formQuiz.branch_id.$touched && formQuiz.branch_id.$invalid}' ])}}
{!! getValidationMessage()!!}
@else {{ Form::hidden('branch_id', getUserRecord()->branch_id, array('id'=>'branch_id')) }} @endif
{{ Form::label('title', getphrase('title')) }} * {{ Form::text('title', $value = null , $attributes = array('class'=>'form-control', 'placeholder' => getPhrase('title'), 'ng-model'=>'title', 'ng-pattern'=>getRegexPattern('name'), 'required'=> 'true', 'ng-class'=>'{"has-error": formQuiz.title.$touched && formQuiz.title.$invalid}', 'ng-minlength' => '4', 'ng-maxlength' => '60', )) }}
{!! getValidationMessage()!!} {!! getValidationMessage('pattern')!!} {!! getValidationMessage('minlength')!!} {!! getValidationMessage('maxlength')!!}
{{ Form::label('coupon_code', getphrase('coupon_code')) }} * {{ Form::text('coupon_code', $value = null , $attributes = array('class'=>'form-control', 'placeholder' => getPhrase('coupon_code'), 'ng-model'=>'coupon_code', 'required'=> 'true', 'ng-class'=>'{"has-error": formQuiz.coupon_code.$touched && formQuiz.coupon_code.$invalid}', 'ng-minlength' => '2', 'ng-maxlength' => '10', )) }}
{!! getValidationMessage()!!} {!! getValidationMessage('pattern')!!} {!! getValidationMessage('minlength')!!} {!! getValidationMessage('maxlength')!!}