<?= $this->extend('layout/admin') ?>
<?= $this->section('content') ?>

<div class="card">
<div class="card-header bg-dark text-white">
    <b>ROLE MANAGEMENT</b>
</div>

<div class="card-body">

<table class="table table-bordered table-striped">
<thead class="table-dark">
<tr>
    <th>#</th>
    <th>Role Name</th>
    <th width="130">Action</th>
</tr>
</thead>

<tbody>
<?php $no=1; foreach($roles as $r): ?>
<tr>
    <td><?= $no++ ?></td>
    <td><?= $r->role_name ?></td>
    <td>
        <a href="<?= site_url('role/access/'.$r->id) ?>" class="btn btn-sm btn-primary">
            Set Access
        </a>
    </td>
</tr>
<?php endforeach ?>
</tbody>

</table>

</div>
</div>

<?= $this->endSection() ?>
