<?php $__env->startSection('title'); ?> <h5 class="m-0 font-weight-bold text-primary" style="float: left;">User List</h5> 

<?php $__env->stopSection(); ?>

<?php $__env->startSection('content'); ?>


 

 <div class="overflow-x-auto"> 

<br>
 	<div>
 	    
 	    <div class="col-lg-12 row">
 	        
 	        	<form method="get" class="col-lg-6">
 			<div class="" >
                <input type="text" name="search" class="form-control" placeholder="Search..."> 
            </div>
 		</form>
 		<br>
 		<form method="get" class="col-lg-6">
 			<div class="">
                <input type="text" name="pin" class="form-control" placeholder="Enter Support PIN..."> 
            </div>
 		</form>
 	        
 	    </div>
 	
 		
 			<div style="padding:10px;">
 	    
 	    <div class="total_suspend table-responsive">
 	        <table class="table">
 	            
 	            <tr>
 	                <th><a href="/admin/Users">Total User</a></th><td><?php echo e($total_user); ?></td><th><a href="?search=suspended">Total Suspended</a></th><td><?php echo e($total_suspend); ?></td><th><a href="?search=activeFA">Total Active 2FA</a></th><td><?php echo e($total_google); ?></td>
 	            </tr>
 	            
 	        </table>

 	    </div>
 	</div>
 	
 
 	    
 	    
 	</div>

 	<br>
 	<br>
 	<br>
 <div class="table-responsive">
 		<table class="table">
 	 <thead>
 	  <tr>
 	   <th class="">#</th>
 	    <th class="">Support PIN</th>
 	    <th class="">First Name</th>
 	     <th class="">Last Name</th>
 	      <th class="">Email</th>
 	      <th class="">Phone Number</th>
 	      <th class="">Google 2FA</th>
 	      <th class="">Services</th>
 	      <th class="">Suspended</th>
 	      <th class="">Change</th>
 	      <th class="">Delete</th>
 	       </tr>
 	        </thead> 
 	        <tbody>
 	        <?php $__currentLoopData = $users; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $user): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>		
 	         <tr>
 	          <td class=""><?php echo e($user->id); ?></td>
 	          <td class=""><?php echo e($user->support_pin); ?></td>
 	           <td class=""><?php echo e($user->name); ?></td>
 	            <td class=""><?php echo e($user->lastname); ?></td>
 	             <td class=""><?php echo e($user->email); ?></td> 
 	             <td class=""><?php echo e($user->phone_number); ?></td>
 	             <td class="">
 	                 <?php if($user->googlef2_status == 1): ?>
 	                  <a href="<?php echo e(route('manage-users.disable.google2fa', $user->id)); ?>"><i class="fas fa-check"></i></a>
 	                 <?php else: ?>
 	                 <i class="fas fa-times"></i>
 	                 <?php endif; ?>
 	             </td>
 	             
 	             <td >
                    <a href="<?php echo e(route('manage-users.change.sms.status', $user->id)); ?>" class="btn btn-sm btn-danger">
                        <?php echo e($user->sms_status != 1 ? 'SMS':'Suspend SMS'); ?>

                    </a>
 	             </td>
 	             <td class="">
                    <a href="<?php echo e(route('manage-users.suspend',$user->id)); ?>" class="btn btn-sm btn-success">
                        <?php echo e($user->suspend == 1 ? 'Suspend' : 'Suspended'); ?>

                    </a>             	
 	             </td> 


 	             <td class="">
                    <a  href="<?php echo e(route('manage-users.change.password.view', $user->id)); ?>" style="text-align:center !important;">
                        <i class="fas fa-user-edit"></i>
                    </a>
 	             </td> 
 	             
 	              <td class="">
			<a  href="<?php echo e(route('manage-users.delete', $user->id)); ?>" style="text-align:center !important;">
			    <i class="fas fa-trash-alt"></i>
			</a>
 	             </td>
 	             
 	             
 	         </tr>
 	         <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>


 	                 </tbody> 
 	             </table> 

 	             	<?php if(isset($_GET['search'])): ?> 
		<br>
		<br>
		<div class="container">
			<div class="row justify-content-center">
			<?php echo e($users->appends([
				'search'=>$_GET['search']
				])->links()); ?>

		</div>
		</div> 

		<br>
		<br>
		<br>

		<?php else: ?>
		<br>
		<br>
		<div class="container">
			<div class="row justify-content-center">
			<?php echo e($users->links()); ?>

		</div>
		</div>

		<br>
		<br>
		<br>
		<?php endif; ?>
 </div>

 	             

 	         </div> 



	<?php $__env->stopSection(); ?>
<?php echo $__env->make('Admin.master_page', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /home/leaparyanict/aict.leap.aryanict.com/resources/views/Admin/User/list.blade.php ENDPATH**/ ?>