관리-도구
편집 파일: ed8948a23c51a09562f69105f26f4895d5e5a085.php
<?php $__env->startSection('content'); ?> <style> .checkmark{border-radius:10px;} .c-container input:checked ~ .checkmark {background-color: #2ecc71;} </style> <div class="row"> <div class="col-lg-12"> <form method="post" id="permissions" class="validate" autocomplete="off" action="<?php echo e(route('permission.store')); ?>"> <div class="row"> <div class="col-md-12"> <div class="card"> <div class="card-body"> <div class="col-md-4"> <div class="form-group"> <label class="control-label"><?php echo e(_lang('Select Role')); ?></label> <select class="form-control select2" id="role_id" name="role_id" required> <option value=""><?php echo e(_lang('Select One')); ?></option> <?php echo e(create_option("roles", "id", "name", $role_id)); ?> </select> </div> </div> </div> </div> </div> </div> <div class="card"> <span class="d-none panel-title"><?php echo e(_lang('Permission Control')); ?></span> <div class="card-body"> <?php echo e(csrf_field()); ?> <div id="accordion"> <?php $i = 1; ?> <?php $__currentLoopData = $permission; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $val): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <div class="card"> <div class="card-header"> <h4> <a class="card-link" data-toggle="collapse" href="#collapse-<?php echo e(explode("\\",$key)[3]); ?>"> <i class="fa fa-angle-double-right" aria-hidden="true"></i> <?php echo e(str_replace("Controller","",explode("\\",$key)[3])); ?> </a> </h4> </div> <div id="collapse-<?php echo e(explode("\\",$key)[3]); ?>" class="collapse"> <div class="card-body"> <table class="table"> <?php $__currentLoopData = $val; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $name => $url): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr> <td> <div class="checkbox"> <div class="custom-control custom-checkbox"> <input type="checkbox" class="custom-control-input" name="permissions[]" value="<?php echo e($name); ?>" id="customCheck<?php echo e($i + 1); ?>" <?php echo e(array_search($name,$permission_list) !== FALSE ? "checked" : ""); ?>> <label class="custom-control-label" for="customCheck<?php echo e($i + 1); ?>"><?php echo e(str_replace("index","list",$name)); ?></label> </div> </div> </td> </tr> <?php $i++; ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </table> </div> </div> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> <div class="row"> <div class="col-md-12"> <div class="form-group"> <button type="submit" class="btn btn-primary"><?php echo e(_lang('Save Permission')); ?></button> </div> </div> </div> </div> </div> </form> </div> </div> <?php $__env->stopSection(); ?> <?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/eraas/public_html/resources/views/backend/permission/create.blade.php ENDPATH**/ ?>