@if(isset($company_property_manager))
{{ Form::model($company_property_manager, ['route' => ['company_property_manager.update',$company_property_manager->id], 'method' => 'patch','class'=>'form-horizontal form-material','data-parsley-validate'=>'','autocomplete'=>'off','enctype'=>'multipart/form-data','id'=>'companyForm']) }}
@else
{{ Form::open(['route' => 'company_property_manager.store','class'=>'form-horizontal form-material','data-parsley-validate'=>'','method'=>'POST','autocomplete'=>'off','enctype'=>'multipart/form-data','id'=>'companyForm']) }}
@endif
Property Manager
Details of Property Manager
@if(isset($userData) && ($userData->role_id < 2))
{{ Form::select('parent_user_id',$companies,Input::old('name'),['class'=>'form-control select2 companyFetchPropertyAjax','data-parsley-required'=>'true','placeholder' => 'Select Company']) }}
@if(isset($errors) && $errors->first('name'))
{{ $errors->first('name') }}
@endif
@else
@if(isset($userData) && ($userData->role_id > 2))
{{ Form::hidden('parent_user_id',$userData->parent_user_id,['class'=>'companyFetchPropertyAjax']) }}
@else
{{ Form::hidden('parent_user_id',$userData->id,['class'=>'companyFetchPropertyAjax']) }}
@endif
@endif
{{ Form::select('property_id[]',[],Input::old('property_id'),['class'=>'form-control companyPropertyAjaxFill select2','data-parsley-required'=>'true','multiple'=>'multiple','placeholder' => 'Select Property']) }}
@if(isset($errors) && $errors->first('property_id'))
{{ $errors->first('property_id') }}
@endif
{{ Form::text('name',Input::old('name'),['class'=>'form-control','data-parsley-required'=>'true','autofocus'=>'true']) }}
@if(isset($errors) && $errors->first('name'))
{{ $errors->first('name') }}
@endif
{{ Form::email('email',Input::old('email'),['class'=>'form-control','data-parsley-required'=>'true','id'=>'email','data-parsley-type'=>'email']) }}
@if(isset($errors) && $errors->first('email'))
{{ $errors->first('email') }}
@endif
{{ Form::text('phone',Input::old('phone'),['class'=>'form-control','data-parsley-required'=>'true','id'=>'phone','data-parsley-type'=>'digits','data-parsley-minlength'=>'10','data-parsley-maxlength'=>'15']) }}
@if(isset($errors) && $errors->first('phone'))
{{ $errors->first('phone') }}
@endif
@php
$attributes = ['class'=>'form-control','id'=>'password'];
@endphp
@if(!isset($company_property_manager))
@php
$attributes['data-parsley-required'] = 'true';
@endphp
@endif
{{ Form::password('password',$attributes) }}
@php
$attributes = ['class'=>'form-control','id'=>'confirm_password','data-parsley-equalto'=>'#password'];
@endphp
@if(!isset($company_property_manager))
@php
$attributes['data-parsley-required'] = 'true';
@endphp
@endif
{{ Form::password('confirm_password',$attributes) }}
Status
{{ Form::checkbox('status',1,null,['data-on-color'=>'info','data-off-color'=>'danger']) }}
{{ Form::close() }}