

<?php $__env->startSection('content'); ?>
<!-- content @s -->
                <div class="nk-content nk-content-fluid">
                    <div class="container-xl wide-lg">
                        <div class="nk-content-body">
                            <div class="nk-block-head nk-block-head-sm">
                                <div class="nk-block-between">
                                    <div class="nk-block-head-content">
                                        <h3 class="nk-block-title page-title">Users Lists</h3>
                                        <div class="nk-block-des text-soft">
                                            <p>You have total <?php echo e($totalUsers); ?> users.</p>
                                        </div>
                                    </div><!-- .nk-block-head-content -->
                                    
                                </div><!-- .nk-block-between -->
                            </div><!-- .nk-block-head -->
                            <div class="nk-block">
                                <div class="card card-bordered card-stretch">
                                    <div class="card-inner-group">
                                         
                                        <div class="card-inner p-0">
                                            <div class="nk-tb-list nk-tb-ulist">
                                                <div class="nk-tb-item nk-tb-head">
                                                    <div class="nk-tb-col nk-tb-col-check">
                                                       ID
                                                    </div>
                                                    <div class="nk-tb-col"><span class="sub-text">User/Email</span></div>
                                                     
                                                    <div class="nk-tb-col tb-col-md"><span class="sub-text">Phone</span></div>
                                                    <div class="nk-tb-col tb-col-lg"><span class="sub-text">Verified</span></div>
                                                    <div class="nk-tb-col tb-col-lg"><span class="sub-text">Join Date</span></div>
                                                     
                                                    <div class="nk-tb-col tb-col-md"><span class="sub-text">Status</span></div>
                                                    <div class="nk-tb-col nk-tb-col-tools text-end">
                                                        Action
                                                    </div>
                                                </div><!-- .nk-tb-item -->
                                                
                                                
                                                
                                                 <?php $__currentLoopData = $users; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $user): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                <div class="nk-tb-item">
                                                    <div class="nk-tb-col nk-tb-col-check">
                                                        <?php echo e($user->id); ?>

                                                    </div>
                                                    <div class="nk-tb-col">
                                                        <?php if($user->is_admin == '1'): ?>                   <a href="#">
                                                            <div class="user-card">
                                                                <div class="user-avatar bg-primary">
                                                                     <?php if($user->profile_pic): ?>
        <img src="<?php echo e(asset('storage/app/public/' . $user->profile_pic)); ?>" alt="<?php echo e($user->name); ?>" style="height: 45px;width: 45px;">
    <?php else: ?>
        <img src="<?php echo e(asset('storage/user_default.png')); ?>" alt="<?php echo e($user->name); ?>" style="height: 45px;width: 45px;">
    <?php endif; ?>
                                                                </div>
                                                                <div class="user-info">
                                                                    <span class="tb-lead"><?php echo e($user->name); ?> <span class="dot dot-success d-md-none ms-1"></span></span>
                                                                    <span><?php echo e($user->email); ?></span>
                                                                </div>
                                                            </div>
                                                        </a>
                                              <?php else: ?>
                                                                          <a href="<?php echo e(route('admin.editUser', $user->id)); ?>">
                                                            <div class="user-card">
                                                                <div class="user-avatar bg-primary">
                                                                   <?php if($user->profile_pic): ?>
        <img src="<?php echo e(asset('storage/app/public/' . $user->profile_pic)); ?>" alt="<?php echo e($user->name); ?>" style="height: 45px;width: 45px;">
    <?php else: ?>
        <img src="<?php echo e(asset('storage/user_default.png')); ?>" alt="<?php echo e($user->name); ?>" style="height: 45px;width: 45px;">
    <?php endif; ?>
                                                                </div>
                                                                <div class="user-info">
                                                                    <span class="tb-lead"><?php echo e($user->name); ?> <span class="dot dot-success d-md-none ms-1"></span></span>
                                                                    <span><?php echo e($user->email); ?></span>
                                                                </div>
                                                            </div>
                                                        </a>
                                                                             
                                                   <?php endif; ?>
                                                        
                                                    </div>
                                                     
                                                    <div class="nk-tb-col tb-col-md">
                                                        <span><?php echo e($user->phone_number); ?></span>
                                                    </div>
                                                    <div class="nk-tb-col tb-col-lg">
                                                        <ul class="list-status">
                                                            <li>
                                                         <?php if($user->email_verified == '1'): ?>       
                                                                <em class="icon text-success ni ni-check-circle"></em>
                                                                <?php else: ?>
                                                                <em class="icon ni ni-alert-circle"></em>
                                                                <?php endif; ?>
                                                                <span>Email</span></li>
                                                            <li><?php if($user->kyc_verified == '1'): ?>       
                                                                <em class="icon text-success ni ni-check-circle"></em>
                                                        <?php elseif($user->kyc_verified == '2'): ?>
                                                   <em class="icon text-warning ni ni-alert-circle"></em>     
                                                                <?php else: ?>
                                                                <em class="icon ni ni-alert-circle"></em>
                                                                <?php endif; ?> <span>KYC</span></li>
                                                        </ul>
                                                    </div>
                                                    <div class="nk-tb-col tb-col-lg">
                                                        <span><?php echo e($user->created_at); ?></span>
                                                    </div>
                                                    <div class="nk-tb-col tb-col-md">
                                                     <?php if($user->status == 'active'): ?>
                                                        <span class="tb-status text-success">Active</span>
                                                     <?php else: ?>   
                                                        <span class="tb-status text-warning">InActive</span>
                                                        <?php endif; ?>
                                                    </div>
                                                    <div class="nk-tb-col nk-tb-col-tools">
                                                        <ul class="nk-tb-actions gx-1">
                                                           
                                                            <li>
                                                                <div class="drodown">
                                                                    <a href="#" class="dropdown-toggle btn btn-icon btn-trigger" data-bs-toggle="dropdown"><em class="icon ni ni-more-h"></em></a>
                                                                    <div class="dropdown-menu dropdown-menu-end">
                                                                        <ul class="link-list-opt no-bdr">
                                              <?php if($user->is_admin == '1'): ?>                    <li><a href="#"><em class="icon ni ni-info"></em><span>Edit Admin Block</span></a></li>
                                              <?php else: ?>
                                                                            <li><a href="<?php echo e(route('admin.editUser', $user->id)); ?>"><em class="icon ni ni-eye"></em><span>View Details</span></a></li>
                                        
                                        <li>
                                            <form action="<?php echo e(route('admin.users.destroy', $user->id)); ?>" method="POST" style="display:inline;">
                        <?php echo csrf_field(); ?>
                        <?php echo method_field('DELETE'); ?>
                        <button type="submit" class="btn btn-danger" onclick="return confirm('Are you sure you want to delete this user?');">
                           <em class="icon ni ni-trash"></em><span>Delete User</span></button>
