

<?php $__env->startSection('head'); ?>
<?php echo $__env->make('layouts.backend.partials.headersection',['title'=>'Roles'], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('content'); ?>
<div class="card"  >
	<div class="card-body">
		<div class="row mb-30">
			<div class="col-lg-6">
				<h4><?php echo e(__('Roles')); ?></h4>
			</div>
			<div class="col-lg-6">
				<div class="add-new-btn">
				</div>
			</div>
		</div>
		<br>
		<div class="card-action-filter">
			<form method="post" class="basicform_with_reload" action="<?php echo e(route('admin.roles.destroy')); ?>">
				<?php echo csrf_field(); ?>
				<div class="row">
					<div class="col-lg-6">
						<?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('role.delete')): ?>
						<div class="d-flex">
							<div class="single-filter">
								<div class="form-group">
									<select class="form-control selectric" name="status">
										<option value="publish"><?php echo e(__('Select Action')); ?></option>
										<option value="delete"><?php echo e(__('Delete Permanently')); ?></option>
									</select>
								</div>
							</div>
							<div class="single-filter">
								<button type="submit" class="btn btn-primary btn-lg ml-2 basicbtn"><?php echo e(__('Apply')); ?></button>
							</div>
						</div>
						<?php endif; ?>
					</div>
					<div class="col-lg-6">
						<?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('role.create')): ?>
						<a href="<?php echo e(route('admin.role.create')); ?>" class="btn btn-primary float-right"><?php echo e(__('Add New Role')); ?></a>
						<?php endif; ?>
					</div>
				</div>
			</div>
			<div class="table-responsive custom-table">
				<table class="table">
					<thead>
						<tr>
							<th class="am-select" width="10%">
								<div class="custom-control custom-checkbox">
									<input type="checkbox" class="custom-control-input checkAll" id="selectAll">
									<label class="custom-control-label checkAll" for="selectAll"></label>
								</div>
							</th>
							<th><?php echo e(__('Name')); ?></th>
							<th><?php echo e(__('Permissions')); ?></th>
						</tr>
					</thead>
					<tbody>
						<?php $__currentLoopData = $roles; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $page): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
						<tr>
							<th>
								<div class="custom-control custom-checkbox">
									<input type="checkbox" name="ids[]" class="custom-control-input" id="customCheck<?php echo e($page->id); ?>" value="<?php echo e($page->id); ?>">
									<label class="custom-control-label" for="customCheck<?php echo e($page->id); ?>"></label>
								</div>
							</th>
							<td>
								<?php echo e($page->name); ?>

								<div class="hover">
									<a href="<?php echo e(route('admin.role.edit',$page->id)); ?>"><?php echo e(__('Edit')); ?></a>
								</div>
							</td>
							<td>
								<?php $__currentLoopData = $page->permissions; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $perm): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
								<span class="badge badge-primary mr-1 mb-2">
									<?php echo e($perm->name); ?>

								</span>
								<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
							</td>
						</tr>
						<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
					</tbody>
				</form>
			</table>
		</div>
	</div>
</div>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('script'); ?>
<script src="<?php echo e(asset('admin/js/form.js')); ?>"></script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.backend.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xampp\htdocs\E-Bank\script\resources\views/admin/role/index.blade.php ENDPATH**/ ?>