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

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

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

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

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

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

    <?= $this->include("Categories/form") ?>

    </form>

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

