<div class="content-wrapper">
   <div class="container-full">
      <!-- Content Header (Page header) -->	  
      <div class="content-header">
         <div class="d-flex align-items-center">
            <div class="me-auto">
               <h4 class="page-title">Seo Management</h4>
               <div class="d-inline-block align-items-center">
                  <nav>
                     <ol class="breadcrumb">
                        <li class="breadcrumb-item"><a href="#"><i class="fa fa-home"></i></a></li>
                        <li class="breadcrumb-item active" aria-current="page">Home</li>
                     </ol>
                  </nav>
               </div>
            </div>
         </div>
      </div>
      <!-- Main content -->
      <section class="content">
         <?php if ($this->session->flashdata('success')) { ?>
         <div class="alert alert-success">
            <a href="<?= base_url('admin/seo'); ?>" class="close" data-dismiss="alert" aria-label="close">×</a>
            <strong><?php echo $this->session->flashdata('success'); ?></strong>
         </div>
         <?php } ?>
         <?php if ($this->session->flashdata('error')) { ?>
         <div class="alert alert-danger">
            <a href="<?= base_url('admin/seo'); ?>" class="close" data-dismiss="alert" aria-label="close">×</a>
            <strong><?php echo $this->session->flashdata('error'); ?></strong>
         </div>
         <?php } ?>
         <div class="row">
            <div class="col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12">
               <div class="box">
                  <div class="table-box-header box-header with-border">
                     <h4 class="box-title">Seo List</h4>
                     <div class="table-right-btns">
                        <a href="#" class="export-btn">
                        <i class='fa fa-file-export'></i>
                        Export
                        </a>
                     </div>
                  </div>
                  <!-- /.box-header -->
                  <div class="box-body">
                     <div class="table-responsive">
                        <table id="example1" class="table text-fade table-bordered">
                           <thead>
                              <tr class="text-dark">
                                 <th>SR No.</th>
                                 <th>Page Name</th>
                                 <th>Meta Title</th>
                                 <th>Meta Keyword</th>
                                 <th>Meta Description</th>
                                 <th>Status</th>
                                 <th>Action</th>
                              </tr>
                           </thead>
                           <tbody>
                              <?php $i=1; foreach($seos as $seo){ ?>
                              <tr class="text-dark">
                                 <td><?= $i;?></td>
                                 <td><?= $seo->page_name; ?></td>
                                 <td><?= $seo->meta_title; ?></td>
                                 <td><?= $seo->meta_keyword; ?></td>
                                 <td><?= $seo->meta_description; ?></td>
                                 <td> <?php if($seo->status ==1  ){  ?>
                                    <span class="badge badge-success-light">Active</span>
                                    <?php }else{ ?>
                                    <span class="badge badge-danger-light">Inactive</span>
                                    <?php } ?>
                                 </td>
                                 <td class="table-action min-w-100 action-tbns">
                                    <a href="<?= base_url(); ?>admin/seo-edit?bid=<?= $seo->id; ?>" class="edit"  title="Edit"><i class="align-middle fa fa-edit" ></i></a>
                                    <a href="<?= base_url();?>admin/seo-delete?bid=<?= $seo->id; ?>" class="text-fade trash"><i class="align-middle fa fa-trash"></i></a>
                                 </td>
                              </tr>
                              <?php $i++; } ?>
                           </tbody>
                        </table>
                     </div>
                  </div>
                  <!-- /.box-body -->
               </div>
               <!-- /.box -->
            </div>
         </div>
      </section>
      <!-- /.content -->
   </div>
</div>