<style>
    h1{
        text-align:center;
        font-size:26px;
    }
</style>

<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"><a href="#">Subjects</a></li>
                <li class="breadcrumb-item">Add New Subject</li>
            </ul>
            
            
            
            <div class="">
                <form method="post" action="#">
                    <h1>Add New Subject</h1><hr>
                    <?php
                    if($success){
                    ?>
                    <div class="alert alert-success"><?php echo $success; ?></div>
                    <?php
                    }
                    
                    if($error){
                    ?>
                        <div class="alert alert-danger"><?php echo $error; ?></div>
                    <?php
                    }
                    ?>
                    <div class="form-group">
                        <label>Class</label>
                        <select class="form-control" name="class">
                            <!--<option value="PG">PG</option>-->
                            <!--<option value="LKG">LKG</option>-->
                            <!--<option value="UKG">UKG</option>-->
                            <!--<option value="1">1</option>-->
                            <!--<option value="2">2</option>-->
                            <!--<option value="3">3</option>-->
                            <!--<option value="4">4</option>-->
                            <!--<option value="5">5</option>-->
                            <!--<option value="6">6</option>-->
                            <!--<option value="7">7</option>-->
                            <!--<option value="8">8</option>-->
                            <option value="9">9</option>
                            <option value="10">10</option>
                            <option value="11">11</option>
                            <option value="12">12</option>
                        </select>
                    </div>
                    
                    <div class="form-group">
                        <label>Subject</label>
                        <input type="text" name="subject" class="form-control" placeholder="Subject" >
                    </div>
                    
                    <div class="form-group">
                        <label>MM</label>
                        <input type="number" name="mm" value="100" class="form-control" placeholder="MM">
                    </div>
                    
                    <div class="form-group">
                        <label>Exam Type</label>
                        <select class="form-control" name="exam_type">
                            <option value="Marks">Marks</option>
                            <option value="Grade">Grade</option>
                        </select>
                        
                    </div>
                    
                    
                    <div class="form-group">
                        <label>Subject Type</label>
                        <select class="form-control" name="subject_type">
                            <option value="Main Subject">Main Subject</option>
                            <option value="Additional Subject">Additional Subject</option>
                        </select>
                    </div>
                    
                    
                    <div class="form-group">
                        <label>Subject Order</label>
                        <input type="text" name="subject_order" class="form-control" value="<?php echo set_value('subject_order'); ?>" placeholder="Subject Order">
                    </div>
                    
                    <div class="form-group">
                        <button type="submit" name="add_new_subject" class="btn btn-sm btn-success">Add Subject</button>
                    </div>
                    
                </form>
            </div>
            
            <div class="table-responsive">
                <table class="table table-bordered table-striped">
                    <thead>
                        <tr>
                            <th>Class</th>
                            <th>View Subjects</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td>9</td>
                            <td>
                                <a href="<?php echo base_url(); ?>Examination/class_subjects/9" class="btn btn-sm btn-success" target="_blank">View</a>
                            </td>
                        </tr>
                        <tr>
                            <td>10</td>
                            <td>
                                <a href="<?php echo base_url(); ?>Examination/class_subjects/10" class="btn btn-sm btn-success" target="_blank">View</a>
                            </td>
                        </tr>
                        <tr>
                            <td>11</td>
                            <td>
                                <a href="<?php echo base_url(); ?>Examination/class_subjects/11" class="btn btn-sm btn-success" target="_blank">View</a>
                            </td>
                        </tr>
                        <tr>
                            <td>12</td>
                            <td>
                                <a href="<?php echo base_url(); ?>Examination/class_subjects/12" class="btn btn-sm btn-success" target="_blank">View</a>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>