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

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

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

<?= view(
    "layouts/bcr-nav",
    [
        "title" => "Delete Country",
        "controller" => "Countries",
        "links" => [
            "Back" =>  ["url" => base_url("countries/$country->CountryID"), "auth_check" => false],
            "Countries' List" =>  ["url" => base_url("countries"), "auth_check" => false]
        ]
    ]
) ?>

<h2><?= $country->Country ?></h2>
<p>Are you sure?</p>

<?= form_open("countries/".$country->CountryID) ?>

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

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

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

</form>

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

