<?php echo message_box('success'); ?>
<?php echo message_box('error');
$created = can_action('100', 'created');
$edited = can_action('100', 'edited');
$deleted = can_action('100', 'deleted');
?>

<div class="space-y-6">
    <div class="rounded-2xl border border-border bg-card shadow-sm">
        <div class="p-4">
            <table class="table table-striped DataTables" id="DataTables" cellspacing="0" width="100%">
                <thead>
                <tr>
                    <th><?= lang('title') ?></th>
                    <th><?= lang('created_by') ?></th>
                    <th><?= lang('start_date') ?></th>
                    <th><?= lang('end_date') ?></th>
                    <?php $show_custom_fields = custom_form_table(16, null);
                    if (!empty($show_custom_fields)) {
                        foreach ($show_custom_fields as $c_label => $v_fields) {
                            if (!empty($c_label)) {
                                ?>
                                <th><?= $c_label ?> </th>
                            <?php }
                        }
                    }
                    ?>
                    <th><?= lang('status') ?></th>
                    <th><?= lang('action') ?></th>
                </tr>
                </thead>
                <tbody>
                <script type="text/javascript">
                    $(document).ready(function () {
                        list = base_url + "admin/announcements/announcementsList";
                    });
                </script>
                </tbody>
            </table>
        </div>
    </div>
</div>
