{% extends 'layout/default.html.twig' %}
{% block contentBlock %}
<div class="cartPage {{ cartData.products is defined and cartData.products ? '' : 'cartPage-bg' }}">
<div id="VueCart" class="container my-5 my-lg-5 my-md-5">
{% if cartData.products is defined and cartData.products %}
<div class="row" style="display: none;" v-show="isCartInitialized && !isEmpty">
<div class="col-xl-12 border-2 border-bottom border-indigo pb-3 pb-lg-3 pb-md-3">
<div class="row">
<div class="col-lg-4 offset-lg-1 col-md-4">
<div class="d-flex align-items-center">
<h1 class="font-weight-bold font-italic mb-0 ">
{{ 'cart.cart.page.heading' | trans }}
</h1>
</div>
</div>
<div class="col-lg-6 ml-auto col-md-8 d-flex align-items-center">
<ul class="progressbar ml-auto">
<li class="text-capitalize active">
<span class="success-checkmark">✓</span>
Cart preview
</li>
<li class="text-capitalize no-completed">
<span class="success-checkmark">✓</span>
Billing & Shipping
</li>
<li class="text-capitalize no-completed">
<span class="success-checkmark">✓</span>
Payment
</li>
</ul>
</div>
</div>
</div>
</div>
{% endif %}
<div class="row">
<div class="col-lg-10 offset-lg-1">
<div>
<div style="display: none;" v-show="isCartInitialized && !isEmpty">
{% include "Components/cart.html.twig" with {'disableChanges': 'false' } %}
</div>
{% if not app.user %}
<div style="display: none;" v-show="isCartInitialized && isEmpty">
<h1 class="font-weight-bold font-italic text-navyBlue mb-4 mb-lg-4 mb-md-4">
{{ 'your.cart.empty.heading' | trans }}
</h1>
<h5 class="font-weight-light">
{{ 'cart.empty.checkout-1' | trans }}
<a href="{{ path('login', {'division': getSiteDivision(), '_target_path' : app.request.requestUri}) }}">{{'cart.empty.checkout-1-link' | trans}}</a>
</h5>
<h5 class="font-weight-light">
{{ 'cart.empty.checkout-2' | trans }}
<a href="{{ path('register', {'division': getSiteDivision(), '_target_path' : app.request.requestUri}) }}">{{ 'cart.empty.checkout-2-link' | trans}}</a>
</h5>
</div>
{% else %}
<div style="display: none;" v-show="isCartInitialized && isEmpty">
<h1 class="font-weight-bold font-italic text-navyBlue mb-4 mb-lg-4 mb-md-4">
{{ 'your.cart.empty.heading.logged' | trans }}
</h1>
<h5 class="font-weight-light mb-4 mb-lg-4 mb-md-4">
{{ 'cart.empty.checkout-logged-1' | trans }}
</h5>
<h5 class="font-weight-light">
<a href="{{ path('register', {'division': getSiteDivision(), '_target_path' : app.request.requestUri}) }}" class="btn btn-primary">{{ 'browser.product.checkout' | trans }}</a>
</h5>
</div>
{% endif %}
</div>
</div>
</div>
</div>
</div>
{% endblock %}
{% block beforeScripts %}
<script>
window.billing_information = function (id, setCookie) {
setCookie('__order_billing_address_id', 'customer');
setCookie('__billing_address_id', 'customer');
}
window.shipping_information = function (id, setCookie) {
setCookie('__order_shipping_address_id', 'delivery');
setCookie('__shipping_address_id', 'delivery');
}
</script>
{% endblock %}