<?= $this->extend("layouts/default") ?>

<?= $this->section("title") ?>Supplier<?= $this->endSection() ?>


<?= $this->section("content") ?>
<style>
    :root {
        --background: --background-body;
    }
</style>

<?= view(
    "layouts/bcr-nav",
    [
        "title" => "Suppliers",
        "controller" => "Suppliers",
        "links" => [
            "Back" =>  ["url" => url_to("Suppliers::index"), "auth_check" => true]
        ]
    ]
) ?>

<div class="round-border">

    <h1>Supplier</h1>

    <table>
        <tr>
            <td><b>ID</b></td>
            <td><?= $supplier->SupplierID ?></td>
        </tr>
        <tr>
            <td><b>Supplier</b></td>
            <td><?= $supplier->Supplier ?></td>
        </tr>
        <tr>
            <td><b>Last updated</b></td>
            <td><?= $supplier->lastupdated ?></td>
        </tr>
    </table>
    <p />

    <?= view("layouts/deletebtninputs", ["controller" => "Suppliers", 'id' => (string)$supplier->SupplierID, "urltodelete" => "Suppliers::confirmDelete", "urltoedit" => "Suppliers::edit"]) ?>

</div>

<?= $this->include("layouts/usedbyinputs") ?>

<?= $this->endSection() ?>