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

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


<?= $this->section("content") ?>
<style>
    :root {
        /*
            --background-body: #202b38;
            --background: #161f27;
            --background-alt: #1a242f;
            */
        /*
            --background-body: #202b38;
            */
        --background: --background-body;
        /*
            --background-alt: #1a242f;
            */
    }
</style>

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

<div class="round-border">



    <h1>Input Type</h1>

    <table>
        <tr>
            <td><b>ID</b></td>
            <td><?= $inputtype->InputTypeID ?></td>
        </tr>
        <tr>
            <td><b>Input Type</b></td>
            <td><?= $inputtype->InputType ?></td>
        </tr>
        <tr>
            <td><b>Display Order</b></td>
            <td><?= $inputtype->DisplayOrder ?></td>
        </tr>
        <tr>
            <td><b>Is Coffee</b></td>
            <td><?= $inputtype->IsCoffee == 1 ? 'Y' : 'N' ?></td>
        </tr>
        <tr>
            <td><b>Last updated</b></td>
            <td><?= $inputtype->lastupdated ?></td>
        </tr>
    </table>

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

</div>


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

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