<?php $__env->startSection('maincontent'); ?>
    <div class="col-md-12">
        <div class="card">
            <div class="header">
                <h4 class="title" style="display: inline;">Role Management</h4>
                <button data-toggle="modal" data-target="#modal" onclick="loadModal('roleCreateModal')" class="btn btn-primary btn-fill pull-right">NEW ROLE <i class="fa fa-plus" aria-hidden="true"></i> </button>
            </div>
            <div class="content">
                <table class="table table-stripped">
                    <tr>
                        <th>Role Name</th>
                        <th>Summary</th>
                        <th>Action</th>
                    </tr>
                    <?php $__currentLoopData = $detailsRole; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $detail): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <tr>
                            <td><?php echo e($detail->title); ?></td>
                            <td><?php if(strlen($detail->summary)>100): ?><?php echo e(substr($detail->summary,0,100)); ?> <?php else: ?>  <?php echo e($detail->summary); ?> <?php endif; ?></td>
                            <td>
                                <a title="Role Edit" class="btn btn-simple btn-warning btn-icon" data-toggle="modal" data-target="#modal" onclick="loadModalEdit('roleEditModal',<?php echo e($detail->id); ?>,'edit')"><i class="fa fa-edit"></i></a>
                                <a title="Permission Edit" class="btn btn-simple btn-warning btn-icon" href="<?php echo e(URL::to('permission/'.$detail->id)); ?>"><i class="fa fa-unlock"></i></a>
                                <a title="Role Delete" class="btn btn-simple btn-danger btn-icon remove" onclick="deleteConfirm('deleteRole',<?php echo e($detail->id); ?>)"><i class="fa fa-times"></i></a>
                            </td>
                        </tr>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </table>
            </div>
        </div>
    </div>

<?php $__env->stopSection(); ?>
<?php echo $__env->make('backend._partials.app', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>