<?php $__env->startSection('title', __('nav.roles')); ?>
<?php $__env->startSection('content'); ?>
<div class="page-head">
    <h1><?php echo e(__('nav.roles')); ?></h1>
</div>
<div class="card">
    <table class="table compact-table mb-0">
        <thead>
            <tr>
                <th><?php echo e(__('messages.name')); ?></th>
                <th><?php echo e(__('messages.permissions')); ?></th>
                <th></th>
            </tr>
        </thead>
        <tbody>
        <?php $__currentLoopData = $roles; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $role): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <tr>
                <td><?php echo e(__('roles.'.$role->name) === 'roles.'.$role->name ? $role->name : __('roles.'.$role->name)); ?></td>
                <td><?php echo e($role->permissions->count()); ?></td>
                <td>
                    <?php if($role->name !== 'Administrator'): ?>
                        <a class="btn btn-sm btn-outline-primary" href="<?php echo e(route('roles.edit',$role)); ?>"><?php echo e(__('messages.edit')); ?></a>
                    <?php endif; ?>
                </td>
            </tr>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </tbody>
    </table>
</div>
<?php $__env->stopSection(); ?>

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