</form> </li>                                    
                                                                             
                                                   <?php endif; ?>                     </ul>
                                                                    </div>
                                                                </div>
                                                            </li>
                                                        </ul>
                                                    </div>
                                                </div><!-- .nk-tb-item -->
                                                
                                                 <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                 
                                            </div><!-- .nk-tb-list -->
                                        </div><!-- .card-inner -->
                                        <div class="card-inner">
                                            <div class="nk-block-between-md g-3">
                                                <div class="g">
                                               <!--     <ul class="pagination justify-content-center justify-content-md-start">
                                                        <li class="page-item"><a class="page-link" href="#">Prev</a></li>
                                                        <li class="page-item"><a class="page-link" href="#">1</a></li>
                                                        <li class="page-item"><a class="page-link" href="#">2</a></li>
                                                        <li class="page-item"><span class="page-link"><em class="icon ni ni-more-h"></em></span></li>
                                                        <li class="page-item"><a class="page-link" href="#">6</a></li>
                                                        <li class="page-item"><a class="page-link" href="#">7</a></li>
                                                        <li class="page-item"><a class="page-link" href="#">Next</a></li>
                                                    </ul> .pagination -->
                                                </div>
                                               <!--  <div class="g">
                                                    <div class="pagination-goto d-flex justify-content-center justify-content-md-start gx-3">
                                                        <div>Page</div>
                                                        <div>
                                                            <select class="form-select js-select2" data-search="on" data-dropdown="xs center">
                                                                <option value="page-1">1</option>
                                                                <option value="page-2">2</option>
                                                                <option value="page-4">4</option>
                                                                <option value="page-5">5</option>
                                                                <option value="page-6">6</option>
                                                                <option value="page-7">7</option>
                                                                <option value="page-8">8</option>
                                                                <option value="page-9">9</option>
                                                                <option value="page-10">10</option>
                                                                <option value="page-11">11</option>
                                                                <option value="page-12">12</option>
                                                                <option value="page-13">13</option>
                                                                <option value="page-14">14</option>
                                                                <option value="page-15">15</option>
                                                                <option value="page-16">16</option>
                                                                <option value="page-17">17</option>
                                                                <option value="page-18">18</option>
                                                                <option value="page-19">19</option>
                                                                <option value="page-20">20</option>
                                                            </select>
                                                        </div>
                                                        <div>OF 102</div>
                                                    </div>
                                                </div>.pagination-goto -->
                                            </div><!-- .nk-block-between -->
                                        </div><!-- .card-inner -->
                                    </div><!-- .card-inner-group -->
                                </div><!-- .card -->
                            </div><!-- .nk-block -->
                        </div>
                    </div>
                </div>
                <!-- content @e -->
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.admin', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/qfsworl3/public_html/resources/views/admin/users.blade.php ENDPATH**/ ?>