
  <div class = "col-md-4 col-sm-4">
      <div class= "card card-collapsed">
        <div class="card-status bg-teal"></div>
        <div class="card-header"> 
              <?php ($hasPermission = array()); ?>

              <?php $__currentLoopData = $permission_list; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $rows): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                 <?php (array_push($hasPermission,$rows->name)); ?>
              <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

            <h3 class="card-title" style="margin: 0px 0px 0px 0px;">

              <input <?php if(@count($hasPermission) > 0 && $user->hasAllPermissions($hasPermission)): ?> checked <?php endif; ?> class="<?php echo e($module); ?>_module" type="checkbox" onchange="assignModulePermission(this,'<?php echo e(Crypt::encrypt($user->id)); ?>','<?php echo e(Crypt::encrypt($module)); ?>','<?php echo e($module); ?>')"> &nbsp;<?php echo e($module); ?>


            </h3>
            <div class="card-options">
               <a onclick="cardCollapse(event,this)" href="#" class="card-options-collapse" data-toggle="card-collapse"><i class="fe fe-chevron-up"></i></a>      
            </div>
        </div>
     

      <div class="table-responsive">
          <table class="table table-hover table-outline table-vcenter text-nowrap card-table">
            <thead>
              <tr>
                
              <th>Name</th>  
                <th>Status</th>                          
              </tr>
            </thead>
            <tbody>
               
              <?php $__currentLoopData = $permission_list; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $rows): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <tr>
                 
                  <td style ="width:60%;"><?php echo e($rows->name); ?></td>
                  <td><input class="<?php echo e($module); ?>_permission" onchange="assignPermission(this,'<?php echo e(Crypt::encrypt($user->id)); ?>','<?php echo e(Crypt::encrypt($rows->id)); ?>','<?php echo e($rows->name); ?>');" type="checkbox" <?php if($user->hasAnyPermission($rows->name)): ?> checked <?php endif; ?> name="permission_list[]" value="<?php echo e(Crypt::encrypt($rows->id)); ?>"></td>
                </tr>
              <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </tbody>
          </table>
        </div>                                   
    </div>
  </div>
<?php /**PATH /home/ubuntu/rebmgisplus/skylite/resources/views/permission/module_wise_permission.blade.php ENDPATH**/ ?>