<?php

use WpBookingEvent\Factory as FactoryAlias;
use WpBookingEvent\Html\WpBookingEventHtmlFrontend;
use WpBookingEvent\Language\Text;

WpBookingEventHtmlFrontend::load_jquery_library('owlcarousel2');
WpBookingEventHtmlFrontend::load_jquery_library('swiper');
$three_review = array_slice($list_review, 0, 3, false);
?>
<div id="block_review_comment" class="block_review_comment">
    <div class="title">
        <div class="title">
            <p><?php esc_attr_e('review comment', 'wpbookingevent'); ?></p>
            <h1><?php esc_attr_e('What our client says', 'wpbookingevent'); ?></h1>
        </div>
    </div>
    <div class="swiper-container">
        <div class="swiper-wrapper ">
            <div class="swiper-slide">
                <img class="image lazy" src="http://demo12.cmsmart.net/event_calendar/wp-content/plugins/wpbookingevent/frontend/app/assets/image/reviewer2.jpg">
            </div>
            <div class="swiper-slide">
                <img class="image lazy" src="http://demo12.cmsmart.net/event_calendar/wp-content/plugins/wpbookingevent/frontend/app/assets/image/reviewer1.jpg">
            </div>
            <div class="swiper-slide">
                <img class="image lazy" src="http://demo12.cmsmart.net/event_calendar/wp-content/plugins/wpbookingevent/frontend/app/assets/image/reviewer3.jpg">
            </div>

        </div>
    </div>
    <div id="owl-carousel" class="owl-carousel owl-theme">
        <?php foreach ($three_review as $item) { ?>
            <div class="wrapper-review">
                <div class="content">
                    <h3 class="name"><?php esc_html_e($item->name); ?></h3>
                    <p class="location"><?php esc_html_e($item->email) ?></p>
                </div>
                <div class="comment">
                    <i class="icon-1"></i>
                    <p><?php esc_html_e($item->comment) ?></p>
                    <i class="icon-uniE91B"></i>
                </div>
            </div>
        <?php } ?>
    </div>
</div>