for ($i = 1; $i <= $item_1['level']; $i++) {
            echo "<span style='color: transparent;'>&nbsp;&nbsp;&nbsp;&nbsp;</span>";
        }
        echo "<a href='" . $_SERVER['PHP_SELF'] . "?step=1&upline=" . $item_1['id'] . "&level=" . $item_1['level'] . "'>" . $icon . "&nbsp;" . $item_1['nama'] . "</a>";
        ?>
                        </td>
                        <td><?php 
        echo $item_1['tipe'];
        ?>
</td>
                        <td><?php 
        echo $item_1['link'];
        ?>
</td> 
                        <td><?php 
        echo $custom->show_group_id($item_1['user_group_id']);
        ?>
</td>
                        <td><?php 
        echo $form->active($item_1['aktif']);
        ?>
</td>
                    </tr>
                    <?php 
    }
    // End Level 1
    ?>
                </table><br>
                <?php 
} else {
    ?>
    for ($i = 1; $i <= $item_1['level']; $i++) {
        echo "<span>&nbsp;&nbsp;&nbsp;&nbsp;</span>";
    }
    echo "<a href='update.php?id=" . $item_1['id'] . "'>" . $icon . "&nbsp;" . $item_1['nama'] . "</a>";
    ?>
                            </td>
                            <td><?php 
    echo $item_1['tipe'];
    ?>
</td>
                            <td><?php 
    echo $item_1['link'];
    ?>
</td> 
                            <td><?php 
    echo $custom->show_group_id($item_1['user_group_id']);
    ?>
</td>
                            <td align="center"><?php 
    echo $custom->show_aktif($item_1['aktif']);
    ?>
</td>
                        </tr>
                            <?php 
    // Start Level 2
    $sql_2 = "SELECT * FROM menu WHERE upline='" . $item_1['id'] . "' ORDER BY upline, urut, id";
    $items_2 = $database->fetch_array($sql_2);
    foreach ($items_2 as $item_2) {
        if ($item_2['icon']) {
            $icon = "<i class='" . $item_2['icon'] . "'></i>";
        } else {