<div class="container bg-white">
    <div class="row">
        <div class="col-sm-12 pt-3 pb-3">
            <!--<ul class="bredcrumb">-->
            <!--    <li class="breadcrumb-item">-->
            <!--        <a href="<?php echo base_url(); ?>Welcome">Home</a>-->
            <!--    </li>-->
                
            <!--    <li class="breadcrumb-item">-->
            <!--        <a href="<?php echo base_url(); ?>Examination/all_classes">All Courses</a>-->
            <!--    </li>-->
            <!--</ul>-->
            
            
            <div class="table-responsive">
                <table class="table table-bordered table-striped" id="mytable">
                    <thead>
                        <tr>
                            <th>#</th>
                            <th>Exam</th>
                            <th>Session</th>
                            <th>Class</th>
                            <th>Issue date</th>
                            <th>Valid Till</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php
                        $table="admin_card_list";
                        $all_admit_cards=$this->NewExamModel->get_data($table);
                        $count=0;
                        if($all_admit_cards){
                            foreach($all_admit_cards as $data){
                                $count=$count + 1;        
                        ?>
                        <tr>
                            <td><?php echo $count; ?></td>
                            <td><?php echo $data['exam_title']; ?></td>
                            <td><?php echo $data['y1']."-".$data['y2']; ?></td>
                            <td><?php echo $data['class']." ".$data['subject_stream']; ?></td>
                            <td><?php echo date('d-m-Y',strtotime($data['issue_date'])); ?></td>
                            <td><?php echo date('d-m-Y',strtotime($data['end_date'])); ?></td>
                        </tr>
                        <?php
                            }
                        }
                        ?>
                    </tbody>
                    
                </table>
            </div>
        </div>
    </div>
</div>