<?php $__env->startSection('panel'); ?>
    <?php
        $collections = collect(getPageSections(true))->groupBy('page', true)->whereNull('parent')->sortKeysDesc();
    ?>

    <div class="row gy-4">
        <?php $__currentLoopData = $collections; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <div class="col-12">
                <div class="card">
                    <div class="card-body">
                        <div class="d-flex mb-3 justify-content-between align-items-center flex-wrap gap-2">
                            <h4><?php echo e(keyToTitle($key ? $key . ' Page Contents' : 'Other Contents')); ?></h4>
                        </div>
                        <div class="row gy-4">
                            <?php $__currentLoopData = $item; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $k => $secs): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <?php if($secs['builder'] && !@$secs['hide_builder']): ?>
                                    <div class="col-md-3">
                                        <div class="frontend-section-card">
                                            <h6><?php echo e(__($secs['name'])); ?></h6>
                                            <a href="<?php echo e(route('admin.frontend.sections', $k)); ?>" class="btn btn--light btn-sm"><i class="las la-cog me-0"></i></a>
                                        </div>
                                    </div>
                                <?php endif; ?>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

                            <?php if($key == 'home'): ?>
                                <div class="col-md-3">
                                    <div class="frontend-section-card">
                                        <h6><?php echo app('translator')->get('Promo Banners'); ?></h6>
                                        <a href="<?php echo e(route('admin.promo.banner.index')); ?>" class="btn btn--light btn-sm"><i class="las la-cog me-0"></i></a>
                                    </div>
                                </div>
                                <div class="col-md-3">
                                    <div class="frontend-section-card">
                                        <h6><?php echo app('translator')->get('Product Collections'); ?></h6>
                                        <a href="<?php echo e(route('admin.collection.index')); ?>" class="btn btn--light btn-sm"><i class="las la-cog me-0"></i></a>
                                    </div>
                                </div>

                            <?php endif; ?>
                        </div>
                    </div>
                </div>
            </div>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    </div>
<?php $__env->stopSection(); ?>
<?php $__env->startPush('style'); ?>
    <style>
        .frontend-section-card {
            display: flex;
            justify-content: space-between;
            align-items: center;
            border: 1px solid #ededed;
            padding: 15px;
            border-radius: 5px;
            background: #fff;
            transition: all .2s;
        }

        .frontend-section-card:hover {
            background: #e7e7e7;
        }

        .system-search-icon {
            position: absolute;
            left: 0;
            top: 0;
            height: 100%;
            aspect-ratio: 1;
            padding: 5px;
            display: grid;
            place-items: center;
            color: #888;
        }

        .searchInput {
            border: 1px solid #ededed;
        }

        .system-search-icon~.form-control {
            padding-left: 45px;
        }
    </style>
<?php $__env->stopPush(); ?>

<?php echo $__env->make('admin.layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/creativedesignbd/ecommerce8.creativedesign.com.bd/core/resources/views/admin/frontend/index.blade.php ENDPATH**/ ?>