<?= view('admin/layouts/header', ['title' => 'Tambah Pembelian']) ?>
<?= view('admin/layouts/sidebar', [
    'activeMenu' => 'pembelian',
    'userName'   => $userName,
    'userEmail'  => $userEmail,
]) ?>
<?= view('admin/layouts/topbar', [
    'pageTitle'    => 'Tambah Pembelian',
    'pageSubtitle' => 'Input transaksi pembelian barang dari supplier.',
    'topbarAction' => '<a href="' . site_url('admin/pembelian') . '" class="btn btn-outline-dark"><i class="bi bi-arrow-left me-1"></i>Kembali</a>',
]) ?>

<?= view('admin/pembelian/form', [
    'action'            => site_url('admin/pembelian/store'),
    'suplier'           => $suplier,
    'tanggalPembelian'      => $tanggalPembelian,
    'noTransaksi'       => $noTransaksi,
    'initialItems'      => $initialItems,
    'initialPayment'    => 0,
    'submitLabel'       => 'Simpan Pembelian',
    'lookupUrl'         => site_url('admin/pembelian/barang/lookup'),
    'datatableUrl'      => site_url('admin/pembelian/barang/datatable'),
    'generateNumberUrl' => site_url('admin/pembelian/generate-number'),
]) ?>

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