<?php if (isset($component)) { $__componentOriginal3cc73b875cbdf226a8ba3f966d81c03b = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal3cc73b875cbdf226a8ba3f966d81c03b = $attributes; } ?>
<?php $component = App\View\Components\AgencyThemeLayout::resolve(['agency' => $agency,'page' => $page,'theme' => $theme,'themeSettings' => $themeSettings] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('agency-theme-layout'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\App\View\Components\AgencyThemeLayout::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
    <?php $__currentLoopData = $sections; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $section): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <?php
            $themeName = $theme->name ?? 'default';
            $sectionPath = "page.agency.themes.{$themeName}.sections.{$section->section_type}";

            // Tema-spesifik section yoksa default'a düş
            if (!view()->exists($sectionPath)) {
                $sectionPath = "page.agency.themes.default.sections.{$section->section_type}";
            }
        ?>

        <?php echo $__env->make($sectionPath, [
            'section' => $section,
            'theme' => $theme,
            'agency' => $agency,
            'themeSettings' => $themeSettings
        ], array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal3cc73b875cbdf226a8ba3f966d81c03b)): ?>
<?php $attributes = $__attributesOriginal3cc73b875cbdf226a8ba3f966d81c03b; ?>
<?php unset($__attributesOriginal3cc73b875cbdf226a8ba3f966d81c03b); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal3cc73b875cbdf226a8ba3f966d81c03b)): ?>
<?php $component = $__componentOriginal3cc73b875cbdf226a8ba3f966d81c03b; ?>
<?php unset($__componentOriginal3cc73b875cbdf226a8ba3f966d81c03b); ?>
<?php endif; ?>
<?php /**PATH C:\xampp\htdocs\acente\resources\views/page/agency/index.blade.php ENDPATH**/ ?>