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

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

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

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

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

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

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

</form>

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