<?php
    $bodyClass = 'case-studies-detail';
    $layout_path = 'frontend.layouts.content-sidebar';
    if($caseStudy->layout_type == 'blocks') {
        $bodyClass .= ' case-studies-detail--blocks';
        $layout_path = 'frontend.layouts.main';

        if($caseStudy->header_overlap) {
            $bodyClass .= ' header-over';
        }
    } else {
        if (!$caseStudy->slides->isEmpty()) {
            $bodyClass .= ' header-over';
        }
    }
?>



<?php if($caseStudy->layout_type == 'blocks'): ?>

    <?php $__env->startSection('content'); ?>
        <div class="case-studies-detail__content">
            <?php echo $__env->make('frontend.templates.components.blocks_section', ['blocks' => $caseStudy->blocks], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
        </div>
    <?php $__env->stopSection(); ?>

<?php else: ?>

    <?php if(!$caseStudy->slides->isEmpty()): ?>
        <?php $__env->startSection('content-header'); ?>
            <div class="case-studies-detail__header">
                <?php echo $__env->make('frontend.templates.components.gallery-slider', array(
                    "slides" => $caseStudy->slides,
                    "overlayId" => "case-studies-overlay-container"
                ), \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                <div id="case-studies-overlay-container" class="case-studies-detail__header-overlay">
                    
                </div>
            </div>
        <?php $__env->stopSection(); ?>
    <?php endif; ?>
    <?php $__env->startSection('content-toolbar'); ?>
        <?php
            $caseStudyPub = $caseStudy->downloads->first();
        ?>
        <?php if($caseStudyPub !== null && !empty($caseStudyPub->pardot_url)): ?>
            <a
                href="#"
                class="download-btn download-btn--simple"
                data-download_id="<?php echo e($caseStudyPub->id); ?>"
                data-download="<?php echo e(base64_encode(json_encode(["title" => $caseStudyPub->title, "url" => $caseStudyPub->pardot_url ]))); ?>"
                data-controller="components/form-modal"
                data-popupid="download-modal"
            >
            </a>
        <?php endif; ?>
        <?php echo $__env->make('frontend.templates.components.share_buttons', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    <?php $__env->stopSection(); ?>

    <?php $__env->startSection('content-top'); ?>
        <div class="rich-content">
            <h2 class="case-studies-detail__client">
                <?php echo e($caseStudy->client_name); ?>

                <span>
                    <?php echo app('translator')->get('frontend.Case_Study'); ?>
                </span>
            </h2>
            <h1><?php echo e($caseStudy->title); ?></h1>
        </div>
    <?php $__env->stopSection(); ?>
    <?php $__env->startSection('content-left'); ?>
        <?php if($caseStudy->objective): ?>
            <div class="rich-content rich-content__objective">
                <div class="heading3"><?php echo strip_tags($caseStudy->objective, '<b><sup><strong><sub><i><span><u>'); ?></div>
            </div>
        <?php endif; ?>
        <?php if($caseStudy->content): ?>
            <div class="rich-content">
                <?php echo $caseStudy->content; ?>

            </div>
        <?php endif; ?>
    <?php $__env->stopSection(); ?>
    <?php $__env->startSection('content-footer'); ?>
        <?php echo $__env->make('frontend.templates.components.simple_related_items', array('title' => trans('frontend.further_reading')), \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    <?php $__env->stopSection(); ?>
<?php endif; ?>

<?php echo $__env->make($layout_path, [
    'body_class' => $bodyClass,
    'objectEmbeds' => $caseStudy->codeEmbeds
], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/html-staging/resources/views/frontend/templates/page/case_studies_detail.blade.php ENDPATH**/ ?>