
<?php $__env->startSection('title'); ?> রোল | TESTPAPER <?php $__env->stopSection(); ?>
<?php $__env->startSection('roles'); ?> active <?php $__env->stopSection(); ?>
<?php $__env->startSection('roles.index'); ?> active <?php $__env->stopSection(); ?>
<?php $__env->startSection('styles'); ?>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('main_content_section'); ?>
	
	 <!-- BEGIN: Content-->
    <div class="app-content content min-vh-100">

      <div class="content-header row ps-2">
        <div class="content-header-left col-md-9 col-12">
            <div class="row breadcrumbs-top">
                <div class="col-12 my-3">
                    <h3 class="content-header-title float-start mb-0">রোলের তালিকা </h3>
                </div>
            </div>
        </div>
    </div>
        <div class="card">
        <div class="card-body">
          <div class="table-responsive">
            <table id="" class="table table-bordered">
			  <thead>
			    <tr>
			      <th scope="col" style="width:200px;">নাম</th>
			      <th scope="col">গার্ড</th>
			      <th scope="col">পারমিশন</th>
			    </tr>
			  </thead>
			  <tbody>

			  	<?php $__currentLoopData = $roles; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
			    <?php if(Auth::user()->can('role-list')): ?> 
            <tr>
            			      <td>
                          <?php echo e($item->name); ?>

                            <div class="row-actions">
                              <?php if(Auth::user()->can('role-edit')): ?> 
                                <span><a href="<?php echo e(route('roles.edit',$item->id)); ?>" class="edit_class_modal border-0 bg-transparent"> <span class="text-primary">সম্পাদন</span> | </a></span>
                              <?php endif; ?>
                                  
                              <?php if(Auth::user()->can('role-delete')): ?> 
                                <span><a href="<?php echo e(route('roles.destroy', ['id'=>$item->id])); ?>" class="row-delete"><span
                                      class="trash text-danger">ডিলিট</span>  </a></span>
                              <?php endif; ?>
                            </div>
                        </td>
            			      <td><?php echo e($item->guard_name); ?></td>
            
            			      <td>
                                    <?php $__currentLoopData = $item->permissions; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $perm): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <span class="badge bg-info" style="margin-top: 5px;">
                                            <?php echo e($perm->name); ?>

                                        </span>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                              </td>
            			    </tr>
          <?php endif; ?>
			    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
			    

			  </tbody>
			</table>
          </div>
        </div>
    </div>

    </div>
    <!-- END: Content-->
	
<?php $__env->stopSection(); ?>
<?php echo $__env->make('admin.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH E:\Project\Personal-Project\Office-Project\update\master-file\resources\views/admin/userRole/roles/index.blade.php ENDPATH**/ ?>