{% extends 'layouts/layout.html.twig' %}
{% block body %}
{% set maxWidth = solution.getMaxWidth() ? ' style=max-width:' ~ solution.getMaxWidth()|raw ~ 'px;' : '' %}
{% set imageMaxWidth = solution.getImageMaxWidth() ? ' style=max-width:' ~ solution.getImageMaxWidth()|raw ~ 'px;' : '' %}
{% set numOfColumns = solution.getNumColumns() %}
{% set defaultSmXsColWidth = ' col-sm-12 col-xs-12' %}
{% switch numOfColumns %}
{% case "1" %}
{% set numOfColumns = ' col-lg-12 col-md-12 ' %}
{% case "2" %}
{% set numOfColumns = ' col-lg-6 col-md-6 ' %}
{% case "3" %}
{% set numOfColumns = ' col-lg-4 col-md-4 ' %}
{% case "4" %}
{% set numOfColumns = ' col-lg-3 col-md-3 ' %}
{% case "5" %}
{% set numOfColumns = ' col-lg-1_5 col-md-1_5 ' %}
{% case "6" %}
{% set numOfColumns = ' col-lg-2 col-md-2 ' %}
{% default %}
{% set numOfColumns = ' col-lg-4 col-md-4 ' %}
{% endswitch %}
{% set benefitsTitle = solution.getBenefitsTitle() ? solution.getBenefitsTitle() : 'The Benefits' %}
<div id="main-content" class="content">
<div class="section top-bottom-padding">
<div class="inner position-relative">
<div class="row gutter-space--lg">
{% if solution.getContent() %}
{% set colRatio = solution.getColumnRatio() %}
{% switch colRatio %}
{% case "half-half" %}
{% set colRatioLeft = ' col-lg-6 col-md-6' %}
{% case "two-fifth-three-fifth" %}
{% set colRatioLeft = ' col-lg-5 col-md-5' %}
{% case "one-third-two-third" %}
{% set colRatioLeft = ' col-lg-4 col-md-4' %}
{% case "one-quarter-three-quarter" %}
{% set colRatioLeft = ' col-lg-3 col-md-3' %}
{% case "three-fifth-two-fifth" %}
{% set colRatioLeft = ' col-lg-7 col-md-7' %}
{% case "two-third-one-third" %}
{% set colRatioLeft = ' col-lg-8 col-md-8' %}
{% case "three-quarter-one-quarter" %}
{% set colRatioLeft = ' col-lg-9 col-md-9' %}
{% default %}
{% set colRatioLeft = ' col-lg-12 col-md-12' %}
{% endswitch %}
<div class="col{{ colRatioLeft }}{{ defaultSmXsColWidth }}"{{ maxWidth }}>
{{ solution.getContent()|raw }}
{% if solution.getLink() %}
<a class="btn dark" href="{% if solution.getLink().path and solution.getLink().anchor %}{{ solution.getLink().path|lower|join('-') ~ '#' ~ solution.getLink().anchor }}{% elseif solution.getLink().path %}{{ solution.getLink().path|lower|join('-') }}{% elseif solution.getLink().anchor %}{{ '#' ~ solution.getLink().anchor }}{% endif %}"{% if solution.getLink().target %}{{' target=' ~ solution.getLink().target }}{% endif %}>{{ solution.getLink().text }}</a>
{% endif %}
</div>
{% endif %}
{% if solution.getImage() is not empty %}
{% set colRatio = solution.getColumnRatio() %}
{% switch colRatio %}
{% case "half-half" %}
{% set colRatioRight = ' col-lg-6 col-md-6' %}
{% case "two-fifth-three-fifth" %}
{% set colRatioRight = ' col-lg-7 col-md-7' %}
{% case "one-third-two-third" %}
{% set colRatioRight = ' col-lg-8 col-md-8' %}
{% case "one-quarter-three-quarter" %}
{% set colRatioRight = ' col-lg-9 col-md-9' %}
{% case "three-fifth-two-fifth" %}
{% set colRatioRight = ' col-lg-5 col-md-5' %}
{% case "two-third-one-third" %}
{% set colRatioRight = ' col-lg-4 col-md-4' %}
{% case "three-quarter-one-quarter" %}
{% set colRatioRight = ' col-lg-3 col-md-3' %}
{% default %}
{% set colRatioRight = ' col-lg-12 col-md-12' %}
{% endswitch %}
<div class="col{{ colRatioRight }}{{ defaultSmXsColWidth }}">
<img class="full-width" data-aos="fade-up" src="{{ solution.getImage() }}"{{ imageMaxWidth }} />
</div>
{% endif %}
</div>
</div>
</div>
{% set benefitItems = solution.getBenefits() %}
{% if benefitItems %}
<section class="section bg-color--lightgray">
<div class="inner top-padding" style="padding-bottom: 2em;">
<h1 class="bottom-margin-2em{% if solution.getCenteredTitle() %} text-align-center{% endif %}">{{ benefitsTitle }}</h1>
<div class="row gutter-space--lg">
{% for benefitItem in benefitItems %}
<div data-aos="fade-up" class="benefits-container col{{ numOfColumns }} col-sm-{% if solution.getNumColumns() == '1' %}12{% else %}6{% endif %} col-xs-12">
<div class="stylized-header">
{% if benefitItem["Icon"] %}
{% set itemAltData = benefitItem["Icon"].data.metadata[0] is defined and benefitItem["Icon"].data.metadata[0].data is defined ? benefitItem["Icon"].data.metadata[0].data : '' %}
{% set iconPadding = benefitItem["IconPadding"] is defined and benefitItem["IconPadding"].getData() is not empty ? 'style=padding:' ~ benefitItem["IconPadding"].getData()|raw ~ 'px;' : '' %}
<div class="icon-container"{{ iconPadding }}>
<img{% if itemAltData %} alt="{{ itemAltData }}"{% endif %} src="{{ benefitItem["Icon"].getData() }}" style="max-height: 50px;margin:0 auto 10px;">
</div>
{% endif %}
<p class="text--lg text-align-center">
{{ benefitItem["Title"].getData()|raw }}
</p>
</div>
</div>
{% endfor %}
</div>
</div>
</div>
</section>
{% endif %}
<section class="section top-bottom-padding bg-color--red light">
<div class="inner text-align-center">
<div class="row gutter-space--md center-lg center-md center-sm center-xs">
<div class="cta-display-flex no-bottom-margin col-lg-12 col-md-12 col-sm-12 col-xs-12">
<div data-aos="fade-up">
<h1 data-aos="fade-up" class="h2--lg aos-init aos-animate">Ready to get started?</h1>
</div>
<div data-aos="fade-up">
<a href="{% if solution.getShowForm() %}#contact{% else %}/contact{% endif %}" class="btn btn--dark">Talk to an expert</a>
</div>
</div>
</div>
</div>
</section>
{% if solution.getShowForm() %}
{% include 'content/includes/footer-form.html.twig' %}
{% endif %}
</div>
{% endblock %}