@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('number', getphrase('number')) }} * {{ Form::text('number', $value = null , $attributes = array('class'=>'form-control', 'placeholder' => 'AP274541', 'ng-model'=>'number', 'required'=> 'true', 'ng-class'=>'{"has-error": formQuiz.number.$touched && formQuiz.number.$invalid}', )) }}
{!! getValidationMessage()!!}
{{ Form::label('model', getphrase('model')) }} * {{ Form::text('model', $value = null , $attributes = array('class'=>'form-control', 'placeholder' => getPhrase('model'), 'ng-model'=>'model', 'required'=> 'true', 'ng-class'=>'{"has-error": formQuiz.model.$touched && formQuiz.model.$invalid}', 'ng-minlength' => '4', 'ng-maxlength' => '100', )) }}
{!! getValidationMessage()!!} {!! getValidationMessage('minlength')!!} {!! getValidationMessage('maxlength')!!}
{{ Form::label('seats', getphrase('seats')) }} * {{ Form::number('seats', $value = null , $attributes = array('class'=>'form-control', 'placeholder' => getPhrase('5000'), 'ng-model'=>'seats', 'required'=> 'true', 'min'=>'0', 'ng-class'=>'{"has-error": formQuiz.seats.$touched && formQuiz.seats.$invalid}', )) }}
{!! getValidationMessage()!!}
{{ Form::label('year_made', getphrase('year_made')) }} * {{ Form::number('year_made', $value = null , $attributes = array('class'=>'form-control', 'placeholder' => getPhrase('5000'), 'ng-model'=>'year_made', 'required'=> 'true', 'min'=>'0', 'ng-class'=>'{"has-error": formQuiz.year_made.$touched && formQuiz.year_made.$invalid}', )) }}
{!! getValidationMessage()!!}
{{ Form::label('driver_id', getphrase('drivers')) }} * {{Form::select('driver_id', $drivers,null, ['placeholder' => getPhrase('select'),'class'=>'form-control', 'ng-model'=>'driver_id', 'id'=>'driver_id', 'required'=> 'true', 'ng-class'=>'{"has-error": formQuiz.driver_id.$touched && formQuiz.driver_id.$invalid}' ])}}
{!! getValidationMessage()!!}
{{--
{{ Form::label('driver_name', getphrase('driver_name')) }} * {{ Form::text('driver_name', $value = null , $attributes = array('class'=>'form-control', 'placeholder' => getPhrase('driver_name'), 'ng-driver_name'=>'driver_name', 'required'=> 'true', 'ng-class'=>'{"has-error": formQuiz.driver_name.$touched && formQuiz.driver_name.$invalid}', 'ng-minlength' => '4', 'ng-maxlength' => '100', )) }}
{!! getValidationMessage()!!} {!! getValidationMessage('minlength')!!} {!! getValidationMessage('maxlength')!!}
{{ Form::label('driver_license', getphrase('driver_license')) }} * {{ Form::text('driver_license', $value = null , $attributes = array('class'=>'form-control', 'placeholder' => getPhrase('driver_license'), 'ng-driver_license'=>'driver_license', 'required'=> 'true', 'ng-class'=>'{"has-error": formQuiz.driver_license.$touched && formQuiz.driver_license.$invalid}', 'ng-minlength' => '4', 'ng-maxlength' => '100', )) }}
{!! getValidationMessage()!!} {!! getValidationMessage('minlength')!!} {!! getValidationMessage('maxlength')!!}
{{ Form::label('driver_contact', getphrase('driver_contact')) }} * {{ Form::text('driver_contact', $value = null , $attributes = array('class'=>'form-control', 'placeholder' => getPhrase('driver_contact'), 'ng-driver_contact'=>'driver_contact', 'required'=> 'true', 'ng-class'=>'{"has-error": formQuiz.driver_contact.$touched && formQuiz.driver_contact.$invalid}', 'ng-minlength' => '4', 'ng-maxlength' => '100', )) }}
{!! getValidationMessage()!!} {!! getValidationMessage('minlength')!!} {!! getValidationMessage('maxlength')!!}
--}}
{{ Form::label('description', getphrase('description')) }} {{ Form::textarea('description', $value = null , $attributes = array('class'=>'form-control', 'rows'=>'5', 'placeholder' => 'Description','id'=>'description')) }}