<?php $__env->startSection('title'); ?><?php echo app('translator')->get('quickadmin.roles.fields.role_detail'); ?> <?php $__env->stopSection(); ?>
<?php $__env->startSection('customCss'); ?>
<meta name="csrf-token" content="<?php echo e(csrf_token()); ?>" >
<?php $__env->stopSection(); ?>

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

<section class="section">
    <div class="section-body">
      <div class="row">
        <div class="col-12 col-md-12 col-lg-12">
          <div class="card">
            <div class="card-body">
            <form >
                <div class="form-group">
                    <label><?php echo app('translator')->get('quickadmin.roles.fields.list.name'); ?></label>
                    <div class="input-group">
                      <div class="input-group-prepend">
                        <div class="input-group-text">
                          <i class="fas fa-user"></i>
                        </div>
                      </div>
                      <input type="text" class="form-control phone-number" readonly name="name" value="<?php echo e(isset($role) ? $role->name : old('name')); ?>" id="name" autocomplete="true">
                    </div>
                </div>

                <div class="form-group">
                    <label><?php echo app('translator')->get('quickadmin.permissions.allow_permissions'); ?></label>
                    <?php $__currentLoopData = $groupedPermissions; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $moduleName => $permissions): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <?php
                    $moduleName = str_replace('_', ' ', $moduleName); // Replace underscores with spaces
                    $moduleName = ucfirst($moduleName); // Capitalize the first letter
                    ?>

                    <?php if(!(auth()->user()->hasRole(config('app.roleid.super_admin')))): ?>
                        <?php if($moduleName == 'roles'): ?>
                            <?php continue; ?>
                        <?php endif; ?>
                    <?php endif; ?>
                        <div class="card">
                            <div class="card-header">
                                <h4><?php echo e($moduleName); ?></h4>
                            </div>
                            <div class="card-body">
                                <div class="form-group">
                                    <div class="row">
                                        <?php $__currentLoopData = $permissions; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $permission): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <div class="col-md-3">
                                                <div class="custom-control custom-checkbox">
                                                    <input type="checkbox" class="custom-control-input"  checked  readonly>
                                                    <label class="custom-control-label" for="permission<?php echo e($permission->id); ?>"><?php echo e($permission->title); ?></label>
                                                </div>
                                            </div>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </div>
                                </div>
                            </div>
                        </div>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </div>
            </form>
            </div>
          </div>
        </div>
      </div>
    </div>
  </section>



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

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


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

<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/hipldemo2/public_html/billing-software.hipl-staging2.com/resources/views/admin/roles/show.blade.php ENDPATH**/ ?>