<?php 
$class=$this->uri->segment('3');
$table="exam_subjects_3_new";
$get_class_subjects=$this->NewExamModel->get_class_subjects($class,$table);
?>

<div class="container mt-3 mb-3 bg-white">
    <div class="row">
        <div class="col-sm-12 pt-3 pb-3">
            <ul class="breadcrumb">
                <li class="breadcrumb-item"><a href="<?php echo base_url(); ?>Welcome">Home</a></li>
                <li class="breadcrumb-item">Subjects</li>
                <li class="breadcrumb-item"><a href="<?php echo base_url(); ?>Examination/class_subjects/<?php echo $class; ?>"><?php echo $class; ?> </a></li>
            </ul>
            
            <div class="table-responsive">
                <table class="table table-bordered table-striped">
                    <thead>
                        <tr>
                            <th>#</th>
                            <th>#</th>
                            <th>Subjects</th>
                            <th>MM</th>
                            <th>Exam Type</th>
                            <th>Subject Type</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php
                        $count=0;
                        if($get_class_subjects){
                            foreach($get_class_subjects as $subjects){
                                $count=$count + 1;
                        ?>
                        <tr>
                            <td><?php echo $count; ?></td>
                            <td><?php echo $subjects['id']; ?></td>
                            <td><?php echo $subjects['subject']; ?></td>
                            <td><?php echo $subjects['MM']; ?></td>
                            <td><?php echo $subjects['exam_type']; ?></td>
                            <td><?php echo $subjects['subject_type']; ?></td>
                        </tr>
                        <?php
                            }
                        }
                        ?>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>