Current File : //home/tradevaly/www/storage/framework/views/fc57e60fabb2ee6b6f5f10e231184c57196ced3f.php

<?php $__env->startPush('title'); ?> Roles <?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'); ?> Roles <?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.role.create')); ?>"
                                    class="btn btn-success btn-rounded waves-effect waves-light mb-2 me-2"><i
                                        class="mdi mdi-plus me-1"></i> Create New Role</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('Permissions')); ?></th>
                                  <th><?php echo e(translate('Actions')); ?></th>
                                </tr>
                            </thead>
                            <tbody class="text-center">
                                <?php $__currentLoopData = $roles; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $role): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                               <tr>
                                 <td> <?php echo e($role->index); ?></td>
                                 <td> <?php echo e($role->name); ?></td>
                                 <td>
                                     <?php $__currentLoopData = $role->get_permissions; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $permission): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                     <span class="badge bg-info"><?php echo e($permission->permission->name); ?></span>
                                     <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                 </td>
                                 <td>
                                     <a class="btn btn-danger btn-sm" href="<?php echo e(route('admin.user_namagement.role.destroy', $role->id)); ?>">Delete</a>
                                     <a class="btn btn-info btn-sm" href="<?php echo e(route('admin.user_namagement.role.show', $role->id)); ?>">Edit</a>
                                 </td>
                               </tr>
                                <?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/role/index.blade.php ENDPATH**/ ?>