@extends('layouts.site') @section('content')
@include('errors.errors') {!! Form::open(array('url' => URL_USERS_REGISTER, 'method' => 'POST', 'name'=>'formLanguage ', 'novalidate'=>'', 'class'=>"loginform", 'name'=>"registrationForm")) !!}
{{Form::select('branch_id', $branches, '', ['placeholder' => getPhrase('select_branch'),'class'=>'form-control', 'ng-model'=>'branch_id', 'id'=>'branch_id', 'required'=> 'true', 'ng-class'=>'{"has-error": registrationForm.branch_id.$touched && registrationForm.branch_id.$invalid}' ])}}
{!! getValidationMessage()!!}
{{ Form::text('name', $value = null , $attributes = array('class'=>'form-control', 'placeholder' => getPhrase("name"), 'ng-model'=>'name', 'ng-pattern' => getRegexPattern('name'), 'required'=> 'true', 'ng-class'=>'{"has-error": registrationForm.name.$touched && registrationForm.name.$invalid}', 'ng-minlength' => '4', )) }}
{!! getValidationMessage()!!} {!! getValidationMessage('minlength')!!} {!! getValidationMessage('pattern')!!}
{{ Form::text('username', $value = null , $attributes = array('class'=>'form-control', 'placeholder' => getPhrase("username"), 'ng-model'=>'username', 'required'=> 'true', 'ng-class'=>'{"has-error": registrationForm.username.$touched && registrationForm.username.$invalid}', 'ng-minlength' => '4', )) }}
{!! getValidationMessage()!!} {!! getValidationMessage('minlength')!!} {!! getValidationMessage('pattern')!!}
{{ Form::email('email', $value = null , $attributes = array('class'=>'form-control', 'placeholder' => getPhrase("email"), 'ng-model'=>'email', 'required'=> 'true', 'ng-class'=>'{"has-error": registrationForm.email.$touched && registrationForm.email.$invalid}', )) }}
{!! getValidationMessage()!!} {!! getValidationMessage('email')!!}
{{ Form::number('phone', $value = null , $attributes = array('class'=>'form-control', 'placeholder' => getPhrase("phone"), 'ng-model'=>'phone', 'required'=> 'true', 'ng-class'=>'{"has-error": registrationForm.phone.$touched && registrationForm.phone.$invalid}', )) }}
{!! getValidationMessage()!!}
{{ Form::password('password', $attributes = array('class'=>'form-control instruction-call', 'placeholder' => getPhrase("password"), 'ng-model'=>'registration.password', 'required'=> 'true', 'ng-class'=>'{"has-error": registrationForm.password.$touched && registrationForm.password.$invalid}', 'ng-minlength' => 5 )) }}
{!! getValidationMessage()!!} {!! getValidationMessage('password')!!}
{{ Form::password('password_confirmation', $attributes = array('class'=>'form-control instruction-call', 'placeholder' => getPhrase("password_confirmation"), 'ng-model'=>'registration.password_confirmation', 'required'=> 'true', 'ng-class'=>'{"has-error": registrationForm.password_confirmation.$touched && registrationForm.password_confirmation.$invalid}', 'ng-minlength' => 5, 'compare-to' =>"registration.password" )) }}
{!! getValidationMessage()!!} {!! getValidationMessage('minlength')!!} {!! getValidationMessage('confirmPassword')!!}
{{ Form::textarea('address', $value = null , $attributes = array('class'=>'form-control', 'placeholder' => getPhrase("address"), 'ng-model'=>'address', 'required'=> 'true', 'ng-class'=>'{"has-error": registrationForm.address.$touched && registrationForm.address.$invalid}', )) }}
{!! getValidationMessage()!!}
{!! Form::close() !!}

{{getPhrase('i_am_having_account')}}

@stop @section('footer_scripts') @include('common.validations'); @stop