<div class="d-flex justify-content-between align-items-center mb-4">
    <h4 class="mb-0"><i class="fas fa-gavel me-2"></i><?= lang('board.resolutions') ?></h4>
    <?php if (auth_can('board.resolutions')): ?>
    <a href="/board/resolutions/create" class="btn btn-primary"><i class="fas fa-plus me-1"></i><?= lang('common.create') ?></a>
    <?php endif; ?>
</div>
<div class="card">
    <div class="card-body">
        <table id="resolutionsTable" class="table table-striped table-hover w-100"
               data-url="/board/resolutions/datatable"
               data-columns='[{"data":"id","title":"#","width":"50px"},{"data":"number","title":"Resolution #"},{"data":"date","title":"Date"},{"data":"title","title":"Title"},{"data":"meeting","title":"Meeting"},{"data":"status","title":"Status"},{"data":"votes","title":"Votes"},{"data":"actions","title":"Actions","orderable":false,"searchable":false}]'>
            <thead><tr><th>#</th><th>Resolution #</th><th>Date</th><th>Title</th><th>Meeting</th><th>Status</th><th>Votes</th><th>Actions</th></tr></thead>
        </table>
    </div>
</div>
<?php $__view->push('scripts') ?>
<script>document.addEventListener('DOMContentLoaded', function(){ DataTableHelper.init('resolutionsTable'); });</script>
<?php $__view->endPush() ?>