@if(checkRole(['owner']) && App\Hostel::isMultiBranch())
{{ 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('name', getphrase('name')) }} * {{ Form::text('name', $value = null , $attributes = array('class'=>'form-control', 'placeholder' => getPhrase('name'), 'ng-model'=>'name', 'required'=> 'true', 'ng-class'=>'{"has-error": formQuiz.name.$touched && formQuiz.name.$invalid}', 'ng-minlength' => '4', 'ng-maxlength' => '100', )) }}
{!! getValidationMessage()!!} {!! getValidationMessage('minlength')!!} {!! getValidationMessage('maxlength')!!}
{{ Form::label('experience', getphrase('experience')) }} * {{Form::select('experience', $experience,null, ['placeholder' => getPhrase('select'),'class'=>'form-control', 'ng-model'=>'experience', 'id'=>'experience', 'required'=> 'true', 'ng-class'=>'{"has-error": formQuiz.experience.$touched && formQuiz.experience.$invalid}' ])}}
{!! getValidationMessage()!!}
{{ Form::label('phone_number', getphrase('phone_number')) }} * {{ Form::number('phone_number', $value = null , $attributes = array('class'=>'form-control', 'placeholder' => getPhrase('please_enter_10-15_digit_mobile_number'), 'ng-model'=>'phone_number', 'required'=> 'true', 'ng-class'=>'{"has-error": formQuiz.phone_number.$touched && formQuiz.phone_number.$invalid}', )) }}
{!! getValidationMessage()!!}
{{ Form::label('licence_number', getphrase('licence_number')) }} * {{ Form::text('licence_number', $value = null , $attributes = array('class'=>'form-control', 'placeholder' => getPhrase('licence_number'), 'ng-model'=>'licence_number', 'required'=> 'true', 'ng-class'=>'{"has-error": formQuiz.licence_number.$touched && formQuiz.licence_number.$invalid}', 'ng-minlength' => '4', 'ng-maxlength' => '100', )) }}
{!! getValidationMessage()!!} {!! getValidationMessage('minlength')!!} {!! getValidationMessage('maxlength')!!}
{{ Form::label('licence_document', getphrase('licence_document')) }} *
@if($record) @php $licence_document = App\VdriverDocuments::where('driver_id',$record->id) ->where('document_type','licence') ->first(); @endphp
@if($licence_document)

{{ucwords($licence_document->document_name)}}

@endif
@endif
{{ Form::label('experience_document', getphrase('experience_document')) }}
@if($record) @php $experience = App\VdriverDocuments::where('driver_id',$record->id) ->where('document_type','experience') ->first(); @endphp @if($experience)

{{ucwords($experience->document_name)}}

@endif @endif
{{ Form::label('id_proof', "ID Proof") }} *
@if($record) @php $id_proof = App\VdriverDocuments::where('driver_id',$record->id) ->where('document_type','id_proof') ->first(); @endphp @if($id_proof)

{{ucwords($id_proof->document_name)}}

@endif @endif
{{ Form::label('other_document', getphrase('other_document')) }}
@if($record) @php $other_document = App\VdriverDocuments::where('driver_id',$record->id) ->where('document_type','other') ->first(); @endphp @if($other_document)

{{ucwords($other_document->document_name)}}

@endif @endif
{{ Form::label('address', getphrase('address')) }} {{ Form::textarea('address', $value = null , $attributes = array('class'=>'form-control', 'rows'=>'5', 'placeholder' => 'address','id'=>'address')) }}