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

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



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

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

<?php else: ?>
    
    <?php if(!$solution->slides->isEmpty()): ?>
        <?php $__env->startSection('content-header'); ?>
            <div class="solutions-detail__header">
                <?php echo $__env->make('frontend.templates.components.gallery-slider', array(
                    "slides" => $solution->slides,
                    "overlayId" => "solution-overlay-container"
                ), \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                <div id="solution-overlay-container" class="solutions-detail__header-overlay">
                    <?php echo $__env->make('frontend.templates.components.default_header_content', [
                        'headerTitle' => $solution->title,
                        'headerTagline' => $solution->tagline
                    ], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                </div>
            </div>
        <?php $__env->stopSection(); ?>
    <?php endif; ?>
    <?php $__env->startSection('content-toolbar'); ?>
        <?php if(!empty($solution->factSheet->pardot_url)): ?>
            <a
                href="#"
                class="download-btn download-btn--simple"
                data-download_id="<?php echo e($solution->factSheet->id); ?>"
                data-download="<?php echo e(base64_encode(json_encode(["title" => $solution->factSheet->title, "url" => $solution->factSheet->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 if($solution->slides->isEmpty()): ?>
        <?php $__env->startSection('content-top'); ?>
            <div class="rich-content">
                <h1><?php echo e($solution->title); ?></h1>
            </div>
        <?php $__env->stopSection(); ?>
    <?php endif; ?>
    <?php $__env->startSection('content-left'); ?>
        <?php if($solution->objective): ?>
            <div class="rich-content rich-content__objective">
                <div class="heading3"><?php echo strip_tags($solution->objective, '<b><sup><strong><sub><i><span><u>'); ?></div>
            </div>
        <?php endif; ?>
        <?php if($solution->content): ?>
            <div class="rich-content">
                <?php echo $solution->content; ?>

            </div>
        <?php endif; ?>
        <?php if($solution->in_depth): ?>
            <div class="rich-content solutions-detail__in-depth">
                <?php echo $solution->in_depth; ?>

            </div>
        <?php endif; ?>
    <?php $__env->stopSection(); ?>
    <?php $__env->startSection('content-footer'); ?>
        <?php if($solution->solutions->count()): ?>
            <?php echo $__env->make(
                'frontend.templates.components.generic_related_slider',
                [
                    'title' => trans('frontend.related_solutions'),
                    'items' => $solution->solutions,
                    'itemImageField' => 'overviewImage',
                    'itemImageSize' => '400x400'
                ]
            , \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
        <?php endif; ?>
        <?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' => $solution->codeEmbeds
], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/html/resources/views/frontend/templates/page/solutions_detail.blade.php ENDPATH**/ ?>