<?= view('admin/layouts/header', ['title' => 'Tambah Service']) ?>
<?= view('admin/layouts/sidebar', [
    'activeMenu' => 'service',
    'userName'   => $userName,
    'userEmail'  => $userEmail,
]) ?>
<?= view('admin/layouts/topbar', [
    'pageTitle'    => 'Tambah Service',
    'pageSubtitle' => 'Catat pelanggan, teknisi, objek service, part, dan jasa.',
    'topbarAction' => '<a href="' . site_url('admin/service') . '" class="btn btn-outline-dark"><i class="bi bi-arrow-left me-1"></i>Kembali</a>',
]) ?>

<?= view('admin/service/form', [
    'action'            => site_url('admin/service/store'),
    'submitLabel'       => 'Simpan Service',
    'pelanggan'         => $pelanggan,
    'teknisi'           => $teknisi,
    'jasaOptions'       => $jasaOptions,
    'statusLabels'      => $statusLabels,
    'tanggalService'    => $tanggalService,
    'noTransaksi'       => $noTransaksi,
    'initialBarang'     => $initialBarang,
    'initialJasa'       => $initialJasa,
    'pajakPersen'       => $pajakPersen,
    'showInitialPayment' => $showInitialPayment ?? true,
    'lookupUrl'         => $lookupUrl,
    'datatableUrl'      => $datatableUrl,
    'generateNumberUrl' => $generateNumberUrl,
]) ?>

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