

<?php $__env->startSection('content'); ?>

<div class="row">
	<div class="col-md-12">
		<div class="panel panel-default no-export">
			<div class="panel-heading"><span class="panel-title"><?php echo e(_lang('List Permission Role')); ?></span>
			<a class="btn btn-primary btn-sm pull-right ajax-modal" data-title="<?php echo e(_lang('Add Permission Role')); ?>" href="<?php echo e(route('permission_roles.create')); ?>"><?php echo e(_lang('Add New')); ?></a>
			</div>

			<div class="panel-body">
			 <?php if(\Session::has('success')): ?>
			  <div class="alert alert-success">
				<p><?php echo e(\Session::get('success')); ?></p>
			  </div>
			  <br />
			 <?php endif; ?>
			 <table class="table table-bordered data-table">
				<thead>
				  <tr>
					<th><?php echo e(_lang('Role Name')); ?></th>
					<th><?php echo e(_lang('Note')); ?></th>
					<th><?php echo e(_lang('Action')); ?></th>
				  </tr>
				</thead>
				<tbody>
				  
				  <?php $__currentLoopData = $roles; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $role): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
				  <tr id="row_<?php echo e($role->id); ?>">
					<td class='role_name'><?php echo e($role->role_name); ?></td>
					<td class='note'><?php echo e($role->note); ?></td>
						
					<td>
					  <form action="<?php echo e(action('RoleController@destroy', $role['id'])); ?>" method="post">
						<a href="<?php echo e(action('RoleController@edit', $role['id'])); ?>" data-title="<?php echo e(_lang('Update Permission Role')); ?>" class="btn btn-warning btn-sm ajax-modal"><?php echo e(_lang('Edit')); ?></a>
						<a href="<?php echo e(action('RoleController@show', $role['id'])); ?>" data-title="<?php echo e(_lang('View Permission Role')); ?>" class="btn btn-info btn-sm ajax-modal"><?php echo e(_lang('View')); ?></a>
						<?php echo e(csrf_field()); ?>

						<input name="_method" type="hidden" value="DELETE">
						<button class="btn btn-danger btn-sm btn-remove" type="submit"><?php echo e(_lang('Delete')); ?></button>
					  </form>
					</td>
				  </tr>
				  <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
				</tbody>
			  </table>
			</div>
		</div>
	</div>
</div>

<?php $__env->stopSection(); ?>



<?php echo $__env->make('layouts.backend', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\htdocs\hostel\resources\views/backend/administration/permission_role/list.blade.php ENDPATH**/ ?>