<?php

use WpBookingPro\Factory as FactoryAlias;
use WpBookingPro\Html\ToolBar;
use WpBookingPro\Utilities\Utility as UtilityAlias;

$doc = FactoryAlias::getDocument();
ToolBar::setTitle("List package");
?>
<?php ?>
    <form action="<?php echo(UtilityAlias::getBackendGoToLink("package.form")) ?>" name="admin-form" method="post">
        <div class="view-list-package">
            <table id="example" class="display table">
                <thead>
                    <tr>
                        <th class="nowrap"></th>
                        <th class="nowrap"><?php esc_html_e('Name','wpbookingpro') ?> </th>
                        <th class="nowrap"><?php esc_html_e('Event','wpbookingpro') ?> </th>
                        <th ><?php esc_html_e('Access','wpbookingpro')?></th>
                        <th class="nowrap"></th>
                    </tr>
                </thead>
                <tbody>
                    <?php $i = 0; ?>
                    <?php foreach ($this->list as $item) { ?>
                        <?php
                            $item->index = $i;
                            $this->item = $item;
                            $this->loadTemplate('list_item');
                            $i++;
                        ?>
                    <?php } ?>
                </tbody>
            </table>
        </div>
        <input type="hidden" name="task" value="">
    </form>