<?php $__env->startSection('section-title', 'Role Management'); ?>
<?php $__env->startSection('page-title', 'Role & Permission List'); ?>
<?php if(check_permission('roles-permission.create')): ?>
    <?php $__env->startSection('action-button'); ?>
        <a class="btn add_list_btn" href="<?php echo e(route('roles-permission.create')); ?>">
            <i class="mr-2 feather icon-plus"></i>
            Add Role & Permission
        </a>
    <?php $__env->stopSection(); ?>
<?php endif; ?>
<?php $__env->startSection('content'); ?>
    <div class="row">
        <div class="col-lg-12">
            <div class="card m-b-30 card_style">
                <div class="card-body">
                    <div class="table-responsive">
                        <table id="datatable-buttons" class="table table-striped text-center">
                            <thead class="header_bg">
                                <tr>
                                    <th class="header_style_left">ID</th>
                                    <th>Role Name</th>
                                    <th>Total User</th>
                                    <th>Status</th>
                                    <th class="header_style_right">Actions</th>
                                </tr>
                            </thead>
                            <tbody>
                                <?php $__currentLoopData = $roles; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $role): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <tr>
                                        <td class="table_data_style_left"><?php echo e($loop->index + 1); ?></td>
                                        <td><?php echo e($role->name); ?></td>
                                        <td><?php echo e($role->users->count()); ?></td>
                                        <td>
                                            <input type="checkbox" data-toggle="toggle" data-on="Active"
                                                class="status-update" <?php echo e($role->status == 1 ? 'checked' : ''); ?>

                                                data-off="Inactive" data-onstyle="success" data-offstyle="danger"
                                                data-id="<?php echo e($role->id); ?>" data-model="Role">
                                        </td>
                                        <td class="table_data_style_right">
                                            <a href="<?php echo e(route('roles-permission.edit', $role->id)); ?>"
                                                class="btn btn-primary-rgba">
                                                <i class="feather icon-edit"></i>
                                            </a>
                                        </td>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('backend.layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH D:\laragon\www\new demo multi-bank\resources\views/backend/pages/roles-permission/index.blade.php ENDPATH**/ ?>