<div class="container-fluid">


    <div class="row column_title">
        <div class="col-md-12">
            <div class="page_title">
                <h2>Packages</h2>
            </div>
        </div>
    </div>
    <div class="card">

    </div>

</div>
<section class="content mt-5">
    <div class="container-fluid">
        <div class="card-body">
            <h5 class="mb-3">All Packages</h5>

            <a class="btn btn-info" style="float:right;" href="<?php echo base_url().'dashboard/addpackageview' ?>">Add Package</a>
<br><br>
            <table class="table table-bordered" cellspacing="0">
                <thead class="thead-dark">
                    <tr>
                        <th>No.</th>
                        <th>Package Name</th>
                        <th>Package Duration</th>
                        <th>Package Price</th>
                        <th>Action</th>
                    </tr>
                </thead>
                <tbody>
                    <?php
                    $count = 1;
                        foreach ($packages as $id=> $package) {

                    ?>
                    <tr>
                        <td style="width: 10%"><?=$count?></td>
                        <td style="width: 80%"><?=$package['package']?></td>
                        <td style="width: 20%"><?=$package['duration']." Month";?></td>
                        <td style="width: 20%"><?=$package['price']?></td>
                        <td>
                        <a class="icon" style="text-decoration: none;" href="<?php echo base_url(); ?>dashboard/editpackage/<?php echo $id; ?>">
                                    <button class="btn btn-info btn-block mt-2">Edit</button>
                                </a>
                                <a class="icon" style="text-decoration: none;" href="<?php echo base_url(); ?>dashboard/deletepackage/<?php echo $id; ?>">
                                    <button class="btn btn-danger btn-block mt-2">Delete</button>
                                </a>
      
                            


                        </td>
                    </tr>
                    <?php $count++; } ?>
                </tbody>
            </table>
        </div>
</section>
<!-- /.container-fluid -->