{% extends 'base.html.twig' %}
{% block body %}
<style type="text/css">
.owl-prev {
left: 20px;
top: 0;
position: absolute;
font-size: 24px !important;
bottom: 0;
height: 100px;
margin: auto;
}
.owl-next {
right: 20px;
top: 0;
position: absolute;
font-size: 24px !important;
bottom: 0;
height: 100px;
margin: auto;
}
.section-title {
margin: 0;
}
</style>
<!-- Start Page Title Area -->
<div class="page-title-area page-title-bg2">
<div class="d-table">
<div class="d-table-cell">
<div class="container">
<div class="page-title-content">
<h2>Buy {{ ((current_sub_service.Name | lower)) | trans }}</h2>
<p class="text-white">No spam, no fake followers, no bots. Just pure organic growth powered by our cutting edge Artificial Intelligence technology.</p>
</div>
</div>
</div>
</div>
{# {% include 'partials/shapes/'~(current_service.SocialNetwork | lower)~'-shapes.html.twig' %} #}
</div>
<!-- End Page Title Area -->
{% macro truncate_to_two_decimals(number) %}
{% set integer_part = number | round(0, 'floor') %}
{% set decimal_part = ((number - integer_part) * 100) | round(0, 'floor') %}
{{ integer_part }}.{{ "%02d"|format(decimal_part) }}
{% endmacro %}
{% import _self as utils %}
<section class="pricing-area" style="padding-top: 50px">
<div class="container">
<div class="section-title">
<span class="sub-title">Offers</span>
<h2>Take advantage of the best offers of {{current_sub_service.Name}}</h2>
</div>
<div class="offers-slides owl-carousel owl-theme">
{% for offer in current_sub_service.offers %}
<div class="single-pricing-box">
<div class="ribbon ribbon-top-right"><span>{{offer.Discount}}% OFF</span></div>
<div class="pricing-header">
<h3>
<span>{{offer.Offer}}</span>
</h3>
</div>
<div class="price">
<sub class="text-decoration-line-through">
{{get_currency()}}{{utils.truncate_to_two_decimals(offer.Price * (1 + (offer.Discount / 100)))}}
</sub>
{{get_currency()}}{{offer.Price}}
</div>
<div class="price">
<sub style="font-size: 20px;color: #de223e;"><b>{{offer.Quantity}}</b> {{current_sub_service.Text}}</sub>
</div>
<div class="button">
<a class="w-100 d-inline-block" href="{{path('order_sub_service', {Service: current_service.Text,SubService: current_sub_service.Text, IDSN: current_service.IDSN, IDGService: current_sub_service.IDGService, IDService: offer.IDService})}}">Get Started</a>
</div>
<ul class="price-features-list" style="border-bottom: none;">
<li><i class="fa fa-user-plus"></i> {{current_sub_service.proprety1txt}}</li>
<li><i class="fa fa-clock"></i> {{current_sub_service.proprety2txt}}</li>
<li><i class="{{current_sub_service.proprety3css}}"></i> {{current_sub_service.proprety3txt}}</li>
<li><i class="{{current_sub_service.proprety4css}}"></i> {{current_sub_service.proprety4txt}}</li>
<li><i class="fa fa-circle-question"></i> {{current_sub_service.proprety5txt}}</li>
<li><i class="{{current_sub_service.proprety6css}}"></i> {{current_sub_service.proprety6txt}}</li>
</ul>
</div>
{% endfor %}
</div>
</div>
</section>
{% endblock %}