{% extends 'frontend.html.twig' %}
{% set countActivePackages = 0 %}
{% block content %}
{% include 'frontend/general/customer-aboutus.html.twig' with {'customer': customer} %}
{% for areas in sortedAreasArray %}
{% if areas.CUSTOMER_PACKAGE.draft == 0 or (is_granted('ROLE_CUSTOMER_ADMIN') and customer.user.id == app.user.id and areas.CUSTOMER_PACKAGE.draft == 1) %}
{% if is_granted('ROLE_CUSTOMER_ADMIN') and customer.user.id == app.user.id and areas.CUSTOMER_PACKAGE.draft == 1 %}
{% include 'frontend/index/customer-package/admin-preview.html.twig' %}
{% endif %}
{% set countActivePackages = countActivePackages + 1 %}
{% include 'frontend/index/customer-package/package.html.twig' with {
'sortedAreasArray': areas,
'customerPackage': areas.CUSTOMER_PACKAGE
} %}
{% endif %}
{% endfor %}
{% include 'frontend/index/customer-package/no-active-packages.html.twig' %}
{% include 'frontend/general/latest-sponsor.html.twig' %}
{% include 'frontend/general/how-to.html.twig' with {'customer': customer} %}
{% include 'frontend/general/faq.html.twig' with {'customer': customer} %}
{% endblock %}
{% block modal %}
{% include 'frontend/index/modal/modal__area-sold.html.twig' %}
{% include 'frontend/cart/modal/add-to-cart__modal-skeleton.twig' %}
{% include 'frontend/index/modal/modal__remove-from-cart.html.twig' %}
{% endblock %}
{% block js_bottom %}
{% apply spaceless %}
<script type="text/javascript">
$(document).ready(function () {
refreshShoppingCart();
});
</script>
{% include '/frontend/index/js/shopping-cart.html.twig' %}
{% include '/frontend/index/js/add-to-cart.html.twig' %}
{% include '/frontend/index/js/remove-from-cart.html.twig' %}
{% include '/frontend/index/js/toggle-production-and-setup.html.twig' %}
{% endapply %}
{% endblock %}