<?= message_box('success'); ?>
<?= message_box('error');
$created = can_action('95', 'created');
$edited = can_action('95', 'edited');
$deleted = can_action('95', 'deleted');
?>
<div class="space-y-4">
	<div class="rounded-2xl border border-border bg-card shadow-sm">
		<div class="p-5">
			<table class="table table-striped DataTables" id="DataTables" cellspacing="0" width="100%">
				<thead>
					<tr>
						<?php if (!empty($deleted)) : ?>
							<th data-orderable="false">
								<div class="checkbox c-checkbox">
									<label class="needsclick">
										<input id="select_all" type="checkbox">
										</label>
								</div>
							</th>
						<?php endif; ?>
						<th class="col-sm-1"><?= lang('sl') ?></th>
						<th><?= lang('hourly_grade') ?></th>
						<th><?= lang('hourly_rates') ?></th>
						<?php if (!empty($edited) || !empty($deleted)) { ?>
							<th class="col-sm-2"><?= lang('action') ?></th>
						<?php } ?>
					</tr>
				</thead>
				<tbody>
					<script type="text/javascript">
						$(document).ready(function() {
							list = base_url + "admin/payroll/hourly_rateList";
						});
					</script>
				</tbody>
			</table>
		</div>
	</div>
</div>
