<div class="col-md-12 banner">
    <h1>UPDATE YOUR INFORMATION</h1>
    <h4 style="color:#fff;">Let us be your bridge to the new proven solution. We always believe to do the right thing from the beginning.</h4>
</div>
<!--<div class="arrow-down"></div>-->

<div class="col-md-12 content-box">
    <div class="container-fluid">
        <div class="col-md-12">
            <h3 class="title">&nbsp;<?php echo $category;?>&nbsp;</h3>
        </div>
        <?php
        if(!empty($news)){
            $currentMonthYear = "";
            foreach($news as $key=>$value){
                $temp = explode("-",$value->created_date);
                $month = $temp[1];
                $year = $temp[0];
                $monthYear = "";
                $monthYear = $month."-".$year;
                if($currentMonthYear === "" || $currentMonthYear !== $monthYear){
                    $currentMonthYear = $monthYear;
                    if($month==='01'){
                        $displayMonthYear = " January ".$year." ";
                    }
                    elseif($month==='02'){
                        $displayMonthYear = " February ".$year." ";
                    }
                    elseif($month==='03'){
                        $displayMonthYear = " March ".$year." ";
                    }
                    elseif($month==='04'){
                        $displayMonthYear = " April ".$year." ";
                    }
                    elseif($month==='05'){
                        $displayMonthYear = " May ".$year." ";
                    }
                    elseif($month==='06'){
                        $displayMonthYear = " June ".$year." ";
                    }
                    elseif($month==='07'){
                        $displayMonthYear = " July ".$year." ";
                    }
                    elseif($month==='08'){
                        $displayMonthYear = " August ".$year." ";
                    }
                    elseif($month==='09'){
                        $displayMonthYear = " September ".$year." ";
                    }
                    elseif($month==='10'){
                        $displayMonthYear = " October ".$year." ";
                    }
                    elseif($month==='11'){
                        $displayMonthYear = " November ".$year." ";
                    }
                    elseif($month==='12'){
                        $displayMonthYear = " December ".$year." ";
                    }
                    echo "<div class='col-md-12' align='center'><h3 class='title'><span>".$displayMonthYear."</span></h3></div>";
                }
        ?>
        <div class="col-md-12" style="border-bottom: 1px dashed #ccc;padding-top:10px;">
            <div class="row form-group">
                <div class="col-md-4">
                    <img src="<?php echo base_url().$value->image;?>" class="img-responsive" style="margin-bottom:15px;"/>
                </div>
                <div class="col-md-8">
                    <h3><?php echo $value->title;?></h3>
                    <div class="form-group"><?php echo $value->created_date;?></div>
                    <?php echo $value->summary;?>
                    <div class="form-group">
                        <a href="<?php echo base_url().'news/'.$value->news_category_id.'/view/'.$value->id;?>" class="btn btn-warning">> More</a>
                    </div>
                </div>
            </div>
        </div>
        <?php
            }
        ?>
        <div class="col-md-12" align="center">
            <ul class="pagination">
                <?php echo $paging;?>
            </ul>    
        </div>
        <?php
        }
        else{
        ?>
        <div class="col-md-12">
            <div class="row">
                <div class="col-md-12 form-group" align="center">
                    <p>No news available yet. Please stay tune with us.</p>
                </div>
            </div>
        </div>
        <?php
        }
        ?>
    </div>
</div>