<!-- **********************************************************************************************************************************************************
    MAIN CONTENT
    *********************************************************************************************************************************************************** -->
<!--main content start-->
<section id="main-content">
    <section class="wrapper">

        <div class="row">
            <div class="col-lg-9 main-chart">

                <div class="row mt">
                    <?php if ($this->session->flashdata('message_red_password')) {
                        ?>

                        <div class="alert alert-danger alert-dismissable">
                            <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
                            <?php
                            echo "<center><i>" . $this->session->flashdata('message_red_password') . "</i></center>";
                            ?>
                        </div>
                        <?php
                    } else if ($this->session->flashdata('message_green_password')) {
                        ?>

                        <div class="alert alert-success alert-dismissable">
                            <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
                            <?php
                            echo "<center><i>" . $this->session->flashdata('message_green_password') . "</i></center>";
                            ?>
                        </div>
                    <?php } ?>
                    <!--CUSTOM CHART START -->
                    <div class="border-head">
                        <h3>NEW ORDER</h3>
                    </div>
                    <div class="custom-bar-chart">
                        <ul class="y-axis">
                            <li><span>10.000</span></li>
                            <li><span>8.000</span></li>
                            <li><span>6.000</span></li>
                            <li><span>4.000</span></li>
                            <li><span>2.000</span></li>
                            <li><span>0</span></li>
                        </ul>
                        <div class="bar">
                            <div class="title">JAN</div>
                            <div class="value tooltips" data-original-title="8.500" data-toggle="tooltip" data-placement="top">85%</div>
                        </div>
                        <div class="bar ">
                            <div class="title">FEB</div>
                            <div class="value tooltips" data-original-title="5.000" data-toggle="tooltip" data-placement="top">50%</div>
                        </div>
                        <div class="bar ">
                            <div class="title">MAR</div>
                            <div class="value tooltips" data-original-title="6.000" data-toggle="tooltip" data-placement="top">60%</div>
                        </div>
                        <div class="bar ">
                            <div class="title">APR</div>
                            <div class="value tooltips" data-original-title="4.500" data-toggle="tooltip" data-placement="top">45%</div>
                        </div>
                        <div class="bar">
                            <div class="title">MAY</div>
                            <div class="value tooltips" data-original-title="3.200" data-toggle="tooltip" data-placement="top">32%</div>
                        </div>
                        <div class="bar ">
                            <div class="title">JUN</div>
                            <div class="value tooltips" data-original-title="6.200" data-toggle="tooltip" data-placement="top">62%</div>
                        </div>
                        <div class="bar">
                            <div class="title">JUL</div>
                            <div class="value tooltips" data-original-title="7.500" data-toggle="tooltip" data-placement="top">75%</div>
                        </div>
                    </div>
                    <!--custom chart end-->
                </div><!-- /row -->	

            </div><!-- /col-lg-9 END SECTION MIDDLE -->


            <!-- **********************************************************************************************************************************************************
            RIGHT SIDEBAR CONTENT
            *********************************************************************************************************************************************************** -->                  

            <div class="col-lg-3 ds">
                <!--COMPLETED ACTIONS DONUTS CHART-->
                <h3>
                    <a href="<?php echo base_url() ?>admin/testimony">TESTIMONY</a>
                </h3>

                <!-- First Action -->
                <?php
                $q_testi = "select * from contact limit 5";
                $exc = $this->db->query($q_testi);
                if ($exc->num_rows() > 0) {
                    foreach ($exc->result() as $ts) {
                        ?>
                        <div class="desc">
                            <div class="thumb">
                                <span class="badge bg-theme"><i class="fa fa-clock-o"></i></span>
                            </div>
                            <div class="details">
                                <p><muted><?php echo DateToIndo($ts->tanggal) ?></muted><br/>
                                <a href="#"><?php echo $ts->name ?></a> <?php echo substr($ts->message, 0, 50) ?>.<br/>
                                </p>
                            </div>
                        </div>

                        <?php
                    }
                } else {
                    echo "Testimony anda masih kosong";
                }
                ?>



            </div><!-- /col-lg-3 -->
        </div><! --/row -->
    </section>
</section>
