<?php
use frontend\widgets\Seo;
use frontend\widgets\Slider;
use yii\helpers\Html;
use yii\web\View;

?>


<!---- SLIDER FOR Main page  ------->
<div class="new-slider-wr" style="position: relative">
    <?= Slider::widget(["title"=>"HOME_SLIDER"]); ?>
<!--    <div class="new_btn-slide"></div>-->
<!--    <div class="new_btn-slide"></div>-->
    <div id="prev_slide" class="small_ar"></div>
    <div id="next_slide" class="small_ar"></div>
    <div class="arrows_centered_parent">
        <div class="arrows_slide_centered">
            <div id="prev_slide" class="big_ar"></div>
            <div id="next_slide" class="big_ar"></div>
        </div>
    </div>
</div>





<div class="clearfix"></div>

<div class="block-100 margin-bottom-40 background-body" style="margin-top: -10px;">
    <div class="container">
        <div class="slider_mp_items">
            <div class="catalog_product_list view_table">
                <div class="_prd_spec-wr">
                    <div class="special-products products">
                        <div class="row home-popular-wr">
                            <ul class="home-popular col-md-11">
                                <li class="active" ><?= Html::a("Хит продаж", ['ajax/popular'],['data-status'=>'top']) ?></li>
                                <li><?= Html::a("Новинки", ['ajax/new'],['data-status'=>'new']) ?></li>
                                <li><?= Html::a("Акции", ['ajax/event'],['data-status'=>'prom']) ?></li>

                            </ul>
                        </div>
                        <div class="row home-popular-slider">
                    <?= \common\modules\product\widgets\specialProducts::widget(['type' => 'top'])?>
                            </div>
                    </div>
                </div>
            </div>
            <div class="clearfix"></div>
        </div>
    </div>
</div>

<?php $js = "$('#product_main_slider').owlCarousel({
navigation:true,
navigationText: [],
responsiveClass: true,
            loop:true,
            items:4,
            mouseDrag:false,

            navSpeed:200,

})
";



$this->registerJs($js, View::POS_LOAD);
?>

