<div class="resp-tabs-container tab_identifier_parent no-padding">
    <div>
        <div class="client-contact-wrapper" id="profile-fields">
            <div class="cm-holder settings-wrapper dt-info">
                <div class="head d-flex align-items-center flex-wrap gap-3">
                </div>
                <div class="dt-wrapper pull-top">
                    <div class="table-responsive">
                        <table id="table-list" class="display" style="width:100%">
                            <thead>
                                <tr>
                                    <th class=""><?php echo $this->user->lang('Date'); ?></th>
                                    <th class=""><?php echo $this->user->lang('Invoice'); ?></th>
                                    <th class=""><?php echo $this->user->lang('Transaction Id'); ?></th>
                                    <th class=""><?php echo $this->user->lang('Amount'); ?></th>
                                    <th class=""><?php echo $this->user->lang('Result'); ?></th>
                                    <th class=""><?php echo $this->user->lang('Action'); ?></th>
                                    <th class=""><?php echo $this->user->lang('Plugin'); ?></th>

                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="table-actions">
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<script>
    $(document).ready(function() {
        var ajaxUrl = 'index.php?fuse=admin&action=doplugin&controller=plugin&type=snapin&plugin=cetransactions&pluginaction=getTransactions';
        var table = $('#table-list').DataTable({
            "searching": false,
            "ajax": {
                url: ajaxUrl,
                dataSrc: 'data',
                data: function(d) {
                    d.sort = 'id';
                    d.dir = 'asc';
                    d.userid = clientexec.customerId;
                }
            },
            "columns": [
                {
                    "data": "date",
                },
                {
                    "data": "invoiceid",
                },
                {
                    "data": "transactionid",
                },
                {
                    "data": "amount",
                },
                {
                    "data": "result",
                },
                {
                    "data": "action",
                },
                {
                    "data": "plugin",
                },
            ]
            ,
            "order": [[1, 'asc']]
        });
    });
</script>