<?php
$open_source=Factory::getOpenSource();
$list_page = $open_source->get_list_layout_view_frontend();
?>
<div class="view-list-frontend-page">
    <h2><?php esc_attr_e('List page in frontend','wpbookingpro') ?></h2>
    <ul>
        <?php foreach ($list_page as $key=> $page) { ?>
            <li>
                <a class="btn btn-link" target="_blank" href="<?php esc_html_e(Factory::getRootUrl())  ?>wp-booking-pro/?page=<?php esc_html_e($key) ?> ">
                    <?php  esc_html_e($page['title']) ?></a></li>
        <?php } ?>
    </ul>
</div>