<div class="content-header">
    <div class="container-fluid">
        <div class="row mb-2">
            <div class="col-4 d-flex flex-row justify-content-between">
                <h1 class="m-0 text-dark">Categories
                </h1>
            </div>
            <!-- /.col -->
            <div class="col-8">
                <ol class="breadcrumb float-sm-right">
                    <button type="button" onclick="window.location='<?= base_url('categories/addcategory') ?>'" class="btn btn-sm bg-custom-blue text-white text-uppercase rounded-pill">Add Category</button>
                </ol>
            </div>
        </div>
    </div>
</div>
<section class="content">
    <div class="container-fluid">
        <div class="card">
            <div class="card-body p-0">
                <div class="table-responsive">
                    <table id="custtbl" class="table card-table table-vcenter text-nowrap">
                        <thead>
                            <tr>
                                <th>Name</th>
                                <th>Image</th>
                                <th>Type</th>
                                <th>Status</th>
                                <th></th>
                            </tr>
                        </thead>
                        <tbody>
                           
                            <?php
                            if (!empty($users)) {
                                $count = 1;
                                foreach ($users as $id => $customerlists) {
                                
                            ?>
                                    <tr>

                                        <td> <?php echo output($customerlists['name']); ?></td>
                                        <td><img src="<?php echo ($customerlists['image']); ?>" style="height:200px;Width:200px"/></td>


                                        <td> <span class="badge <?php echo ($customerlists['status'] == '1') ? 'badge-success' : 'badge-danger'; ?> "><?php echo ($customerlists['status'] == '1') ? 'Active' : 'Inactive'; ?></span> </td>
                                        <td>
                                    <a class="icon" href="<?php echo base_url().'categories/editcategory/'.$id ?>">
                                        <i class="fa fa-edit"></i>
                                    </a>
                                    <a class="icon" href="<?php echo base_url().'categories/deletecategory/'.$id ?>">
                                    <i class="fa fa-trash"></i>
                                    
                                    </a>
                                </td>
                                    </tr>

                            <?php }
                            } ?>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
</section>