
<!-- **********************************************************************************************************************************************************
    MAIN CONTENT
    *********************************************************************************************************************************************************** -->
<!--main content start-->
<?php
if ($data_home->num_rows() == 0) {
    $id = "";
    $content = "";
} else {
    foreach ($data_home->result() as $home) {
        $id = $home->id;
        $content = $home->content;
    }
}
?>
<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> Home Content</h4>
                    <form class="form-horizontal style-form" method="post" action="<?= base_url()?>admin/home_content/simpanHomeContent">
                        <input type="hidden" name="id" value="<?= $id ?>">
                        <div class="form-group">
                            <label class="col-sm-2 col-sm-2 control-label">Home Content</label>
                            <div class="col-sm-10">
                                <textarea class="form-control" style="height: 120px" name="content"><?= $content ?></textarea>
                            </div>
                        </div>
                        <hr/>
                        <button type="submit" class="btn btn-lg btn-primary pull-right"><i class="fa fa-save"></i> Update Data</button>
                    </form>
                    <div style="clear: both"></div>
                </div>
            </div>
        </div><!--row -->
    </section>
</section>
