<?= view('admin/layouts/header', ['title' => 'Tambah Barang']) ?>
<?= view('admin/layouts/sidebar', [
    'activeMenu' => 'barang',
    'userName'   => $userName,
    'userEmail'  => $userEmail,
]) ?>
<?= view('admin/layouts/topbar', [
    'pageTitle'    => 'Tambah Barang',
    'pageSubtitle' => 'Isi 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/store'),
    'kategori'    => $kategori,
    'kodeBarang'  => $kodeBarang,
    'submitLabel' => 'Simpan Barang',
]) ?>

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