<!-- **********************************************************************************************************************************************************
    MAIN CONTENT
    *********************************************************************************************************************************************************** -->
<!--main content start-->

<?php
if ($mydata->num_rows() > 0) {
    foreach ($mydata->result() as $ka) {
        $id = $ka->id;
        $alamat = $ka->alamat;
        $nama = $ka->nama;
    }
} else {
    $id = "";
    $alamat = "";
    $nama = "";
}
?>
<section id="main-content">
    <section class="wrapper">
        <div class="row mt">
            <div class="col-lg-12">
                <div class="form-panel">
                    <h4 class="mb"><i class="fa fa-angle-right"></i> Data Reseller</h4>
                    <form class="form-horizontal style-form" method="POST" action="<?= base_url() ?>admin/menu/simpanData" enctype="multipart/form-data">
                        <input type="hidden" name="id_menu" value="<?= $id ?>">
                        <div class="form-group">
                            <label class="col-sm-2 col-sm-2 control-label">Data Reseller</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" value="<?= $nama ?>" name="menu_name">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 col-sm-2 control-label">Alamat Reseller</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" value="<?= $alamat ?>" name="menu_name">
                            </div>
                        </div>

                        <hr/>
                        <a href="<?= base_url() ?>admin/menu">
                            <button type="button" class="btn btn-default"><i class="fa fa-arrow-left"></i> Cancel</button>
                        </a>
                        <button type="submit" class="btn btn-primary pull-right"><i class="fa fa-save"></i> Save Data</button>
                    </form>
                    <div style="clear: both"></div>
                </div>
            </div>
        </div><!--row -->
    </section>
</section>
