<nav class="large-3 medium-4 columns" id="actions-sidebar">
      <?= $this->element('admin_sidebar') ?>
</nav>
<div class="users form large-9 medium-8 columns content content-wrapper">
     
    <?= $this->Form->create($user, ['enctype' => 'multipart/form-data']) ?>
   <div class="col-md-6">
        <legend><?= __('Create User') ?></legend></div>
		<div class="col-md-6">
        <div><?= $this->Html->link(__('List Users'), ['controller'=>'Users','action' => 'index'],['class' => 'green-btn']) ?> </div></div>
		<div class="addmenu-col">
		<fieldset class="fieldset2" >
		
			<div class="column-box">
				<?php
				echo $this->Form->input('username', ['class' => __('add-column')]);
				echo $this->Form->input('password', ['class' => __('add-column')]);
				echo $this->Form->input('firstname', ['class' => __('add-column'),'label' => ['text' => __('First Name: ')]]);
				echo $this->Form->input('lastname', ['class' => __('add-column'),'label' => ['text' => __('Last Name: ')]]);
				echo $this->Form->input('gender', ['class' => __('add-column'),'label' => ['text' => __('Gender: ')],'empty'=>'select','options'=>$gender]);  
				echo $this->Form->input('dob', ['class'=>'datepicker add-column',
						   'type'=>'text',
						   'label' =>'Date of Birth: ']);
				echo $this->Form->input('accountno', ['class' => __('add-column'),'type'=>'hidden']);         
				?>
			</div>
 			</fieldset>
			<fieldset class="fieldset2" >
			<div class="column-box">
				<?php
				echo $this->Form->input('email', ['class' => __('add-column'),'label' => ['text' => __('Email: ')]]);
                                echo $this->Form->input('phoneno', ['class' => __('add-column'),'type'=>'text','required' => false]);
				echo $this->Form->input('address', ['class' => __('add-column'),'required' => false,'label' => ['text' => __('Address: ')]]);  
				echo $this->Form->input('City', ['class' => __('add-column'),'required' => false]);
				echo $this->Form->input('State', ['class' => __('add-column'),'required' => false]);
				echo $this->Form->input('Country', ['class' => __('add-column'),'required' => false]);
				echo $this->Form->input('Zipcode', ['class' => __('add-column'),'required' => false]);
				?>
			</div>
			</fieldset>
			<fieldset class="fieldset2" >
			<div class="column-box">
				<?php
				
				
				
				// echo $this->Form->input('dob', ['label' => ['text' => __('Date of Birth: ')],]);
				echo $this->Form->input('panno', ['class' => __('add-column'),'label' => ['text' => __('Pan No: ')]]);
				/*echo $this->Form->input('photo', [  'required' => false,
                                                                    'label' => 'Image',
                                                                    'type' => 'file'
                                                                    ]);*/
				echo $this->Form->input('group_id', ['class' => __('add-column'),'empty'=>'select','options' => $groups]);
				echo $this->Form->input('company_id', ['class' => __('add-column'),'label' =>'User Company Name:','empty'=>'select user company','options' => $usercompanies]);
				echo $this->Form->input('branch_id', ['class' => __('add-column'),'label' =>'User Branch Address:','empty'=>'select user branch','options' => $userbranches]);
                                ?>
			</div>
			</fieldset>
		</div>
   
	<div class = "add-button">
		<?= $this->Form->button(__('Save'),['class' => __('green-btn')]) ?>
	</div>
<div class="btn-link"><input type="button" value="Back" onclick="window.history.back()" class="green-btn new_back" /> </div>
    <?= $this->Form->end() ?>
</div>
