<?php
use WooBooking\CMS\Utilities\Utility;
WpBookingPro_HtmlFrontend::_('jquery.fancybox');
$doc = Factory::getDocument();
$doc->addLessStyleSheet('blocks/block_galleryblock/assets/lesss/default.less');
$list_gallery_image=array_slice($list_gallery_image,0,9);
?>
    <div class="block-galleryimage-default">
        <div class="row">
            <?php foreach ($list_gallery_image as $item){ ?>
                <div class="col-sm-6 col-md-4">
                    <div class="wrapper-gallery-item">
                        <div class="img-box-service">
                            <div>
                                <img  class="gallery-image" src="<?php echo Factory::getRootUrlPlugin() ?>/<?php esc_html_e($item->image);?>" alt="gallery-image" />
                            </div>
                        </div>
                        <div class="layer-grey"></div>
                        <div class="layer-content">
                            <h3><a href="<?php esc_html_e($this->frontendGoToLink("service.detail",
                                    "service_id=" . $item->id)) ?>"><?php esc_html_e($item->name);?></a></h3>
                            <div class="description">
                                <p><?php esc_html_e($item->description);?></p>
                            </div>
                        </div>
                    </div>
                </div>
            <?php } ?>
        </div>
    </div>

<?php
$doc->addScriptApplySelector('.block-meetourgallery_image-default','block_gallery_default',array(
),'blocks/block_galleryblock/assets/js/jquery.block_gallery_default.js');