<?php

use WooBooking\CMS\Registry\Registry;
use WooBooking\CMS\Utilities\Utility;

$doc = Factory::getDocument();
$doc->addLessStyleSheet('nb_apps/nb_woobooking/assets/less/view_list_block.less');
$i = 1;
?>
<div class="view-list-block">
    <?php foreach ($this->items as $key=> $item) { ?>
        <?php

        $item=(object)$item;
        $item->type=$key;
        $item->params=new Registry();

        ?>
    <div class="row">

            <div class="col-md-12">
                <div class="wrapper-block-item">
                    <h2><?php echo($i.'. '.$item->title) ?></h2>
                    <div class="short-code"></div>
                    <?php
                    $this->item=$item;
                    ?>
                    <?php  echo($this->loadTemplate('preview')) ?>
                </div>
            </div>

    </div>

    <?php
        $i++;
    } ?>
</div>