@if (!defined('LOAD_SLICKJS'))
    @push('css')
        <link rel="stylesheet" type="text/css" href="{{ asset('/assets/plugins/slick/slick.css') }}" />
        <link rel="stylesheet" type="text/css" href="{{ asset('/assets/plugins/slick/slick-theme.css') }}" />
    @endpush
    @push('scripts')
        <script type="text/javascript" src="{{ asset('/assets/plugins/slick/slick.min.js') }}"></script>
        <script>
            function initSlick(sel = '.slider') {
                return $(sel).slick({
                    lazyLoad: 'ondemand',
                    slidesToShow: 5,
                    slidesToScroll: 1,
                    dots: false,
                    autoplay: true,
                    autoplaySpeed: 5000
                });
            }
        </script>
    @endpush
    @php(define('LOAD_SLICKJS', true))
@endif
