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

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

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

<?= view(
    "layouts/bcr-nav",
    [
        "title" => "Delete Recipe",
        "controller" => "Recipes",
        "links" => [
            "Back" =>  ["url" => base_url("recipes/$recipe->RecipeID"), "auth_check" => false],
            "Recipes' List" =>  ["url" => base_url("recipes"), "auth_check" => false]
        ]
    ]
) ?>


<h2><?= $recipe->Recipe ?></h2>
<p>Are you sure?</p>

<?= form_open("recipes/".$recipe->RecipeID) ?>

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

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

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

</form>

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

