<?php
$doc = Factory::getDocument();
$doc->addLessStyleSheet('nb_apps/nb_woobooking/assets/less/view_list_home_page_category.less');
?>
<div class="view-list-home-page-category">
    <div class="row">
		<?php foreach ($this->list as $item) { ?>
			<?php
			$list_service = $item->list_service;
			$a_list_service = array_slice($list_service, 0, 3);
			?>
            <div class="col-hp-md-2">
                <div class="wrapper-category-item">
                    <div class="mark">
                    </div>
                    <h3 class="category-title"><a href="<?php esc_html_e($this->goToLink("service.list", "category_id=" . $item->id)) ?>"><?php esc_html_e($item->name) ?></a></h3>
                    <img class="category-image" src="<?php esc_html_e(Factory::getRootUrlPlugin()) ?>/<?php esc_html_e($item->image) ?>" alt="category-image" />
                </div>
            </div>
		<?php } ?>
    </div>
</div>