|
Server : Apache/2.4.41 (Ubuntu) System : Linux vmi1525618.contaboserver.net 5.4.0-105-generic #119-Ubuntu SMP Mon Mar 7 18:49:24 UTC 2022 x86_64 User : www-data ( 33) PHP Version : 8.2.12 Disable Function : NONE Directory : /var/www/leadai/leadai.co.in/storage/framework/views/ |
Upload File : |
<?php $__env->startSection('content'); ?>
<!-- begin::main content -->
<main class="main-content">
<div class="container">
<!-- begin::page header -->
<div class="page-header">
<h3><?php echo e(__('message.role')); ?></h3>
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="#"><?php echo e(__('message.dashboard')); ?></a></li>
<li class="breadcrumb-item active" aria-current="page"><?php echo e(__('message.role')); ?></li>
</ol>
</nav>
</div>
<!-- end::page header -->
<div class="card">
<div class="card-header">
<a href="<?php echo e(asset('add-role')); ?>" class="btn btn-primary text-uppercase text-white">
<i class="fa fa-plus text-white pr-2"></i><?php echo e(__('message.role')); ?>
</a>
</div>
<div class="card-body">
<table id="example1" class="table table-striped table-bordered">
<thead>
<tr>
<th><?php echo e(__('message.id')); ?></th>
<th><?php echo e(__('message.name')); ?></th>
<th><?php echo e(__('message.slug')); ?></th>
<?php if(Auth::user()->can('view-role-permission') || Auth::user()->type=="superadmin"): ?>
<th><?php echo e(__('message.permission')); ?></th>
<?php endif; ?>
<th style="width:200px;"><?php echo e(__('message.action')); ?></th>
</tr>
</thead>
<tbody>
<?php if(!empty($roles)): ?>
<?php $__currentLoopData = $roles; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $role): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<tr>
<td><?php echo e($role->id); ?></td>
<td><?php echo e($role->name); ?></td>
<td><?php echo e($role->slug); ?></td>
<?php if(Auth::user()->can('view-role-permission') || Auth::user()->type=="admin"): ?>
<td>
<a class="btn btn-square btn-dark text-white"
href="<?php echo e(asset('permission/' . $role->id)); ?>">
<i class="fa fa-plus fa-lg"></i>
</a>
</td>
<?php endif; ?>
<td>
<div class="btn-group">
<?php if(Auth::user()->can('edit-role') || Auth::user()->type=="admin"): ?>
<a class="btn btn-square btn-success text-white"
href="<?php echo e(asset('edit-role/' . $role->id)); ?>">
<i class="fa fa-edit text-white fa-lg"></i>
</a>
<?php endif; ?>
<?php if(Auth::user()->can('delete-role') || Auth::user()->type=="admin"): ?>
<a class="btn btn-square btn-danger text-white delete-confirm"
href="javascript:;"
link="<?php echo e(asset('delete-role/' . $role->id)); ?>">
<i class="fa fa-trash text-white fa-lg"></i>
</a>
<?php endif; ?>
</div>
</td>
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php endif; ?>
</tbody>
</table>
</div>
</div>
</div>
</main>
<!-- end::main content -->
<?php $__env->stopSection(); ?>
<?php $__env->startPush('footer-script'); ?>
<!-- begin::dataTable -->
<script src="<?php echo e(asset('public/admin/vendors/dataTable/jquery.dataTables.min.js')); ?>"></script>
<script src="<?php echo e(asset('public/admin/vendors/dataTable/dataTables.bootstrap4.min.js')); ?>"></script>
<script src="<?php echo e(asset('public/admin/vendors/dataTable/dataTables.responsive.min.js')); ?>"></script>
<script src="<?php echo e(asset('public/admin/js/examples/datatable.js')); ?>"></script>
<!-- end::dataTable -->
<?php $__env->stopPush(); ?>
<?php echo $__env->make('layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/leadai/admin.leadai.co.in/resources/views/roles/role-list.blade.php ENDPATH**/ ?>