<style>
    .main-heading{font-size:26px;font-weight:600;}
    form{box-shadow:0 0 4px silver;padding:15px;margin-bottom:15px;}
</style>
<div class="container bg-white mt-3">
    <div class="row">
        <div class="col-sm-12">
            
            <ul class="breadcrumb mt-3">
                <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">Exam</a></li>
                <li class="breadcrumb-item"><a href="<?php echo base_url(); ?>Examination/dashboard">Courses</a></li>
                <li class="breadcrumb-item">Add Working Days</li>
            </ul>
            
            <form method="post" action="#">
                <div class=""><h1 class="main-heading">Add Working Days</h1><hr></div>
                <?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</label>
                    <select class="form-control" name="exam">
                        <option value="">-- Select Exam --</option>
                        <?php 
                        $exam_table='all_exams';
                        $all_exams=$this->NewExamModel->get_data($exam_table);
                        if($all_exams){
                            foreach($all_exams as $exams){
                        ?>
                        <option value="<?php echo $exams['id']; ?>"><?php echo $exams['exam_title']; ?></option>
                        <?php
                            }
                        }
                        ?>
                    </select>
                </div>
                <div class="form-group">
                    <label>Course</label>
                    <select class="form-control" name="course" required>
                        <option value="">--Select Course--</option>
                        <?php
                        $courses_table='courses';
                        $all_courses=$this->NewExamModel->get_data($courses_table);
                        if($all_courses){
                            foreach($all_courses as $course_data){
                        ?>
                        <option value="<?php echo $course_data['id']; ?>"><?php echo $course_data['course'].' '.$course_data['subject_stream']; ?></option>
                        <?php
                            }
                        }
                        ?>
                    </select>
                </div>
                
                <div class="form-group">
                    <label>Working Days</label>
                    <input type="number" name="working_days" class="form-control" placeholder="Working Days">
                </div>
                <div class="form-group">
                    <button type="submit" name="add_working_days" class="btn btn-sm btn-success">Submit</button>
                </div>
            </form>
            
        </div>
    </div>
</div>