<?php $__env->startSection('section-title', 'Role Management'); ?>
<?php $__env->startSection('page-title', 'Add Role & Permission'); ?>
<?php $__env->startSection('action-button'); ?>
    <a href="<?php echo e(route('roles-permission.index')); ?>" class="btn add_list_btn">
        <i class="mr-2 feather icon-list"></i>
        Role & Permission List
    </a>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
    <div class="row">
        <div class="col-lg-12">
            <div class="card m-b-30 card_style">
                <div class="card-body">
                    <form class="needs-validation" action="<?php echo e(route('roles-permission.store')); ?>" method="POST" enctype="multipart/form-data">
                        <?php echo csrf_field(); ?>
                        <div class="row d-flex justify-content-center">
                            <div class="col-md-3"></div>
                            <div class="mb-3 col-md-6">
                                <label for="validationCustom01" class="form-label font-weight-bold">
                                    Role Name *
                                </label>
                                <input type="text" class="form-control" id="validationCustom01" placeholder="Enter Role Name" name="name" required>
                            </div>
                            <div class="col-md-3"></div>
                        </div>
                        <div class="card" style="border: 1px solid #000ce2;">
                            <div class="card-header" style="background: #000ce2;color:white">
                                <div class="row">
                                    <div class="col-md-6">
                                        <h4 class="card-title text-white">Permission</h4>
                                    </div>
                                </div>
                            </div>
                            <div class="card-body">
                                <div class="row">
                                    <?php $__currentLoopData = $routeList; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <div class="col-md-3">
                                            <div class="card card_top" style="border: 1px solid #000ce2;">
                                                <div class="card-header" style="background: #000ce2;color:white;border-radius:25px;">
                                                    <div class="custom-control custom-checkbox">
                                                        <input class="custom-control-input text-white" style="background: white;color:white;border:white;" type="checkbox"
                                                            id="<?php echo e($key); ?>"
                                                            onclick="$('.<?php echo e($key); ?>').prop('checked', this.checked);">
                                                        <label class="custom-control-label font-weight-bold text-white"
                                                            for="<?php echo e($key); ?>">
                                                            <?php echo e(str_replace('-', ' ', str_replace('_', ' ', ucfirst($key)))); ?>

                                                        </label>
                                                    </div>
                                                </div>
                                                <div class="card-body">
                                                    <?php $__currentLoopData = $routeList[$key]; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item => $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                        <div class="custom-control custom-checkbox">
                                                            <input class="custom-control-input <?php echo e($key); ?>"
                                                                type="checkbox" id="<?php echo e($key); ?><?php echo e($item); ?>"
                                                                name="permission[<?php echo e($key); ?>][]"
                                                                value="<?php echo e($item); ?>">
                                                            <label class="custom-control-label font-weight-bold"
                                                                for="<?php echo e($key); ?><?php echo e($item); ?>">
                                                                <?php echo e(str_replace('-', ' ', str_replace('_', ' ', ucfirst($item)))); ?>

                                                            </label>
                                                        </div>
                                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                                </div>
                                            </div>
                                        </div>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                </div>
                            </div>
                        </div>
                        <div class="card-footer mt-3">
                            <div class="col-md-12 text-center">
                                <button type="submit" class="btn save_btn">Submit</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('backend.layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH D:\laragon\www\new demo multi-bank\resources\views/backend/pages/roles-permission/create.blade.php ENDPATH**/ ?>