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

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

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

<?= view(
    "layouts/bcr-nav",
    [
        "title" => "Delete Supplier",
        "controller" => "Suppliers",
        "links" => [
            "Back" =>  ["url" => base_url("suppliers/$supplier->SupplierID"), "auth_check" => false],
            "Suppliers' List" =>  ["url" => base_url("suppliers"), "auth_check" => false]
        ]
    ]
) ?>

<h2><?= $supplier->Supplier ?></h2>
<p>Are you sure?</p>

<?= form_open("suppliers/".$supplier->SupplierID) ?>

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

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

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

</form>

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

