<!-- **********************************************************************************************************************************************************
    MAIN CONTENT
    *********************************************************************************************************************************************************** -->
<!--main content start-->
<section id="main-content">
    <section class="wrapper">
        <div class="row mt">
            <div class="col-lg-12">
                <div style="margin-top: 4px"  id="message">
                    <?php echo $this->session->userdata('message') <> '' ? $this->session->userdata('message') : ''; ?>
                </div>
                <div class="content-panel">
                    <h4 class="pull-left"><i class="fa fa-angle-right"></i> Data Menu</h4>
                    <div class="pull-right" style="padding-right: 10px;">
                        <a href="<?= base_url() ?>admin/product_category/create">
                            <button type="button" class="btn btn-primary btn-xs">Insert Data</button>
                        </a>
                    </div>
                    <section id="unseen">
                        <table id="example" class="table table-bordered table-striped">
                            <thead>
                                <tr>
                                    <th width="80px">No</th>
                                    <th>Name</th>
                                    <th style="width: 20%">Action</th>
                                </tr>
                            </thead>
                            <tbody>
                                <?php
                                $start = 0;
                                foreach ($product_category_data as $product_category) {
                                    ?>
                                    <tr>
                                        <td><?php echo ++$start ?></td>
                                        <td><?php echo $product_category->name ?></td>
                                        <td style="text-align:center" width="200px">
                                            <?php
                                            echo anchor(site_url('admin/product_category/update/' . $product_category->id), 'Update');
                                            echo ' | ';
                                            echo anchor(site_url('admin/product_category/delete/' . $product_category->id), 'Delete', 'onclick="javasciprt: return confirm(\'Are You Sure ?\')"');
                                            ?>
                                        </td>
                                    </tr>
                                    <?php
                                }
                                ?>
                            </tbody>
                        </table>
                    </section>
                    <div style="clear: both"></div>
                </div>
            </div>
        </div><!--row -->
    </section>
</section>
