{% extends 'base.html.twig' %}
{% block title %}AFI importExport Market{% endblock %}
{% block body %}
<div style="background: #f3f3f3; padding-top: 7px">
{% if homeSlider %}
{{ include('partials/home_slider.html.twig') }}
{% else %}
{% endif %}
<div class="d-none d-xl-block pl-5 pr-5" style="margin-top: 17px">
<div class="row justify-content-center">
{% for market in mymarkets|shuffle|slice(0,4) %}
{% if market|length > 0 %}
<div class="col-3" style="border: 6px solid #f3f3f3">
<div class="row justify-content-center" style="background: #fff; border-radius: 10px">
<div class="col-12 font-weight-bold font-monospace p-2" >
<img width="40px" height="40px" style="border-radius: 50%" src="/assets/uploads/mymarket/{{ market.image }}"> {{ market.name|upper|trans }}
</div>
{% for category in market.categories|toArray|shuffle|slice(0,1) %}
{% for product in category.products|toArray|shuffle|slice(0,2) %}
<div class=" col-6" >
{{ include('partials/product_item_tag_or_categorie_market.html.twig',{'product': product}) }}
</div>
{% else %}
<div class=" col-6 ">
{{ include('partials/default.html.twig') }}
</div>
{% endfor %}
{% else %}
<div class="col-6">
{{ include('partials/default.html.twig') }}
</div>
{% endfor %}
</div>
</div>
{% endif %}
{% endfor %}
</div>
</div>
<div class="row product_index">
<div class="col-lg-6">
<h2 style="background: white" class="ml-4 mr-4 p-3">{{ 'Special Offer'|trans }} <b>{{ 'Products'|trans }}</b></h2>
<div class="" style="margin-top: -100px">
<div class="card-body">
<div class="row ">
<div class="col-12" style="background: #f3f3f3">
<div class="releted_prslider slick_slider_3 mt-4" data-margin="20" data-slides-to-show="6" data-responsive='{"0":{"items": "1"}, "481":{"items": "2"}, "768":{"items": "3"}, "1199":{"items": "4"}}'>
{% for product in productSpecialOffer|shuffle|slice(0,24) %}
{{ include('partials/product_item.html.twig',{'product': product}) }}
{% endfor %}
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-lg-6">
<h2 style="background: white" class="ml-4 mr-4 p-3">{{ 'In promotional'|trans }} <b>{{ 'Products'|trans }}</b></h2>
<div class="" style="margin-top: -100px">
<div class="card-body">
<div class="row ">
<div class="col-12" style="background: #f3f3f3">
<div class="releted_prslider slick_slider_3 mt-4" data-margin="20" data-slides-to-show="6" data-responsive='{"0":{"items": "1"}, "481":{"items": "2"}, "768":{"items": "3"}, "1199":{"items": "4"}}'>
{% for product in Promotional|shuffle|slice(0,24) %}
{{ include('partials/product_item_promotianal.html.twig',{'product': product}) }}
{% endfor %}
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="d-none d-xl-block product_index" style="margin-top: -25px">
<h2>{{ 'Categories of '|trans }} <b>{{ 'Products'|trans }}</b></h2>
<div class="row justify-content-center" style="margin-top: -50px">
{% for market in mymarkets|shuffle|slice(0,3) %}
{% for category in market.categories|toArray|shuffle|slice(0,1) %}
{% if category|length > 0 %}
<div class="col-3" style="border: 6px solid #f3f3f3">
<div class="row justify-content-center" style="background: #fff; border-radius: 10px">
<div class="col-12 font-weight-bold font-monospace p-2" >
<img width="40px" height="40px" style="border-radius: 50%" src="/assets/uploads/categories/{{ category.image }}"> {{ category.name|upper|trans }}
</div>
{% for product in category.products|toArray|shuffle|slice(0,6) %}
<div class=" col-4" >
{{ include('partials/product_item_tag_or_categorie_market.html.twig',{'product': product}) }}
</div>
{% else %}
<div class=" col-4 ">
{{ include('partials/default.html.twig') }}
</div>
{% endfor %}
</div>
</div>
{% endif %}
{% endfor %}
{% endfor %}
</div>
</div>
<div class="container product_index">
<h2>{{ 'New Arrival'|trans }} <b>{{ 'Products'|trans }}</b></h2>
<div class="row justify-content-center" style="margin-top: -40px">
{% for product in productNewArrival|shuffle|slice(0,8) %}
{% if product.etat == true %}
<div class="col-xl-3 col-lg-3 col-md-4 col-sm-6 col-xs-12 col-12">
{{ include('partials/product_no_quick_view.html.twig',{'product':product}) }}
</div>
{% endif %}
{% endfor %}
</div>
</div>
<div class=" product_index" style="background: #e7f0fe; margin-top: -7px">
<div class="primary-overlay parallax-container ">
<div class="parallax-content section-xl bg-white text-dark text-md-left">
<div class="container ">
<div class="row justify-content-end">
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-6 ">
<div class="cta-moder p-5">
<h3 class="cta-modern-title wow fadeInRight font-weight-bolder font-monospace">{{ 'WHY CHOOSE US ?'|trans|upper }}</h3>
<p class="lead text-dark">{{ 'Alliance Force internationale offer you the best and high quality of service.'|trans }}</p>
<p class="cta-modern-text text-danger oh-desktop" data-wow-delay=".1s"><span class="cta-modern-decor wow slideInLeft"></span><span class="d-inline-block wow slideInDown text-dark font-monospace">AFI SARL</span></p><a class="btn btn-fill-line font-monospace font-weight-bold text-white" href="{{ path('shop') }}" data-wow-delay=".2s"><i class="linearicons-cart-exchange"></i> {{ 'Go to shop page'|trans }}</a>
</div>
</div>
<div class="col-sm-4 col-md-5 col-lg-6 pl-lg-3 text-left p-5 d-none d-xl-block d-lg-block">
<ul style="list-style: none;" class="d-inline-block d-sm-block wow fadeInUp">
<li style="font-size: 20pt;padding-top: 0pt"> <span class="badge badge-dark bg-gray-7 text-white text-bold"><a class="linearicons-sun"></a></span> {{ 'Speed in work'|trans }} </li>
<li style="font-size: 20pt;padding-top: 40pt"> <span class="badge badge-dark bg-gray-7 text-white text-bold"><a class="linearicons-inbox"></a></span> {{ 'Reliability and Confidence'|trans }} </li>
<li style="font-size: 20pt;padding-top: 40pt"> <span class="badge badge-dark bg-gray-7 text-white text-bold"><a class="linearicons-thumbs-up"></a></span> {{ 'High quality of service'|trans }} </li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row product_index">
<div class="col-lg-6">
<h2>{{ 'Best Seller'|trans }} <b>{{ 'Products'|trans }}</b></h2>
<div class="" style="margin-top: -80px">
<div class="card-body">
<div class="row ">
<div class="col-12" style="background: #f3f3f3">
<div class="releted_prslider slick_slider_3 mt-4" data-margin="20" data-slides-to-show="3" data-responsive='{"0":{"items": "1"}, "481":{"items": "2"}, "768":{"items": "3"}, "1199":{"items": "4"}}'>
{% for product in productBestSeller|shuffle|slice(0,24) %}
{{ include('partials/product_item_BestSeller.html.twig',{'product': product}) }}
{% endfor %}
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-lg-6">
<h2>{{ 'Featured'|trans }} <b>{{ 'Products'|trans }}</b></h2>
<div class="" style="margin-top: -80px">
<div class="card-body" >
<div class="row ">
<div class="col-12" style="background: #f3f3f3">
<div class="releted_prslider slick_slider_3 mt-4" data-margin="20" data-slides-to-show="3" data-responsive='{"0":{"items": "1"}, "481":{"items": "2"}, "768":{"items": "3"}, "1199":{"items": "4"}}'>
{% for product in productFeatured|shuffle|slice(0,24) %}
{{ include('partials/product_item_Featured.html.twig',{'product': product}) }}
{% endfor %}
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="container product_index" style="margin-top: 10px">
<h2>{{ 'AFI SARL'|trans }} <b>{{ 'Import Export'|trans }}</b></h2>
<div class="row">
<div class="col-lg-6">
<div class="card" style="background:#fff; ">
<div class="card-body">
<div class="message-flash">
<div id="alert-msg" class="col-md-12" role="alert"></div>
</div>
<div id="div_field_form_id">
{{ render(path('contact_form')) }}
</div>
</div>
</div>
</div>
<div class="col-lg-6">
<div class="row">
<div class="col-xl-12 col-lg-12 col-md-12">
<div class="contact_wrap bg-white contact_style3">
<div class="contact_icon">
<i class="linearicons-map-marker"></i>
</div>
<div class="contact_text">
<span>{{ 'CHINA - GUANGZHOU' }}</span>
<p>XIAO BEI LU N°63, HUAYU BUILDING ROOM 13K, YUE XIU DISTRICT</p>
</div>
</div>
</div>
<div class="col-xl-12 col-lg-12 col-md-12">
<div class="contact_wrap contact_style3 bg-white">
<div class="contact_icon">
<i class="linearicons-map-marker"></i>
</div>
<div class="contact_text">
<span>{{ 'CHINA - YIWU' }}</span>
<p>YONGSHENG XIAOQU, BLOCK 96, 3<sup>ème</sup>NIVEAU</p>
</div>
</div>
</div>
<div class="col-xl-12 col-lg-12 col-md-12">
<div class="contact_wrap contact_style3 bg-white">
<div class="contact_icon">
<i class="linearicons-map-marker"></i>
</div>
<div class="contact_text">
<span>{{ 'RD CONGO - LUBUMBASHI' }}</span>
<p>1138, AV KASAI COIN TABORA COMMUNE LUBUMBASHI</p>
</div>
</div>
</div>
<div class="col-xl-12 col-lg-12 col-md-12">
<div class="contact_wrap contact_style3 bg-white">
<div class="contact_icon">
<i class="linearicons-map-marker"></i>
</div>
<div class="contact_text">
<span>{{ 'RD CONGO - KINSHASA' }}</span>
<p>254, KINSHASA NGOMBE</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<br>
<br>
{{ include('partials/modalQuickView.html.twig') }}
</div>
{% endblock %}
{% block javascripts %}
<script type="text/javascript">
var input = document.querySelector("#contact_phone"),
output = document.querySelector("#error-msg");
var iti = window.intlTelInput(input, {
nationalMode: true,
preferredCountries: [ "cd", "cn" ],
separateDialCode: true,
autoHideDialCode: true,
utilsScript: "assets/js/utils.js?1613236686837"
});
var handleChange = function() {
var text = (iti.isValidNumber()) ? "International: " + iti.getNumber() : "Please enter a number below";
var textNode = document.createTextNode(text);
output.innerHTML = "";
input.value = iti.getNumber();
};
// listen to "keyup", but also "change" to update when the user selects a country
input.addEventListener('change', handleChange);
input.addEventListener('keyup', handleChange);
$(document).ready(function(){
$('.js-categories-multiple').select2({
width: 'resolve',
theme: 'classic',
placeholder: 'Select option'
});
})
</script>
{% endblock %}