<!-- **********************************************************************************************************************************************************
    MAIN CONTENT
    *********************************************************************************************************************************************************** -->
<!--main content start-->
<?php
foreach($data_websetting as $set){
    $id= $set->id;
    $web_title = $set->title;
    $meta_text = $set->meta_text;
    $meta_desc = $set->meta_desc;
    $meta_keyword = $set->meta_keyword;
    $author = $set->author;
    $email = $set->email;
    $address = $set->alamat;
    $no_telp = $set->no_telp;
    $wa = $set->whatsapp;
    $bb = $set->pin_bb;
    $fb = $set->facebook;
    $tw = $set->twitter;
    $ytb = $set->youtube;
    $gpu = $set->google_plus;
    $rp1 = $set->rekening_perusahaan1;
    $rp2 = $set->rekening_perusahaan2;
    $rp3 = $set->rekening_perusahaan3;
}
?>
<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> Web Setting</h4>
                    <form class="form-horizontal style-form" method="POST" action="<?= base_url()?>admin/websetting/updateData">
                        <input type="hidden" name="id" value="<?= $id ?>">
                        <div class="form-group">
                            <label class="col-sm-2 col-sm-2 control-label">Web Title</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" value="<?= $web_title ?>" name="web_title">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 col-sm-2 control-label">Meta Text</label>
                            <div class="col-sm-10">
                                <textarea name="meta_text" class="form-control"><?= $meta_text ?></textarea>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 col-sm-2 control-label">Meta Desc</label>
                            <div class="col-sm-10">
                                <textarea name="meta_desc" class="form-control"><?= $meta_desc ?></textarea>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 col-sm-2 control-label">Meta Keyword</label>
                            <div class="col-sm-10">
                                <textarea name="meta_key" class="form-control"><?= $meta_keyword ?></textarea>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 col-sm-2 control-label">Author</label>
                            <div class="col-sm-10">
                                <input disabled type="text" class="form-control" value="<?= $author ?>" name="author">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 col-sm-2 control-label">Email</label>
                            <div class="col-sm-10">
                                <input type="email" class="form-control" value="<?= $email ?>" name="email">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 col-sm-2 control-label">Address</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" value="<?= $address ?>" name="alamat">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 col-sm-2 control-label">No Telp</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" value="<?= $no_telp ?>" name="no_telp">
                            </div>
                        </div>
                        
                        <div class="form-group">
                            <label class="col-sm-2 col-sm-2 control-label">Whatsapp</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" value="<?= $wa ?>" name="whatsapp">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 col-sm-2 control-label">Pin BB</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" value="<?= $bb ?>" name="pin_bb">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 col-sm-2 control-label">Facebook</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" value="<?= $fb ?>" name="facebook">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 col-sm-2 control-label">Twitter</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" value="<?= $tw ?>" name="twitter">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 col-sm-2 control-label">Youtube</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" value="<?= $ytb ?>" name="youtube">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 col-sm-2 control-label">Rek. Perusahaan 1</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" value="<?= $rp1 ?>" name="rek1">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 col-sm-2 control-label">Rek. Perusahaan 2</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" value="<?= $rp2 ?>" name="rek2">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 col-sm-2 control-label">Rek. Perusahaan 3</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" value="<?= $rp3 ?>" name="rek3">
                            </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>
