<?php defined('BASEPATH')or exit('NO direct Access is Allowed');?>

<div class="content-wrapper">
  <?php print_r($ret);?>
  <section class="content">
      <div class="row">
          <div class="col-xs-12">
              <div class="box">
                  <div class="box-header">
                      <!--<h3 class="box-title">Add Products</h3>-->
                      <?php echo form_open('admin/course/Course/create',['name'=>'activity_form_add','id'=>'activity_form_add']);?>
                      <?php echo form_hidden('my_array',['name'=>'doaction','id'=>'doaction']);?>
                      <?php echo $message;?>
                      <?php echo form_submit(['name'=>'save','value'=>'Save','class'=>'btn btn-default pull-right ',
                      'style'=>'margin-left:5px;background-color: #ffffff;']); ?>
                      <?php echo anchor('admin/course/Course','<i class="fa fa-fw fa-list"></i> Course List',['class'=>'btn btn-default pull-right',
                      'style'=>'background-color: #ffffff;']); ?>
                  </div>
                  <!-- /.box-header -->
                  <div class="box-body">
                      <div class="row">
                          <div class="col-md-12">
                            <div class="col-md-3">
                                <div class="form-group">
                                    <?php echo form_label('Parallel Session <span style="color:red"> *</span>','category',['for'=>'session']);?>
                                    <?php echo form_error('parallel'); ?>
                                    <select id='sel_category' class="form-control" name="parallel_session_purchased" 'autocomplete'='off'>
                                      <option value="">Select Parallel Session</option>
                                      <?php
                                        foreach($session as $session1){
                                          echo "<option value='".$session1['id']."'>".strtoupper($session1['session_tag_id'])." | ".strtoupper($session1['total_attendee']."-".$session1['attendee_limit'])."</option>";
                                        }
                                      ?>
                                    </select>
                                </div>
                            </div>
                              <div class="col-md-3">
                                  <div class="form-group">
                                      <?php echo form_label('Category <span style="color:red"> *</span>','category',['for'=>'category']);?>
                                      <?php echo form_error('category'); ?>
                                      <select id='sel_category' class="form-control" name="category" 'autocomplete'='off'>
                                        <option value="">Select category</option>
                                        <?php
                                          foreach($category as $category1){
                                            echo "<option value='".$category1['id']."'>".strtoupper($category1['category_code'])." | ".strtoupper($category1['category'])."</option>";
                                          }
                                        ?>
                                      </select>
                                  </div>
                              </div>
                              <div class="col-md-3">
                                  <div class="form-group">
                                    <?php echo form_label('Class <span style="color:red"> *</span>','class',['for'=>'class']);?>
                                    <?php echo form_error('class'); ?>
                                    <select id='sel_class' class="form-control" name="class">
                                      <option value="">Select class</option>
                                    </select>
                                  </div>
                              </div>
                              <div class="col-md-3">
                                  <div class="form-group">
                                    <?php echo form_label('Subject <span style="color:red"> *</span>','subject',['for'=>'subject']);?>
                                    <?php echo form_error('subject'); ?>
                                    <select id='sel_subject' class="form-control" name="subject">
                                      <option value="">Select subject</option>
                                    </select>
                                  </div>
                              </div>

                          </div>
                          <div class="col-md-12">

                              <div class="col-md-3">
                                  <div class="form-group">
                                    <?php echo form_label('Faculty <span style="color:red"> *</span>','faculty',['for'=>'faculty']);?>
                                    <?php echo form_error('faculty'); ?>
                                    <?php $options=array(''=>'Select Faculty Type','0'=>'Dummy','1'=>'Real');  ?>
                                    <?php //echo form_dropdown('presenter_type',$options,set_value('presenter_type',''),['class'=>'form-control']);?>
                                    <select id='sel_faculty' class="form-control" name="faculty">
                                      <option value="">Select faculty</option>
                                    </select>
                                  </div>
                              </div>
                              <div class="col-md-3" class="week1">
                                  <div class="form-group">
                                    <?php echo form_label('Class Week Days <span style="color:red"> *</span>','week_days',['for'=>'week_days','class'=>'']);?>
                                    <?php echo form_error('week_days[]'); ?>
                                    <?php $days = array('Monday'=>'Monday','Tuesday'=>'Tuesday','Wednesday'=>'Wednesday',
                                    'Thursday'=>'Thursday','Friday'=>'Friday','Saturday'=>'Saturday','Sunday'=>'Sunday');?>
                                    <?php echo form_dropdown('week_days[]',$days,set_value('week_days'),['class'=>'form-control select2 select2-hidden-accessible',
                                    'multiple'=>'','data-placeholder'=>"Select Week Days",'style'=>"width: 100%;",'tabindex'=>"-1", 'aria-hidden'=>"true"]);?>
                                  </div>
                              </div>
                              <div class="col-md-3">
                                  <div class="form-group">
                                    <?php echo form_label('Course Duration (Hours) <span style="color:red"> *</span>','per_class_amount',['for'=>'per_class_amount']);?>
                                    <?php echo form_error('course_duration_hours'); ?>
                                    <div class="input-group">
                                      <div class="input-group-addon"><i class="fa fa-fw fa-calendar-plus-o text-red"></i></div>
                                      <?php echo form_input(['name'=>'course_duration_hours','class'=>'form-control','id'=>'','placeholder'=>'Enter Course Duration',
                                      'value'=>set_value('course_duration_hours'),'autocomplete'=>'off']);?>
                                    </div>
                                  </div>
                              </div>
                              <div class="col-md-3">
                                  <div class="form-group">
                                    <?php echo form_label('Fees Per Hour <span style="color:red"> *</span>','per_class_amount',['for'=>'per_class_amount']);?>
                                    <?php echo form_error('class_unit_price'); ?>
                                    <div class="input-group">
                                      <div class="input-group-addon"><i class="fa fa-fw fa-rupee text-red"></i></div>
                                      <?php echo form_input(['name'=>'class_unit_price','class'=>'form-control','id'=>'','placeholder'=>'Fees per Hour',
                                      'value'=>set_value('class_unit_price'),'autocomplete'=>'off']);?>
                                    </div>
                                  </div>
                              </div>

                          </div>
                          <div class="col-md-12">
                              <div class="col-md-3">
                                  <div class="form-group">
                                    <?php echo form_label('Course Start Date<span style="color:red"> *</span>','student_amount',['for'=>'student_amount']);?>
                                    <?php echo form_error('course_start_from'); ?>
                                    <?php echo form_input(['name'=>'course_start_from','class'=>'form-control','id'=>'datepicker','placeholder'=>'Course Strat From',
                                    'value'=>set_value('course_start_from'),'autocomplete'=>'off']);?>
                                  </div>
                              </div>
                              <div class="col-md-9">
                                  <div class="form-group">
                                    <?php echo form_label('Remarks','per_class_amount',['for'=>'per_class_amount']);?>
                                    <?php echo form_error('remarks'); ?>
                                    <div class="input-group">
                                      <div class="input-group-addon"><i class="fa fa-fw fa-commenting text-red"></i></div>
                                      <?php echo form_textarea(['name'=>'remarks','class'=>'form-control','id'=>'','placeholder'=>'Remarks',
                                      'value'=>set_value('remarks'),'rows'=> '1','cols' => '10','autocomplete'=>'off']);?>
                                    </div>
                                  </div>
                              </div>
                          </div>
                      </div>
                  </div>
                  <hr />
                  <?php echo form_submit(['name'=>'save','value'=>'Save','class'=>'btn btn-default pull-right','style'=>'margin-left:5px;background-color: #ffffff;']); ?>
                  <?php echo  form_close();?>
              </div>
          </div>
      </div>
  </section>
</div>
<style>
    .SumoSelect {
        display: block;
        position: relative;
        outline: none;
    }
</style>
<script>
    $('#mdp-demo').multiDatesPicker();
</script>
