<?= $this->extend('layouts/owner') ?>

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

<div class="card">

<div class="card-header">

<h4>Edit Supplier</h4>

</div>

<div class="card-body">

<form action="<?= base_url('owner/supplier/update/'.$supplier['id_supplier']) ?>" method="post">

<div class="mb-3">

<label>Nama Supplier</label>

<input type="text"
       name="nama_supplier"
       value="<?= esc($supplier['nama_supplier']) ?>"
       class="form-control"
       required>

</div>

<div class="mb-3">

<label>Telepon</label>

<input type="text"
       name="telepon"
       value="<?= esc($supplier['telepon']) ?>"
       class="form-control">

</div>

<div class="mb-3">

<label>Alamat</label>

<textarea name="alamat" class="form-control"><?= esc($supplier['alamat']) ?></textarea>

</div>

<button class="btn btn-primary">

Update

</button>

<a href="<?= base_url('owner/supplier') ?>" class="btn btn-secondary">

Kembali

</a>

</form>

</div>

</div>

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