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

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


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

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

<div class="round-border">

    <h1>Process</h1>

    <table>
        <tr>
            <td><b>ID</b></td>
            <td><?= $process->ProcessID ?></td>
        </tr>
        <tr>
            <td><b>Process</b></td>
            <td><?= $process->Process ?></td>
        </tr>
        <tr>
            <td><b>Last updated</b></td>
            <td><?= $process->lastupdated ?></td>
        </tr>
    </table>

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

</div>

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

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