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

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


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

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

<div class="round-border">

    <h1>Country</h1>

    <table>
        <tr>
            <td><b>ID</b></td>
            <td><?= $country->CountryID ?></td>
        </tr>
        <tr>
            <td><b>Country</b></td>
            <td><?= $country->Country ?></td>
        </tr>
        <tr>
            <td><b>Last updated</b></td>
            <td><?= $country->lastupdated ?></td>
        </tr>
    </table>

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

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

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