<div class="offcanvas offcanvas-end" id="offcanvasEditUser" aria-labelledby="offcanvasEditUserLabel">
    <div class="offcanvas-header border-bottom">
        <h5 id="offcanvasEditUserLabel" class="offcanvas-title">Edit User</h5>
        <button type="button" class="btn-close text-reset" data-bs-dismiss="offcanvas" aria-label="Close"></button>
    </div>
    
    <div class="offcanvas-body mx-0 flex-grow-0 p-6 h-100">
        <form id="editUserForm" class="pt-0">
            @csrf
            <input type="hidden" id="edit-user-id" name="id">
            
            <div class="mb-6 form-control-validation">
                <label class="form-label" for="edit-user-name">Nama Lengkap<span class="text-danger">*</span></label>
                <input type="text" class="form-control" id="edit-user-name" name="name" />
            </div>

            <div class="mb-6 form-control-validation">
                <label class="form-label" for="edit-user-email">Email<span class="text-danger">*</span></label>
                <input type="email" class="form-control" id="edit-user-email" name="email" />
            </div>

            <div class="mb-6 form-control-validation">
                <label class="form-label" for="edit-user-role">Role<span class="text-danger">*</span></label>
                <select id="edit-user-role" name="role" class="select2 form-select" data-placeholder="Pilih Role">
                    <option value="">Pilih Role</option>
                    <option value="">Pilih Role</option>
                    <option value="super_admin">Super Admin</option>
                    <option value="admin">Admin</option>
                    <option value="fasilitator">Fasilitator</option>
                    <option value="petani">Petani</option>
                </select>
            </div>

            <div class="mb-6 form-control-validation">
                <label class="form-label" for="edit-user-password">Password</label>
                <input type="password" class="form-control" id="edit-user-password" name="password" placeholder="Kosongkan jika tidak ingin ganti password" />
            </div>

            <div class="mt-8">
                <button type="submit" class="btn btn-primary me-3">Update Data</button>
                <button type="reset" class="btn btn-label-danger" data-bs-dismiss="offcanvas">Cancel</button>
            </div>
        </form>
    </div>
</div>