<div class="container mt-3 mb-3 pt-3 pb-3 bg-white">
    <div class="row">
        <div class="col-sm-12">
            <ul class="breadcrumb">
                <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">Exams</a></li>
                <li class="breadcrumb-item"><a href="#">Add New Exam</a></li>
            </ul>
            
        </div>
        
        <div class="col-sm-12">
            <form method="post" action="#">
                <?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>Exam Title</label>
                    <input type="text" name="exam_title" class="form-control" placeholder="Exam Title" required>
                </div>
                
                <div class="form-group">
                    <label>Exam Type</label>
                    <input type="text" name="exam_type" class="form-control" placeholder="Exam Type" required>
                </div>
                
                
                
                <div class="form-group">
                    <label>Acedemic Session</label>
                    <select class="form-control" name="acedemic_session" required>
                        <?php 
                        $table='academic_session_details';
                        $all_session=$this->NewExamModel->get_data($table);
                        if($all_session){
                            foreach($all_session as $session_data){
                        ?>
                        <option value="<?php echo $session_data['id']; ?>"><?php echo $session_data['year_long'];?></option>
                        <?php
                            }
                        }
                        ?>
                        
                    </select>
                </div>
                
                <div class="form-group">
                    <button class="btn btn-sm btn-success" type="submit" name="add_new_exam">Add New Exam</button>
                </div>
                
                
            </form>
        </div>
        
    </div>
</div>