
{% assign counter = 0 %}
<div class="carousel-wrapper">
    <div class="my-learning-path-carousel">
        {% for learning_path in learning_paths.available %}
            {% if learning_path.name contains 'Core' %}
                <div class="card-wrapper">
                    {% include "cards_learning_path_homepage" with learning_path %}
                    </div>
                    {% assign counter = counter | plus: 1 %}
                {% endif %}
          {% endfor %}
    </div>
    {% if counter == 0 %}
        <div class="zero-state-wrapper">
            <img class="zero-img" src="https://s3.amazonaws.com/static.northpass.com/Cin7/zero+state/no+courses+or+lps+(no+button).png" alt="">
        </div>
    {% endif %}
</div>

<script>
    $('.my-learning-path-carousel').slick({
    infinite: true,
    slidesToShow: 4,
    slidesToScroll: 4,
    prevArrow: "<i class='control-carousel fas fa-chevron-left left-arrow'></i>",
    nextArrow: "<i class='control-carousel fas fa-chevron-right right-arrow'></i>",
    responsive: [
    {
      breakpoint: 1200,
      settings: {
        slidesToShow: 3,
        slidesToScroll: 3,
        infinite: true
      }
    },
    {
      breakpoint: 768,
      settings: {
        slidesToShow: 1,
        slidesToScroll: 1
      }
    }
  ]
    });
</script>

<style>
    .slick-track {
        display: flex;
    }
    .card {
        height: 100%;;
    }
    .card-wrapper {
        padding: 1rem 0;
        height: auto;
    }
    .my-learning-path-carousel {
        margin: 0 1rem;
    }
</style>