
  <!-- Content Wrapper. Contains page content -->
  <div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
      <div class="container-fluid">
        <div class="row mb-2">
          <div class="col-sm-6">
            <h1>View All Bundle Course</h1>
          </div>
          <div class="col-sm-6">
            <ol class="breadcrumb float-sm-right">
              <li class="breadcrumb-item"><a href="<?php echo admin_url() ?>admin">Home</a></li>
              <li class="breadcrumb-item"><a href="#">Course</a></li>
              <li class="breadcrumb-item active">View All Bundle Course</li>
            </ol>
          </div>
        </div>
      </div><!-- /.container-fluid -->
    </section>

    <!-- Main content -->
    <section class="content">
      <div class="container-fluid">
        <div class="row">

          <div class="col-sm-12">
            <div class="card card-default">
              <div class="card-header">
                <h3 class="card-title">All Bundle Course</h3>
                <div class="card-tools">
                  <a href="<?php echo admin_url(); ?>course/add_new_course" class="btn btn-primary btn-sm"><i class="fa fa-plus" aria-hidden="true"></i> Add Bundle Course</a>
                </div>
              </div>
                <div class="card-body">
                  <table id="example" class="table table-bordered table-striped">
                    <thead>
                    <tr>
                      <th>id</th>
                      <th>Title</th>
                      <th>Price</th>
                      <th>Course</th>
                      <th></th>
                    </tr>
                    </thead>
                    <tbody>
                    <?php $i=1; foreach ($all_data as $key => $data):?>
                    <tr>
                      <td><?php echo $i ?></td>
                      <td><?php echo $data->bundile_title ?></td>
                      <td>&#x20B9;<?php echo $data->bundile_price ?></td>
                      <td><?php //echo $data->level ?></td>
                      <td>

                        <a class="btn btn-warning btn-sm" target="_blank"  href="<?php echo base_url() ?>/course-bundle/<?php echo $data->bundile_slug ?>"><i class="fa fa-eye" aria-hidden="true"></i></a>

                        <a class="btn btn-success btn-sm"  href="<?php echo base_url() ?>admin/course/edit_bundle/<?php echo $data->bundile_id ?>"><i class="fa fa-edit" aria-hidden="true"></i></a>

                        <a class="btn btn-danger btn-sm" onclick="return confirm('Are you sure?')" href="<?php echo base_url() ?>admin/course/delete_bundle/<?php echo $data->bundile_id ?>"><i class="fa fa-trash" aria-hidden="true"></i></a>
                      </td>
                    </tr>
                    <?php $i++; ?>
                    <?php endforeach; ?>
                    </tbody>
                    
                  </table>
                </div>
              </div>
            </div>
          </div>
      </div>
    </section>
    <!-- /.content -->
  </div>