<div class="col-sm-8">
    <div class="row gray_ttc">
        <div class="col-sm-12 ">
            <div class="col-sm-12">
                <h3>Add Batch Information</h3>  
            </div>
            <div class="col-sm-12"> <hr><br></div>
            <div class="col-sm-12">
                <?php
                if ($active_menu == 'organization') {
                    $url = 'organization/add-batch';
                } else {
                    $url = 'teacher/add-batch';
                }
                echo form_open($url, 'class="" id="formID2" name="createBatch"');
                ?>
                <div class="col-sm-12">
                    <div class="col-sm-12 form-group">
                        <div class="input-group">
                            <input type="text" 
                                   data-errormessage-value-missing="Batch name is required"
                                   class="form-control" 
                                   name="course_batch_name" 
                                   id="course_batch_name"
                                   placeholder="Type your Batch Name.." 
                                   aria-describedby="basic-addon1"
                                   value="<?php echo set_value('course_batch_name'); ?>">
                            <span class="input-group-addon" id="basic-addon1" title="Type your Batch Name"><i class="fa fa-ge"></i></span>
                        </div>            
                        <span id="course_batch_name_message" style="color: red"><?php echo form_error('course_batch_name'); ?></span>
                    </div>

                    <div class="col-sm-12"><br></div>
                    <div class="col-sm-12 form-group">
                        <select data-errormessage-value-missing="Course is required"
                                class="form-control" 
                                name="course" 
                                id="course"
                                onchange="get_course_info(this.value, '<?php echo base_url(); ?>batch-course-info')">
                            <option value=""> -Select Course - </option>                
                            <?php foreach ($courses as $course_info) { ?>
                                <option value="<?php echo $course_info->course_id; ?>"><?php echo $course_info->course_name; ?></option>
                            <?php } ?>
                        </select>
                        <span id="course_message" style="color: red"><?php echo form_error('course'); ?></span>
                    </div>


                    <div id="course_info">
                        <div class="col-sm-12 form-group text-left">
                            <strong id="course_resource_person">
                            Resource Person Name : 
                            </strong>
                        </div>

                        <div class="col-sm-6 form-group">
                            <div class="input-group " id="datetimepicker1">
                                <input type="text" 
                                       
                                       class="form-control"
                                       name="course_batch_start_date" 
                                       id="course_batch_start_date" 
                                       placeholder="Please Select  Start Date"
                                       value="<?php echo set_value('course_batch_start_date'); ?>">
                                <span class="input-group-addon">
                                    <span class="glyphicon glyphicon-calendar" title="Please Select  Start Date"></span>
                                </span>
                            </div>
                            <span id="course_batch_start_date_message" style="color: red"><?php echo form_error('course_batch_start_date'); ?></span>
                        </div>

                        <div class="col-sm-6 form-group">
                            <div class="input-group " id="datetimepicker5">
                                <input type="text" 
                                       
                                       class="form-control"
                                       name="course_batch_finish_date" 
                                       id="course_batch_finish_date" 
                                       placeholder="Please Select Finish Date"
                                       value="<?php echo set_value('course_batch_finish_date'); ?>">
                                <span class="input-group-addon">
                                    <span class="glyphicon glyphicon-calendar" title="Please Select Finish Date"></span>
                                </span>
                            </div>
                            <span id="course_batch_finish_date_message" style="color: red"><?php echo form_error('course_batch_finish_date'); ?></span>                        
                        </div>
                        <div class="col-sm-12 form-group text-left">
                            <strong>Batch Status: </strong> Create
                        </div>
                    </div>
                    <div class="col-sm-12"><br><br></div>

                    <div class="form-group col-sm-2 col-sm-offset-5">
                        <input type="submit" class="green-btn btn btn-default" value=" Create">
                    </div>

                    <div class="form-group col-sm-2"></div>
                    <div class="col-sm-12"><br><br></div>

                </div>
                <?php echo form_close(); ?>
            </div>
        </div>
    </div>

</div>
<script src="<?php echo base_url() ?>front_end_resource/batch/batch.js" type="text/javascript"></script>

