
 <div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <div class="content-header">
      <div class="container-fluid">
        <div class="row mb-2">
          <div class="col-sm-6">
            <h1 class="m-0 text-dark">All Package</h1>
          </div><!-- /.col -->
          <div class="col-sm-6">
            <ol class="breadcrumb float-sm-right">
              <li class="breadcrumb-item"><a href="<?php echo base_url() ?>admin/admin/dashboard">Dashboard</a></li>
              <li class="breadcrumb-item"><a href="#">Royalty Manager</a></li>
              <li class="breadcrumb-item active">All Package</li>

            </ol>
          </div><!-- /.col -->
        </div><!-- /.row -->
      </div><!-- /.container-fluid -->
    </div>
    <!-- /.content-header -->
    <!-- Main content -->
    <section class="content">
      <div class="container-fluid">
        <div class="card card-default">
          <div class="card-header">
            <h3 class="card-title">View All Package</h3>
            <div class="card-tools">
              <a href="<?php echo base_url()?>/admin/royalty/add_new_package" class="btn btn-success btn-sm"><i class="fa fa-plus" aria-hidden="true"></i> Add Package</a>
            </div>
          </div>
            <!-- /.card-header -->
            <div class="card-body">
              <table id="example1" class="table table-bordered table-striped">
                <thead>
                <tr>
                  <th>Package Image</th>
                  <th>Package Name</th>
                  <th>Package Price</th>
                  <th>Package Details</th>
                  <th>Balance Amount</th>
                  <th>Package Order</th>
                  <th></th>
                </tr>
                </thead>
                <tbody>
                <?php $i=1; foreach ($all_package as $package):?>
                <tr>
                  <td><img src="<?php echo base_url(); ?><?php echo $package->package_image ?>" width="70px"></td>
                  <td style="color: <?php echo $package->package_color ?>;"><?php echo $package->package_name ?></td>
                  <td>₹<?php echo $package->package_price ?></td>
                  <td>
                    <?php if($package->package_program_type == 1): ?>
                      Studnet Reg. Amt. : <b>₹<?php echo $package->package_student_reg_fee ?></b>
                    <?php else: ?>
                      Studnet Reg. Percantage : <b><?php echo $package->package_student_reg_fee ?>%</b>
                    <?php endif; ?>
                   <br/>
                    <!--  Lead Amt. : <b>₹<?php //echo $package->package_lead_price ?></b>
                    <br/>
                    Dig. Cert. Amt : <b>₹<?php //echo $package->package_digital_certificate_price ?></b>
                    <br/>
                    Live Class : <b>₹<?php //echo $package->package_live_class_price ?></b>
                    <br/>
                    Video Amt. : <b><?php e//cho $package->package_video_course_percantage ?>%</b>
                    <br/>
                    Aff. Comm.. : <b><?php //echo $package->package_aff_percantage ?>%</b>
                    <br/> -->
                    Is Demo Package : <b>
                      <?php if($package->is_demo_package == 1): ?>
                        Yes
                      <?php else: ?>
                        No
                      <?php endif;?>
                    </b>
                  </td>
                  <td>₹<?php echo $package->package_balance_amount ?></td>
                  <td><?php echo $package->package_order ?></td>
                  <td>
                    <div class="input-group mb-3">
                      <div class="input-group-prepend">
                        <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
                        Action
                        </button>
                        <div class="dropdown-menu">
                          <a class="dropdown-item" href="<?php echo base_url(); ?>/admin/royalty/edit_package/<?php echo $package->package_id  ?>"><i class="fas fa-edit"></i>&nbsp;&nbsp;Edit</a>
                          <div class="dropdown-divider"></div>
                          <a class="dropdown-item" onclick="return confirm('Are you sure?')" href="<?php echo base_url(); ?>/admin/royalty/delete_package/<?php echo $package->package_id  ?>"><i class="fas fa-trash"></i>&nbsp;&nbsp;Delete</a>
                        </div>
                      </div>
                    </div>
                  </td>
                </tr>
                <?php $i++; ?>
                <?php endforeach; ?>
                </tbody>
              </table>
            </div>
          </div>
      </div><!--/. container-fluid -->
    </section>
  </div>
