<?php
/**
 * @var $images array
 */
if (!empty($images)) {
    /** @var WP_Post $image */
    ?>
    <div class="swiper-container">
        <div class="swiper-wrapper">
            <?php
            foreach ($images as $image) {
                echo "<div class=\"swiper-slide\"><img src=\"" . wp_get_attachment_image_url($image->ID, 'lot-thumbnail-min') . "\" alt=''></div>";
            }
            ?>
        </div>
        <div class="swiper-pagination"></div>
        <div class="swiper-button-prev"></div>
        <div class="swiper-button-next"></div>
        <div class="swiper-scrollbar"></div>
    </div>
    <?php
}
