<?php
$datatable = true;
echo message_box('success');
echo message_box('error');
$created = can_action('4', 'created');
$deleted = can_action('4', '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('warehouse') . ' ' . lang('code') ?></th>
						<th class="py-2 px-3"><?= lang('warehouse') . ' ' . lang('name') ?></th>
						<th class="py-2 px-3"><?= lang('phone') ?></th>
						<th class="py-2 px-3"><?= lang('mobile') ?></th>
						<th class="py-2 px-3"><?= lang('email') ?></th>
						<th class="py-2 px-3"><?= lang('address') ?></th>
						<?php if (!empty($edited) || !empty($deleted)) { ?>
							<th class="py-2 px-3 text-right"><?= lang('action') ?></th>
						<?php } ?>
					</tr>
				</thead>
				<tbody>
				</tbody>
			</table>
		</div>
	</div>
</div>

<script type="text/javascript">
	list = base_url + "admin/warehouse/warehouseList";
</script>
