Current File : /home/tradevaly/public_html/storage/framework/views/d1abdcc4cb64616358bed5755c341018fd1e96de.php

<?php $__env->startPush('title'); ?> Users <?php $__env->stopPush(); ?>
<?php $__env->startSection('css'); ?>
    <!-- DataTables -->
    <link href="<?php echo e(asset('/assets/libs/datatables/datatables.min.css')); ?>" rel="stylesheet" type="text/css" />
<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>

    <?php $__env->startComponent('components.breadcrumb'); ?>
        <?php $__env->slot('li_1'); ?> Dashboards <?php $__env->endSlot(); ?>
        <?php $__env->slot('title'); ?> Users <?php $__env->endSlot(); ?>
    <?php echo $__env->renderComponent(); ?>
    
    
    
    <div class="row">
        <div class="col-12">
            <div class="card">
                <div class="card-body">
                    <div class="row mb-2">
                        <div class="col-sm-4"></div>
                        <div class="col-sm-8">
                            <div class="text-sm-end">
                                <a href="<?php echo e(route('admin.user_namagement.admin.admin_create')); ?>"
                                    class="btn btn-success btn-rounded waves-effect waves-light mb-2 me-2"><i
                                        class="mdi mdi-plus me-1"></i> Add New Admin</a>
                            </div>
                        </div><!-- end col-->
                    </div>

                    <div class="table-responsive">
                        <table id="datatable-buttons" class="table table-bordered dt-responsive nowrap w-100">
                            <thead class="table-light text-center">
                                <tr>
                                  <th class="text-center">SL</th>
                                  <th><?php echo e(translate('Name')); ?></th>
                                  <th><?php echo e(translate('Email')); ?></th>
                                  <th><?php echo e(translate('Role')); ?></th>
                                  <th><?php echo e(translate('Actions')); ?></th>
                                </tr>
                            </thead>
                            <tbody class="text-center">
                                <?php $__currentLoopData = $admins; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $user): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <?php if($user->id != 1): ?>
                               <tr>
                                 <td> <?php echo e($user->index); ?></td>
                                 <td> <?php echo e($user->name); ?></td>
                                 <td> <?php echo e($user->email); ?></td>
                                 <td> <span class="badge bg-info"><?php echo e(role_name($user->role_id)); ?></span></td>
                                 <td>
                                     <a class="btn btn-danger btn-sm" href="<?php echo e(route('admin.user_namagement.admin.admin_destroy', $user->id)); ?>">Delete</a>
                                     <!--<a class="btn btn-info btn-sm" href="<?php echo e(route('admin.user_namagement.role.show', $user->id)); ?>">Edit</a>-->
                                 </td>
                               </tr>
                                <?php endif; ?>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </tbody>
                        </table>
                    </div>
                    
                </div>
            </div>
        </div>
    </div>
    <!-- end row -->
    
    
<?php $__env->stopSection(); ?>

<?php echo $__env->make('backend.ayaan.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/tradevaly/public_html/resources/views/backend/pages/userManagement/admin/index.blade.php ENDPATH**/ ?>