<?= view('admin/layouts/header', ['title' => 'Edit Service']) ?>
<?= view('admin/layouts/sidebar', [
    'activeMenu' => 'service',
    'userName'   => $userName,
    'userEmail'  => $userEmail,
]) ?>
<?= view('admin/layouts/topbar', [
    'pageTitle'    => 'Edit Service',
    'pageSubtitle' => 'Perbarui status, data 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/update/' . $transaksi['id']),
    'transaksi'         => $transaksi,
    'submitLabel'       => 'Update Service',
    'pelanggan'         => $pelanggan,
    'teknisi'           => $teknisi,
    'jasaOptions'       => $jasaOptions,
    'statusLabels'      => $statusLabels,
    'tanggalService'    => $tanggalService,
    'initialBarang'     => $initialBarang,
    'initialJasa'       => $initialJasa,
    'pajakPersen'       => $pajakPersen,
    'totalDibayar'      => $totalDibayar ?? 0,
    'showInitialPayment' => $showInitialPayment ?? false,
    'lookupUrl'         => $lookupUrl,
    'datatableUrl'      => $datatableUrl,
    'generateNumberUrl' => $generateNumberUrl,
]) ?>

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