<div class="container-fluid mt-3 mb-3 bg-white">
    <div class="row">
        <div class="col-sm-12">
            
            <ul class="breadcrumb mt-3">
                <li class="breadcrumb-item"><a href="<?php echo base_url();?>">Home</a></li>
                <li class="breadcrumb-item"><a href="<?php echo base_url();?>ExamManagement">Exam</a></li>
                <li class="breadcrumb-item">Remarks</li>
            </ul>
            
            <a href="<?php echo base_url(); ?>ExamManagement/add_remark" class="btn btn-sm btn-info mb-2">Add Remark</a>
            
            <div class="table-responsive">
                <table class="table table-bordered table-striped" id="mytable">
                    <thead>
                        <tr>
                            <th>#</th>
                            <th>Remark Category</th>
                            <th style="width:50%;">Remark</th>
                            <th>Status</th>
                            <th>Action</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php 
                        $count=0;
                        $table='exam_quote_list';
                        $all_remarks=$this->NewExamModel->get_data($table);
                        if($all_remarks){
                            foreach($all_remarks as $remarks){
                                $count=$count + 1;
                                $status=$remarks['status'];
                        ?>
                        <tr>
                            <td><?php echo $count; ?></td>
                            <td><?php echo $remarks['quote_type']; ?></td>
                            <td style="width:50%;"><?php echo $remarks['quote']; ?></td>
                            <td>
                                <?php 
                                if($status == 1){
                                ?>
                                <button class="btn btn-sm btn-success status-btn" item_id="<?php echo $remarks['id']; ?>" status_val="0">Active</button>
                                <?php
                                }else if($status == 0){
                                ?>
                                <button class="btn btn-sm btn-success status-btn" item_id="<?php echo $remarks['id']; ?>" status_val="1">Active</button>
                                <?php
                                }
                                
                                ?>
                            </td>
                            <td>
                            <form action="<?php echo base_url()."ExamManagement/add_remark"; ?>" method="post">
                                <button type="submit" name="edit" value="<?php echo $remarks['id']; ?>" class="btn btn-sm btn-outline-warning">Edit</button>
                            </form>
                            <?php 
                            
                            ?>
                            </td>
                        </tr>
                        <?php
                            }
                        }
                        ?>
                        
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>