
    <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" 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.roles.fields.add-role.givepermit'); ?></label>
        <div class="row">
            <?php $__currentLoopData = $permissions; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $module => $modulePermissions): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>

            <?php
            $moduleName = str_replace('_', ' ', $module); // Replace underscores with spaces
            $moduleName = ucfirst($moduleName); // Capitalize the first letter
            ?>

            <?php if(!(auth()->user()->hasRole(config('app.roleid.super_admin')))): ?>
                <?php if($module == 'roles'): ?>
                    <?php continue; ?>
                <?php endif; ?>
            <?php endif; ?>
                <div class="col-12 col-md-12 col-lg-12">
                    <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 = $modulePermissions; $__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 permission-checkbox" name="permissions[]" value="<?php echo e($permission->id); ?>" id="permission<?php echo e($permission->id); ?>"
                                            <?php if(isset($role) && $selectedPermissions->contains('id', $permission->id)): ?> checked <?php endif; ?>>
                                            <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>
                </div>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </div>
    </div>
    <button type="submit" class="btn btn-primary"><?php echo app('translator')->get('quickadmin.qa_submit'); ?></button>

<?php /**PATH /home/hipldemo2/public_html/billing-software.hipl-staging2.com/resources/views/admin/roles/form.blade.php ENDPATH**/ ?>