<!-- begin:: Subheader -->
<div class="kt-subheader   kt-grid__item" id="kt_subheader">
<div class="kt-container  kt-container--fluid ">
    <div class="kt-subheader__main">
        <div class="kt-subheader__breadcrumbs">
            <a class="kt-subheader__breadcrumbs-link">
              Sub Courses </a>
            <span class="kt-subheader__breadcrumbs-separator"></span>
            <a class="kt-subheader__breadcrumbs-link">
                Add SubCourse </a>
            <span class="kt-subheader__breadcrumbs-separator"></span>
            
        </div>
    </div>                                        
</div>
</div>
<!-- end:: Subheader -->
<!-- begin:: Content -->
<div class="kt-container  kt-container--fluid  kt-grid__item kt-grid__item--fluid">
   <div class="kt-portlet">
      <div class="kt-portlet__body kt-portlet__body--fit">
         <div class="kt-grid  kt-wizard-v1 kt-wizard-v1--white" id="kt_projects_add" data-ktwizard-state="first">            
            <div class="kt-grid__item kt-grid__item--fluid kt-wizard-v1__wrapper">
               <!--begin: Form Wizard Form-->
               <?php $courses = get_courses();?>    
               <form class="kt-form" id="kt_form" action="<?=base_url();?>admin/process_add_sub_course" method="post" novalidate="novalidate">
                  <!--begin: Form Wizard Step 1-->
                  <div class="kt-wizard-v1__content" data-ktwizard-type="step-content" data-ktwizard-state="current">
                     <div class="kt-heading kt-heading--md">SubCourse Information:</div>
                     <div class="kt-section kt-section--first">
                        <div class="kt-wizard-v1__form">
                           <div class="row">
                              <div class="col-xl-12">
                                 <div class="kt-section__body">
                                    <div class="form-group row <?php if(form_error('course_id')){ ?>has-error<?php } ?>">
                                                <label class="col-xl-3 col-lg-3 col-form-label">Course
                                                    <span class="required"> * </span>
                                                </label>
                                                <div class="col-lg-9 col-xl-9">                                             
                                                    <select name="course_id" id="course_id" class="form-control input-height" required>
                                                          <option value="">Choose Course</option>
                                                          <?php foreach($courses as $value){ ?>
                                                            <option value="<?=$value['id'];?>"><?=$value['name'];?></option>
                                                        <?php } ?>      
                                                    </select> 
                                                    <span class="help-block"> <?=form_error('course_id'); ?> </span>
                                                </div>
                                            </div>
                                            <div class="form-group row <?php if(form_error('cousre_name')){ ?>has-error<?php } ?>">
                                                <label class="col-xl-3 col-lg-3 col-form-label">Sub Course Name
                                                    <span class="required"> * </span>
                                                </label>
                                                <div class="col-lg-9 col-xl-9">
                                                    <input type="text" name="cousre_name" id="cousre_name" placeholder="Enter Sub Course Name" class="form-control input-height" value="<?=set_value('cousre_name');?>" required/> 
                                                    <span class="help-block"> <?=form_error('cousre_name'); ?> </span>
                                                    </div>
                                            </div>
                                            <div class="form-group row <?php if(form_error('fee')){ ?>has-error<?php } ?>">
                                                <label class="col-xl-3 col-lg-3 col-form-label">Fee
                                                    <span class="required"> * </span>
                                                </label>
                                                <div class="col-lg-9 col-xl-9">
                                                    <input name="fee" id="fee" type="text" placeholder="Enter Fee" maxlength="8" class="form-control input-height" value="<?=set_value('fee');?>" required/> 
                                                    <span class="help-block"> <?=form_error('fee'); ?> </span>
                                                    </div>
                                            </div>                                           
                                            <div class="form-group row <?php if(form_error('exam_fee')){ ?>has-error<?php } ?>">
                                                <label class="col-xl-3 col-lg-3 col-form-label">Exam Fee
                                                </label>
                                                <div class="col-lg-9 col-xl-9">                                                    
                                                        <input type="text" class="form-control input-height" name="exam_fee" id="exam_fee" placeholder="Enter Exam Fee" value="<?=set_value('exam_fee');?>"/>
                                                <span class="help-block"> <?=form_error('exam_fee'); ?> </span>
                                                </div>
                                            </div>
                                            <div class="form-group row <?php if(form_error('credit_transfer')){ ?>has-error<?php } ?>">
                                                <label class="col-xl-3 col-lg-3 col-form-label">Credit Transfer
                                                    <span class="required"> * </span>
                                                </label>
                                                <div class="col-lg-9 col-xl-9">
                                                    <input type="text" name="credit_transfer" id="credit_transfer" placeholder="Enter Credit Transfer" class="form-control input-height" value="<?=set_value('credit_transfer');?>" required/>
                                                    <span class="help-block"> <?=form_error('credit_transfer'); ?> </span>
                                                    </div>
                                            </div>
                                            <div class="form-group row <?php if(form_error('lateral_fees')){ ?>has-error<?php } ?>">
                                                <label class="col-xl-3 col-lg-3 col-form-label">Lateral Fees
                                                    <span class="required"> * </span>
                                                </label>
                                                <div class="col-lg-9 col-xl-9">
                                                    <input type="text" name="lateral_fees" id="lateral_fees" placeholder="Enter Lateral Fees" class="form-control input-height" value="<?=set_value('lateral_fees');?>"  required/>
                                                     <span class="help-block"> <?=form_error('lateral_fees'); ?> </span>
                                                    </div>
                                            </div>                                                                                  
                                            <div class="form-group row">
                                                <label class="col-xl-3 col-lg-3 col-form-label">Status
                                                    <span class="required"> * </span>
                                                </label>
                                                <div class="col-lg-9 col-xl-9"> 
                                                
                                                    <input type="radio" name="status" id="optionsRadios" value="1" <?php echo set_checkbox('status', '1'); ?> checked />
                                                    <label for="optionsRadios">
                                                        Active 
                                                    </label>
                                                    <input type="radio" name="status" id="optionsRadios1" value="2" <?php echo set_checkbox('status', '2'); ?> />
                                                    <label for="optionsRadios1">
                                                        Inactive
                                                    </label>                                                                        
                                                    
                                                </div>
                                            </div>                               
                                    
                                 </div>
                              </div>
                           </div>
                        </div>
                     </div>
                  </div>
                  <!--end: Form Wizard Step 1-->         
                 <!--begin: Form Actions -->
                  <div class="kt-form__actions">                    
                     <button type="Submit" class="btn btn-brand btn-md btn-tall btn-wide kt-font-bold kt-font-transform-u" data-ktwizard-type="action-next">
                        Submit
                     </button>
                  </div>
                  <!--end: Form Actions -->
               </form>
               <!--end: Form Wizard Form-->
            </div>
         </div>
      </div>
   </div>
</div>