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

<?= view('admin/pelanggan/form', [
    'action'      => site_url('admin/pelanggan/update/' . $pelanggan['id']),
    'pelanggan'   => $pelanggan,
    'submitLabel' => 'Update Pelanggan',
]) ?>

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