<section class="content">
   <div class="box">	
	<div class="box-header with-border">
	  <h3 class="box-title">Listing</h3>
	  <div class="box-tools pull-right">				 
			  <a href="<?php echo base_url().$this->config->item('admin_directory_name');?>/user_account/create" class="btn btn-primary add_new_btn"><i class="fa fa-plus-circle" aria-hidden="true"></i> Add New User</a>
			</div>
	</div>			   
  <div class="box-body row">
	<div class="col-xs-12 table-responsive">
	 <table class="table table-striped" id="table_recordtbl" style="font-size:15px;">
				<thead>
					<tr>
					  <th width="3%">#</th>
					  <th nowrap="nowrap">Customer</th>
					  <th nowrap="nowrap">Email</th> 
					  <th nowrap="nowrap">Login Id &amp; Password</th>
					  <th nowrap="nowrap">Mobile #</th>
					  <th nowrap="nowrap">Bank Accts. </th>  
					  <th nowrap="nowrap">Reg. Date</th> 
					  <th nowrap="nowrap">Status</th> 
					  <th>Action</th>
					</tr>
				</thead>
				<tbody>
				<?php $i=1; foreach ($student_listing as $row) { ?>
					<tr>
						<td><?php echo $i;?></td>
						<td style="font-weight:600;"><span id="td_user_name_<?php echo $row->user_id;?>"><?php if(!empty($row->customer_name)) { echo ucfirst($row->customer_name);?></span>
						<small><?php echo '&ndash; '.$this->config->item('gender_array_config')[$row->gender]['name'];?></small><?php  } else{ echo "--";} ?></td> 	
						<td><?php echo $row->email;?></td> 					
						<td><?php echo $row->login_id;?><small><?php echo 'Pass - '.$row->password_v;?></small></td> 
						<td><?php if(!empty($row->mobile_number)) { echo $row->mobile_number; } else{ echo "-";} ?></td> 
						<td><a class="pro_name" id="view_lnk_<?php echo $row->user_id;?>" onclick="return bank_acct_details_modal('<?php echo $row->user_id;?>','<?php echo $this->config->item('ajax_base_url').$this->config->item('admin_directory_name').'/';?>');">View</a></td>
						<td><?php if(!empty($row->created_time)) { echo date('m/d/Y',$row->created_time); } else{ echo "-";} ?></td>						 
						<td>
						<?php if(isset($row->status) && $row->status==0){?>
							<span style="color:#52AB0B;font-size:10px;"><i class="fa fa-circle"></i> </span>
						<?php }else{ ?>
							<span style="color:#D73925; font-size:10px;"><i class="fa fa-circle"></i> </span>
						<?php }?>
						</td> 						 
						<td nowrap="nowrap">
							<a class="btn btn-primary btn-sm" href="<?php echo base_url().$this->config->item('admin_directory_name');?>/user_account/edit/<?php echo $row->user_encrypt_id; ?>">Edit</a>
							<a class="btn btn-danger btn-sm" href="<?php echo base_url().$this->config->item('admin_directory_name');?>/user_account/delete?id=<?php echo $row->user_encrypt_id; ?>" onclick="return confirm('Are you sure you want to delete <?php echo $row->customer_name;?> user into system?');"><i class="fa fa-trash"></i></a>
						</td>						
					</tr>
				<?php  $i++; } ?>          
				</tbody>                  
			</table>
</div>      
</div>    
</div>
<?php include(APPPATH.'views/Backend/user_account/call_details_modal.php');?>
<div class="clearfix"></div>
</section>
