<?= view('admin/layouts/header', ['title' => 'Edit Barang']) ?>
<?= view('admin/layouts/sidebar', [
    'activeMenu' => 'barang',
    'userName'   => $userName,
    'userEmail'  => $userEmail,
]) ?>
<?= view('admin/layouts/topbar', [
    'pageTitle'    => 'Edit Barang',
    'pageSubtitle' => 'Perbarui master data barang inventaris.',
    'topbarAction' => '<a href="' . site_url('admin/barang') . '" class="btn btn-outline-dark"><i class="bi bi-arrow-left me-1"></i>Kembali</a>',
]) ?>

<?= view('admin/barang/form', [
    'action'      => site_url('admin/barang/update/' . $barang['id']),
    'barang'      => $barang,
    'kategori'    => $kategori,
    'disableStokAwal' => $disableStokAwal ?? false,
    'submitLabel' => 'Update Barang',
]) ?>

<?= view('admin/layouts/footer') ?>
