%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/silvzytp/dsr_code/storage/framework/views/
Upload File :
Create Path :
Current File : /home/silvzytp/dsr_code/storage/framework/views/3c4fd80d1462889e437f19a2c30f7b68d1aa3a0e.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="ibox">
                <div class="ibox-head">
                    <h4 class="mb-0 ibox-title">New Role</h4>
                </div>
                <div class="ibox-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">
                                    <label class="ui-checkbox">
                                        <input type="checkbox" class="select-all">
                                        <span class="input-span"></span>Select All
                                    </label>
                                </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">
                                                    <label class="ui-checkbox">
                                                        <input type="checkbox" name="permission[]" 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; ?>
                                                        >
                                                        <span class="input-span"></span><?php echo $permission->name; ?>

                                                    </label>
                                                </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/dsr_code/resources/views/backend/super-admin/pages/system/roles/form.blade.php ENDPATH**/ ?>

Zerion Mini Shell 1.0