<div class="d-flex justify-content-between align-items-center mb-3">
    <h5 class="mb-0"><?= lang('adv_finance.deposits') ?></h5>
    <?php if(auth_can('gl.manage')): ?><a href="/advanced-finance/deposits/create" class="btn btn-primary btn-sm"><i class="fas fa-plus me-1"></i><?= lang('common.create') ?></a><?php endif; ?>
</div>
<div class="card"><div class="card-body">
    <table id="dep-table" class="table table-striped w-100" data-url="/advanced-finance/deposits/datatable"
           data-columns='[{"data":"deposit_number","title":"Deposit #"},{"data":"bank_name","title":"Bank"},{"data":"deposit_date","title":"Date"},{"data":"total_amount","title":"Total"},{"data":"cash_amount","title":"Cash"},{"data":"check_amount","title":"Checks"},{"data":"status_badge","title":"Status","orderable":false},{"data":"id","title":"Actions","orderable":false,"searchable":false}]'>
        <thead><tr><th>Deposit #</th><th>Bank</th><th>Date</th><th>Total</th><th>Cash</th><th>Checks</th><th>Status</th><th>Actions</th></tr></thead>
    </table>
</div></div>
<?php $__view->push('scripts') ?><script>document.addEventListener('DOMContentLoaded',function(){DataTableHelper.init('dep-table',{columnDefs:[{targets:-1,render:function(d){return '<a href="/advanced-finance/deposits/'+d+'" class="btn btn-sm btn-outline-primary"><i class="fas fa-eye"></i></a>';}}]});});</script><?php $__view->endPush() ?>