<div class="landing-tile landing-tile--<?php echo e($tile->cols); ?> landing-tile--<?php echo e($tile->colsSm); ?> landing-tile--<?php echo e($tile->text_scheme); ?> landing-tile--<?php echo e($tile->type); ?>">
    <div class="landing-tile__wrap">
        <?php if(!empty($tile->image)): ?>
            <?php if($tile->cols !== 'single'): ?>
                <?php echo getMediaImg($tile->image, '1180x640', htmlspecialchars(''), 'landing-tile__bg'); ?>

            <?php else: ?>
                <?php echo getMediaImg($tile->image, '500x640', htmlspecialchars(''), 'landing-tile__bg'); ?>

            <?php endif; ?>
        <?php endif; ?>
        <?php if(!empty($tile->overlay_color)): ?>
            <div class="landing-tile__color-overlay" style="background-color:<?php echo e($tile->overlay_color); ?>;opacity: <?php echo e($tile->overlay_opacity ? $tile->overlay_opacity : '100'); ?>%;"></div>
        <?php endif; ?>
        <div class="landing-tile__content">
        <?php if($tile->type == 'generic'): ?>
            <div class="landing-tile__text landing-tile__text--overlay-<?php echo e($tile->overlay); ?> landing-tile__text--<?php echo e($tile->text_position); ?>">
                <?php echo $tile->content; ?>

            </div>
            <?php if($tile->call_to_action): ?>
                <div class="landing-tile__button">
                    <?php echo generateLink($tile->call_to_action, 'std-button std-button--' . ($tile->text_scheme == 'dark' && $tile->text_position == 'top' && $tile->overlay == 'yes' ? 'light' : $tile->text_scheme )); ?>

                </div>
            <?php endif; ?>

            <?php if($tile->contact): ?>
                <div class="landing-tile__button">
                    <a
                        href="#"
                        class="std-button std-button--<?php echo e($tile->text_scheme == 'dark' && $tile->text_position == 'top' && $tile->overlay == 'yes' ? 'light' : $tile->text_scheme); ?>"
                        data-name="<?php echo e($tile->contact->name); ?>"
                        data-contact="<?php echo e(base64_encode(json_encode(["Contact_person" => $tile->contact->name ]))); ?>"
                        data-controller="components/form-modal"
                        data-popupid="contact-us-modal">
                        <?php echo e($tile->contact_button_label ? $tile->contact_button_label : $tile->contact->title); ?>

                    </a>
                </div>
            <?php endif; ?>
        <?php elseif($tile->type == 'text'): ?>
            <div class="landing-tile__text">
                <div class="landing-tile__text-content">
                    <?php echo $tile->content; ?>

                </div>
            </div>
            <?php if(!empty($tile->call_to_action)): ?>
                <div class="landing-tile__button">
                    <?php echo generateLink($tile->call_to_action, 'std-button std-button--' . $tile->text_scheme); ?>

                </div>
            <?php endif; ?>
            <?php if(!empty($tile->contact)): ?>
                <div class="landing-tile__button">
                    <a
                        href="#"
                        class="std-button std-button--<?php echo e($tile->text_scheme == 'dark' && $tile->text_position == 'top' && $tile->overlay == 'yes' ? 'light' : $tile->text_scheme); ?>"
                        data-name="<?php echo e($tile->contact->name); ?>"
                        data-contact="<?php echo e(base64_encode(json_encode(["Contact_person" => $tile->contact->name ]))); ?>"
                        data-controller="components/form-modal"
                        data-popupid="contact-us-modal">
                        <?php echo e($tile->contact_button_label ? $tile->contact_button_label : $tile->contact->title); ?>

                    </a>
                </div>
            <?php endif; ?>
        <?php elseif($tile->type == 'testimonial' && $tile->testimonial): ?>
            <div class="landing-tile__bg-overlay"></div>
            <div class="landing-tile__testimonial">
                <?php if($tile->testimonial->photo): ?>
                <div class="landing-tile__avatar">
                    <?php echo getMediaImg($tile->testimonial->photo, '200x200', htmlspecialchars($tile->testimonial->title)); ?>

                </div>
                <?php endif; ?>
                <h4><?php echo e($tile->testimonial->title); ?></h4>
                <h5>
                    <b>
                        <?php echo e($tile->testimonial->role); ?>

                    </b>
                    <i>
                        <?php echo e($tile->testimonial->role && $tile->testimonial->company ? trans('frontend.at') : ''); ?>

                    </i>
                    <b>
                        <?php echo e($tile->testimonial->company); ?>

                    </b>
                </h5>
                <?php echo $tile->testimonial->quote; ?>

            </div>
            <?php if($tile->call_to_action): ?>
                <div class="landing-tile__button">
                    <?php echo generateLink($tile->call_to_action, 'std-button std-button--dark'); ?>

                </div>
            <?php endif; ?>

            <?php if($tile->contact): ?>
                <div class="landing-tile__button">
                    <a
                        href="#"
                        class="std-button"
                        data-name="<?php echo e($tile->contact->name); ?>"
                        data-contact="<?php echo e(base64_encode(json_encode(["Contact_person" => $tile->contact->name ]))); ?>"
                        data-controller="components/form-modal"
                        data-popupid="contact-us-modal">
                        <?php echo e($tile->contact_button_label ? $tile->contact_button_label : $tile->contact->title); ?>

                    </a>
                </div>
            <?php endif; ?>
        <?php endif; ?>
        </div>
    </div>
</div>
<?php /**PATH /var/www/html-staging/resources/views/frontend/templates/components/homepage_tile.blade.php ENDPATH**/ ?>