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

    <div class="card">
        <div class="card-body">
            <div class="table-responsive">
                <table id="" class="table table-borderdd ">
                    <thead class="bg-gray-50">
                        <tr>
                            <th>SL</th>
                            <th>Role Name</th>
                            <th>Permission List</th>
                            <th>Action</th>
                        </tr>

                    </thead>
                    <tbody>

                        <?php $__currentLoopData = $list; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $r): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>

                            <tr>
                                <td><?php echo e($loop->index + 1); ?></td>
                                <td style="width:150px"><?php echo e($r->name); ?></td>
                                <td class="overflow-auto">
                                    <div class="overflow-auto" style="height:200px">
                                        <?php $__currentLoopData = $r->permissions; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $p): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <span class="btn btn-secondary p-1 mb-1"><?php echo e($p->name); ?></span>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

                                    </div>
                                </td>
                                <td class="text-center">
                                    <a href="<?php echo e(route('assignPermission', $r->id)); ?>" class="btn btn-primary btn-block">
                                        Assign Permission</a>
                                    <a href="<?php echo e(route('roles.edit', $r->id)); ?>" class="btn btn-info btn-block">
                                        Edit</a>
                                </td>
                            </tr>

                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

                        <!-- More items... -->
                    </tbody>
                </table>
            </div>

        </div>
    </div>




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

<?php echo $__env->make('layout.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/html/spacewalker/radius-circle/resources/views/role/roleList.blade.php ENDPATH**/ ?>