<?php defined('BASEPATH') or exit('No direct script access allowed'); ?>
<?php init_head(); ?>
<div id="wrapper">
    <div class="content">
        <div class="row">
            <div class="col-md-12">
                <div class="tw-mb-3">
                    <h4 class="tw-my-0 tw-font-bold tw-text-xl"><?php echo _l('products'); ?></h4>
                </div>
            </div>
        </div>
        <div class="_buttons tw-mb-2 tw-flex tw-items-center tw-gap-x-6">
            <a href="<?php echo admin_url('products/product'); ?>" class="btn btn-primary pull-left">
                <i class="fa-regular fa-plus tw-mr-1"></i>
                <?= _l('new_product'); ?>
            </a>
        </div>
        <div class="clearfix"></div>
        
        <div class="panel-table-full">

            <div class="panel_s">
                <div class="panel-body">

                    <?php render_datatable([
                        _l('name'),
                        _l('price'),
                        _l('professional'),
                        _l('options'),
                    ], 'products'); ?>

                </div>
            </div>
        </div>
    </div>
</div>
<?php init_tail(); ?>
<script>
$(function() {
    initDataTable('.table-products', window.location.href, [3], [3]);
});
</script>
</body>
</html>