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

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

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

<?= view(
    "layouts/bcr-nav",
    [
        "title" => "Delete Category",
        "controller" => "Categories",
        "links" => [
            "Back" =>  ["url" => base_url("categories/$category->CategoryID"), "auth_check" => false],
            "Categories' List" =>  ["url" => base_url("categories"), "auth_check" => false]
        ]
    ]
) ?>

<h2><?= $category->Category ?></h2>
<p>Are you sure?</p>

<?= form_open("categories/".$category->CategoryID) ?>

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

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

<a class="button" href="<?= site_url('/categories') ?>">No</a>

</form>

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

