<?php
require_once '../includes/auth.php';
require_once '../includes/functions.php';

require_login('customs');
$page_title = 'Dashboard Customs - ANATL Portal';
?>
<!DOCTYPE html>
<html lang="id">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title><?= $page_title ?></title>
    <link rel="stylesheet" href="<?= BASE_URL ?>/assets/css/style.css">
</head>
<body>
<?php require '../includes/header.php'; ?>

<div class="main">
    <div class="portal">
        <div class="portal__sidebar">
            <div class="sidebar__title">Menu Customs</div>
            <a href="<?= BASE_URL ?>/customs/index.php" class="sidebar-item sidebar-item--active">📊 Dashboard</a>
            <a href="<?= BASE_URL ?>/customs/visa.php" class="sidebar-item">📋 Visa</a>
            <a href="<?= BASE_URL ?>/customs/barang.php" class="sidebar-item">📦 Barang Bawaan</a>
            <a href="<?= BASE_URL ?>/customs/deklarasi.php" class="sidebar-item">📝 Deklarasi</a>
        </div>

        <div class="portal__content">
            <h1 style="color: #003A70; margin-bottom: 32px;">Dashboard Customs</h1>

            <div class="card">
                <div class="card__header">
                    <div class="card__title">Content Management</div>
                </div>
                <div class="grid grid--2">
                    <a href="<?= BASE_URL ?>/customs/visa.php" class="btn btn--primary">Edit Visa</a>
                    <a href="<?= BASE_URL ?>/customs/barang.php" class="btn btn--primary">Edit Barang</a>
                    <a href="<?= BASE_URL ?>/customs/deklarasi.php" class="btn btn--secondary">Manage Deklarasi</a>
                </div>
            </div>
        </div>
    </div>
</div>

<?php require '../includes/footer.php'; ?>
