<?php 
$page_id = null;
$comp_model = new SharedController;
$current_page = $this->set_current_page_link();
?>
<div>
    <div  class="bg-light p-3 mb-3">
        <div class="container">
            <div class="row ">
                <div class="col-md-12 comp-grid">
                    <h4 >Selamat Datang di Sistem Informasi Data SPPG Prov.Bengkulu
                        <br></h4>
                    </div>
                </div>
            </div>
        </div>
        <div  class="">
            <div class="container">
                <div class="row ">
                    <div class="col-md-3 col-sm-4 comp-grid">
                        <?php $rec_count = $comp_model->getcount_datasppg();  ?>
                        <a class="animated zoomIn record-count card bg-light text-dark"  href="<?php print_link("sppg/") ?>">
                            <div class="row">
                                <div class="col-2">
                                    <i class="fa fa-fort-awesome "></i>
                                </div>
                                <div class="col-10">
                                    <div class="flex-column justify-content align-center">
                                        <div class="title">Data SPPG</div>
                                        <small class=""></small>
                                    </div>
                                </div>
                                <h4 class="value"><strong><?php echo $rec_count; ?></strong></h4>
                            </div>
                        </a>
                    </div>
                    <div class="col-md-3 col-sm-4 comp-grid">
                        <?php $rec_count = $comp_model->getcount_dataagak();  ?>
                        <a class="animated zoomIn record-count card bg-light text-dark"  href="<?php print_link("agak/") ?>">
                            <div class="row">
                                <div class="col-2">
                                    <i class="fa fa-group "></i>
                                </div>
                                <div class="col-10">
                                    <div class="flex-column justify-content align-center">
                                        <div class="title">Data AG & AK</div>
                                        <small class=""></small>
                                    </div>
                                </div>
                                <h4 class="value"><strong><?php echo $rec_count; ?></strong></h4>
                            </div>
                        </a>
                    </div>
                    <div class="col-md-12 comp-grid">
                        <div class=" ">
                            <?php  
                            $this->render_page("sppg/list?limit_count=20" , array( 'show_header' => false,'show_footer' => false )); 
                            ?>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
