<section class="ssa-case-study-section">
    <div class="text-center ssa-section-heading reveal-on-scroll">
        <div class="prespa-saas-box ssa-badge justify-center">
            <img src="<?php echo e(asset('assets/themes/prespa-saas/assets/img/ps-patterns/icons/rocket.png')); ?>" alt="">
            <span><?php echo e($caseStudies['badge'] ?? 'Case studies'); ?></span>
        </div>

        <h2><?php echo e($caseStudies['title'] ?? 'Before-and-after reporting snapshots that show what cleaner tracking can change.'); ?></h2>
        <p><?php echo e($caseStudies['description'] ?? 'Use dashboard screenshots, summary notes, and key outcomes to explain the difference between broken reporting and a cleaner setup.'); ?></p>
    </div>

    <div class="ssa-case-study-grid">
        <?php $__currentLoopData = $caseStudies['studies'] ?? []; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $study): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <?php ($beforeMedia = filled($study['before_media_id'] ?? null) ? $pageMedia->get((int) $study['before_media_id']) : null); ?>
            <?php ($afterMedia = filled($study['after_media_id'] ?? null) ? $pageMedia->get((int) $study['after_media_id']) : null); ?>
            <article class="ssa-case-study-card reveal-on-scroll">
                <div class="ssa-case-study-copy">
                    <?php if(! empty($study['label'])): ?>
                        <span class="ssa-blog-chip"><?php echo e($study['label']); ?></span>
                    <?php endif; ?>
                    <h3><?php echo e($study['title'] ?? 'Tracking clean-up case study'); ?></h3>
                    <p><?php echo e($study['summary'] ?? ''); ?></p>
                    <?php if(! empty($study['result'])): ?>
                        <p class="ssa-case-study-result"><?php echo e($study['result']); ?></p>
                    <?php endif; ?>
                </div>

                <div class="ssa-case-study-visuals">
                    <figure class="ssa-case-study-shot">
                        <figcaption>Before</figcaption>
                        <img src="<?php echo e($beforeMedia?->url ?? asset('uploads/placeholders/default-service.jpg')); ?>" alt="<?php echo e($beforeMedia?->alt_text ?? 'Before dashboard screenshot'); ?>">
                    </figure>
                    <figure class="ssa-case-study-shot">
                        <figcaption>After</figcaption>
                        <img src="<?php echo e($afterMedia?->url ?? asset('uploads/placeholders/default-service.jpg')); ?>" alt="<?php echo e($afterMedia?->alt_text ?? 'After dashboard screenshot'); ?>">
                    </figure>
                </div>
            </article>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    </div>
</section>
<?php /**PATH /home/xsoftdev/saleemsail.xsoftdevelop.com/resources/views/frontend/partials/home/case-studies.blade.php ENDPATH**/ ?>