<div class="d-flex justify-content-between align-items-center mb-4">
    <h4 class="mb-0"><i class="fas fa-handshake me-2"></i><?= lang('board.meetings') ?></h4>
    <?php if (auth_can('board.manage')): ?>
    <a href="/board/meetings/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="meetingsTable" class="table table-striped table-hover w-100"
               data-url="/board/meetings/datatable"
               data-columns='[{"data":"id","title":"#","width":"50px"},{"data":"number","title":"#Meeting"},{"data":"title","title":"Title"},{"data":"type","title":"Type"},{"data":"date","title":"Date"},{"data":"status","title":"Status"},{"data":"quorum","title":"Quorum"},{"data":"attendees","title":"Attendees"},{"data":"actions","title":"Actions","orderable":false,"searchable":false}]'>
            <thead><tr><th>#</th><th>#Meeting</th><th>Title</th><th>Type</th><th>Date</th><th>Status</th><th>Quorum</th><th>Attendees</th><th>Actions</th></tr></thead>
        </table>
    </div>
</div>
<?php $__view->push('scripts') ?>
<script>document.addEventListener('DOMContentLoaded', function(){ DataTableHelper.init('meetingsTable'); });</script>
<?php $__view->endPush() ?>