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

?>
<div class="space-y-4">
	<div class="rounded-2xl border border-border bg-card shadow-sm">
		<div class="p-6 space-y-4">
			<table class="w-full text-left text-sm DataTables" id="DataTables" width="100%">
				<thead class="text-xs uppercase text-muted-foreground">
					<tr>
						<?php if (!empty($deleted)) : ?>
							<th class="w-10"><input type="checkbox" id="select_all"></th>
						<?php endif; ?>

						<th class="py-2 px-3"><?= lang('employee_name') ?></th>
						<th class="py-2 px-3"><?= lang('designations') ?></th>
						<th class="py-2 px-3"><?= lang('promotion_title') ?></th>
						<th class="py-2 px-3"><?= lang('promotion_date') ?></th>
						<th class="py-2 px-3"><?= lang('action') ?></th>
					</tr>
				</thead>
				<tbody>
				</tbody>
			</table>
		</div>
	</div>
</div>

<script type="text/javascript">
	list = base_url + "admin/promotion/promotionList";
</script>
