<?php
$relativePath = "../";
ob_start();
?>
<div class="admin-container" style="display: flex">
    <div style="margin: auto">
        <div style="display: flex" class="my-5">
            <a href="stock.php" style="margin: auto">
                <button class="btn btn-success btn-lg">Gestion du stocks</button>
            </a>
        </div>

        <div class="my-5" style="display: flex">
            <a href="articles.php" style="margin: auto" class="mx-1">
                <button class="btn btn-primary btn-lg">Créer/Éditer des articles</button>
            </a>
            <a href="categories.php" style="margin: auto" class="mx-1">
                <button class="btn btn-primary btn-lg">Créer/Éditer des catégories</button>
            </a>
        </div>

        <div style="display: flex" class="my-5">
            <button id="uploadButton" class="btn btn-warning btn-lg" style="margin: auto">Mettre l'inventaire en ligne
            </button>
        </div>
    </div>
</div>

<link type="text/css" rel="stylesheet" href="<?= $relativePath ?>assets/css/admin.css" media="screen,projection"/>

<?php
$pageContent = ob_get_clean();
$pageTitle = "Admin";
$pageScripts =
    "
    <script type=\"text/javascript\" src=\"" . $relativePath . "assets/js/jquery-confirm-defaults.js\"></script>
    <script type=\"text/javascript\" src=\"" . $relativePath . "assets/js/index.js\"></script>
    ";


include($relativePath . "includes/template.php");
?>
