%PDF- %PDF-
Direktori : /home/silvzytp/ccd-ind-code/storage/framework/views/ |
Current File : //home/silvzytp/ccd-ind-code/storage/framework/views/7bf9f022c0eefc17cef1bc0c59377d48a110326a.php |
<?php $__env->startSection('title', $siteTitle); ?> <?php $__env->startSection('action'); ?> <button type="submit" class="btn btn-sm btn-primary submit-form-btn">Save Change</button> <?php $__env->stopSection(); ?> <?php $__env->startPush('styles'); ?> <?php $__env->stopPush(); ?> <?php $__env->startSection('content'); ?> <div class="row"> <div class="col-12"> <div class="card"> <div class="card-header"> <h4 class="mb-0 card-title">New Role</h4> </div> <div class="card-body"> <form action="<?php echo e(isset($role) ? route('super.roles.update', $role->id) : route('super.roles.store')); ?>" id="form" method="POST"> <?php echo csrf_field(); ?> <?php if(isset($role)): ?> <?php echo method_field('PUT'); ?> <?php endif; ?> <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.selectbox','data' => ['name' => 'role_name','labelName' => 'Role name','required' => 'required']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('form.selectbox'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['name' => 'role_name','labelName' => 'Role name','required' => 'required']); ?> <option value="">Select Role</option> <?php $__empty_1 = true; $__currentLoopData = $roles; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?> <option value="<?php echo e($value->name); ?>" <?php if(isset($role)): ?> <?php echo e($role->name == $value->name ? 'selected' : ''); ?> <?php endif; ?>><?php echo e($value->name); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?> <?php endif; ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?> <?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?> <?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?> <?php endif; ?> <div class="permissions mb-5"> <h6 class="mb-0 text-center">Manage permissions for role</h6> </div> <div class="row"> <div class="col-12"> <div class="form-group ml-3"> <div class="custom-control custom-checkbox"> <input type="checkbox" class="custom-control-input select-all" id="all"> <label class="custom-control-label" for="all">Select All</label> </div> </div> </div> <?php $__empty_1 = true; $__currentLoopData = $modules->chunk(3); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $module): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?> <?php $__currentLoopData = $module; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <div class="col-md-4 mb-3"> <h6 class="mb-0"><?php echo e($value->name); ?></h6> <div class="ml-3 mt-3"> <?php $__currentLoopData = $value->permissions; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $permission): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <div class="form-group"> <div class="custom-control custom-checkbox"> <input type="checkbox" name="permission[]" class="custom-control-input" id="role-select-<?php echo e($permission->id); ?>" value="<?php echo e($permission->id); ?>" <?php if(isset($role)): ?> <?php $__currentLoopData = $role->permissions; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $r_permission): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php echo e($r_permission->id == $permission->id ? 'checked' : ''); ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php endif; ?> > <label class="custom-control-label" for="role-select-<?php echo e($permission->id); ?>"><?php echo $permission->name; ?></label> </div> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?> <?php endif; ?> </div> </form> </div> </div> </div> </div> <?php $__env->stopSection(); ?> <?php $__env->startPush('scripts'); ?> <script> $(document).on('click', 'input.select-all', function(){ if (this.checked) { $(':checkbox').each(function(){ this.checked = true; }) }else{ $(':checkbox').each(function(){ this.checked = false; }) } }) </script> <?php $__env->stopPush(); ?> <?php echo $__env->make('layouts.backend', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/silvzytp/calling_code/resources/views/backend/super-admin/pages/system/roles/form.blade.php ENDPATH**/ ?>