<?php $__env->startSection('body'); ?>
   <div class="page-content"><div class="container"><div class="card content-area"><div class="card-innr"><div class="card-head"><h4 class="card-title">User List</h4></div><table class="data-table dt-init user-list"><thead><tr class="data-item data-head"><th class="data-col dt-user">User</th><th class="data-col dt-email">Email</th><th class="data-col dt-token">Balance</th><th class="data-col dt-verify">Verification Status</th><th class="data-col dt-login">Registered Date</th><th class="data-col dt-status"><div class="dt-status-text">Status</div></th><th class="data-col"></th></tr></thead><tbody>

  <?php $__currentLoopData = $users; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $user): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<tr class="data-item"><td class="data-col dt-user"><span class="lead user-name"><?php echo e($user->fname); ?> <?php echo e($user->lname); ?></span><span class="sub user-id"><?php echo e($user->username); ?></span></td><td class="data-col dt-email"><span class="sub sub-s2 sub-email"><?php echo e($user->email); ?></span></td><td class="data-col dt-token"><span class="lead lead-btoken"><?php echo e($basic->currency); ?><?php echo e(number_format($user->balance, $basic->decimal)); ?></span></td><td class="data-col dt-verify"><ul class="data-vr-list"><li>

<?php if($user->email_verify == 1): ?>
<div class="data-state data-state-sm data-state-approved"></div>
<?php else: ?>
<div class="data-state data-state-sm data-state-pending"></div>
<?php endif; ?>
 Email</li><li>

 <?php if($user->verified == 1): ?>
<div class="data-state data-state-sm data-state-approved"></div>
<?php else: ?>
<div class="data-state data-state-sm data-state-pending"></div>
<?php endif; ?> KYC</li></ul></td><td class="data-col dt-login"><span class="sub sub-s2 sub-time"><?php echo e($user->created_at); ?></span></td><td class="data-col dt-status">
<?php if($user->status == 1): ?>
<span class="dt-status-md badge badge-outline badge-success badge-md">Active</span>
<?php else: ?>
<span class="dt-status-md badge badge-outline badge-danger badge-md">Inactive</span>
<?php endif; ?>

<span class="dt-status-sm badge badge-sq badge-outline badge-success badge-md">A</span></td><td class="data-col text-right"><div class="relative d-inline-block"><a href="#" class="btn btn-light-alt btn-xs btn-icon toggle-tigger"><em class="ti ti-more-alt"></em></a><div class="toggle-class dropdown-content dropdown-content-top-left"><ul class="dropdown-list"><li><a href="<?php echo e(route('user.single', $user->id)); ?>"><em class="ti ti-eye"></em> View Details</a></li>

<?php if($user->status < 1): ?>
<li><a href="<?php echo e(route('user.activate', $user->id)); ?>"><em class="ti ti-check"></em> Activate</a></li>
<li><a href="<?php echo e(route('user.delete', $user->id)); ?>"><em class="ti ti-trash"></em> Delete</a></li>
<?php else: ?>
<li><a href="<?php echo e(route('user.block', $user->id)); ?>"><em class="ti ti-na"></em> Suspend</a></li>
<?php endif; ?>

 </ul></div></div></td></tr><!-- .data-item -->
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

<!-- .data-item --></tbody></table></div><!-- .card-innr --></div><!-- .card --></div><!-- .container --></div><!-- .page-content -->
<?php $__env->stopSection(); ?>

<?php echo $__env->make('include.admindashboard', \Illuminate\Support\Arr::except(get_defined_vars(), array('__data', '__path')))->render(); ?>