<?php
$doc = Factory::getDocument();
WpBookingPro_Html::_('jquery.icheck');
$doc->addScript('resources/js/twbs-pagination/jquery.twbsPagination.js');
$doc->addScript('admin/nb_apps/nb_woobooking/assets/js/view_list_finance.js');
$doc->addLessStyleSheet('admin/nb_apps/nb_woobooking/assets/less/view_list_finance.less');
?>
<div class="view-list-finance">
    <div class="toolbar">
        <div class="row">
            <div class="col-md-3"><h3><?php esc_attr_e('List finance','wpbookingpro') ?></h3></div>
            <div class="col-md-9">
                <div class="pull-right">
                    <button class="btn btn-primary btn-add-new"><i class="fas fa-plus-square"></i><span><?php esc_attr_e('Add new','wpbookingpro') ?></span>
                    </button>
                    <button class="btn btn-primary btn-delete"><i class="fas fa-trash-alt"></i><span><?php esc_attr_e('Delete','wpbookingpro') ?></span>
                    </button>
                </div>
            </div>
        </div>
    </div>
    <div>
        <table class="table table-bordered tab-content table-striped table-hover list-finance main-table table-responsive">
            <thead>
            <tr>
                <th class="nowrap"><input type="checkbox" class="checked-all" /></th>
                <th class="nowrap"><?php esc_attr_e('Payment date','wpbookingpro') ?></th>
                <th class="nowrap"><?php esc_attr_e('Customer','wpbookingpro') ?></th>
                <th class="nowrap"><?php esc_attr_e('Employee','wpbookingpro') ?></th>
                <th class="nowrap"><?php esc_attr_e('Service event','wpbookingpro') ?></th>
                <th class="nowrap"><?php esc_attr_e('Status','wpbookingpro') ?></th>
                <th class="nowrap"></th>
                <th class="nowrap"></th>
            </tr>
            </thead>
            <tbody>
            <?php foreach ($this->list as $item) { ?>
                <?php $this->item = $item ?>
                <?php $this->loadTemplate('list_item') ?>
            <?php } ?>
            </tbody>
        </table>
    </div>
</div>