<?php

use TourOperatorPro\Factory;
use TourOperatorPro\Language\Text;
?>
<div class="block_top_activity">
    <div class="contain">
        <div id="owl-carousel" class="owl-carousel owl-theme">
            <?php foreach ($list_activity as $item) { ?>
                <div class="list-activity">
                    <div class="item">
                        <img class="image lazy" data-src="<?php echo(Factory::getRootUrlPlugin().'/'.$item->image) ?>">
                        <div class="layer-blur"></div>
                        <h2 class="name-activity">
                            <a href="<?php echo ($page_list_tour_search_result .'?activity_id='.$item->id) ?>"><?php esc_html_e($item->name); ?></a>
                        </h2>
                    </div>

                </div>
            <?php } ?>
        </div>
    </div>
</div>
<?php
$doc = Factory::getDocument();
$doc->addLessStyleSheet('frontend/blocks/block_top_activity/assets/less/block_top_activity.less');
$doc->addStyleSheet('frontend/app/assets/nb-font-icon/nb-font-icon.css');
$doc->addScriptApplySelector('.block_top_activity','block_top_activity',array(),'frontend/blocks/block_top_activity/assets/js/block_top_activity.js');
