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

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

<?= $this->section("content") ?>

<?= view(
    "layouts/bcr-nav",
    [
        "title" => "Delete User",
        "controller" => "Users",
        "links" => [
            "Back" =>  ["url" => base_url("users/$user->id"), "auth_check" => false],
            "Users' List" =>  ["url" => base_url("users"), "auth_check" => false]
        ]
    ]
) ?>

<h1>Delete User</h1>

<h2><?= $user->username ?></h2>
<p>Are you sure?</p>

<?= form_open("users/".$user->id) ?>

<input type="hidden" name="_method" value="DELETE">

<button style="background-color: red;">Yes</button>

<a href="<?= site_url('/users') ?>"><button type="button" default >No</button></a>

</form>

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

