<?php defined('BASEPATH')or exit("NO DIRECT ACCESS iS ALLOWED");?>
<?php echo $this->uri->segment(n);?>
<style>
  .content_edit{
    min-height: 250px;
    padding: 15px;
    margin-right: auto;
    margin-left: auto;
    padding-left: 15px;
    padding-right: 15px;
  }
  .nav-tabs-custom {
    margin-bottom: 20px;
    background: #fff;
    box-shadow: 0 1px 1px rgba(0,0,0,0.1);
    border-radius: 3px;
  }
  .nav-tabs-custom>.nav-tabs {
    margin: 0;
    border-bottom-color: #f4f4f4;
    border-top-right-radius: 3px;
    border-top-left-radius: 3px;
  }
  .nav-tabs-custom>.nav-tabs>li {
    border-top: 3px solid transparent;
    margin-bottom: -2px;
    margin-right: 5px;
  }
  .nav-tabs-custom>.nav-tabs>li.active {
    border-top-color: #ffa500;
  }
  .nav-tabs-custom>.nav-tabs>li:first-of-type {
    margin-left: 0;
  }
  .nav-tabs>li.active>a, .nav-tabs>li.active>a:focus, .nav-tabs>li.active>a:hover {
    color: #555;
    cursor: default;
    background-color: #fff;
    border: 1px solid #ddd;
    border-bottom-color: transparent;
  }
  .nav-tabs-custom>.nav-tabs>li>a {
    color: #fff;
    border-radius: 0;
  }
  .nav-tabs-custom>.nav-tabs>li>a, .nav-tabs-custom>.nav-tabs>li>a:hover {
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    background: #ffa500;
    margin: 0;
  }
  .nav-tabs-custom>.nav-tabs>li.active>a, .nav-tabs-custom>.nav-tabs>li.active:hover>a {
    background-color: #fff;
    color: #444;
  }
  .nav-tabs-custom>.nav-tabs>li.active>a {
    border-top-color: transparent;
    border-left-color: #f4f4f4;
    border-right-color: #f4f4f4;
  }
  .nav-tabs-custom>.nav-tabs>li:first-of-type.active>a {
    border-left-color: transparent;
  }
  .nav-tabs > li > a:hover {
    border-color: none!important;
  }
  .form-control{
    border-radius: 0;
    box-shadow: none;
    border-color: #d2d6de;
  }
  .label_edit {
    font-weight: 700;
    font-size: 12px;
    color: #000;
    margin: 0 0 10px 0;
  }
  .tab-content {
    border-top: 1px solid #eee;
    /* box-shadow: 10px 8px 8px rgba(0,0,0,0.1); */
    margin-top: 3px;
  }
  .general-fc {
    margin-top: 16px;
    margin-bottom: 10px;
  }
  .nav.nav-tabs a{
    height: 38px;
    line-height: 20px;
  }
  .nav.nav-tabs a:hover {
    height: 38px;
  }
  .nav.nav-tabs .active a:hover {
    height: 38px;
  }
  .btn_yellow{
    background-color: #ffa500;
    border-color: #ffa500;
    color: #fff
  }
  textarea.form-control {
    height: 100px;
  }
.nav-tabs_basic {
    border-top: 2px solid #ffa500;
    padding: 2px 0px;
}
  .basic_info{
    text-decoration: none;
    padding: 0px 13px!important;
    margin-top: 2px;
    font-weight: 500;
    color: #333;
    font-size: 16px;
}

</style>

  <link rel="stylesheet" href="https://theonlinegurukul.com/assets/web/plugins/calender/fullcalendar.min.css">

 <link rel="stylesheet" href="https://theonlinegurukul.com/assets/web/css/calender.css">

  <link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
<?php

//print_r(array($list,$list));die;
?>

<section class="content_edit">
  <div class="row">
    <!-- /.col -->
    <div class="col-md-12">
      <div class="nav-tabs-custom">
		 <ul class="nav_basic nav-tabs_basic">
          <li>
            <a href="#personal-profile"class="basic_info">Basic Information
            </a>
          </li>
        </ul>

        <div class="tab-content">
          <div class="active tab-pane" id="personal-profile">
            <?php echo form_open_multipart('Student/complete_profile',['name'=>'','id'=>'']);?>

                <div class="row general-fc">
              <div class="col-md-12">
                <div class="col-md-3">
                  <div class="form-group">
                    <?php echo form_label('First Name','first_name',['for'=>'first_name','class'=>'label_edit']);?>
                    <?php echo form_error('first_name'); ?>
                    <?php echo form_input(['name'=>'first_name','class'=>'form-control input-sm','id'=>'first_name','placeholder'=>'Enter First Name here',
                    'value'=>set_value('first_name',ucwords($list->first_name)),"autocomplete"=>"off"]);?>
                  </div>
                </div>
                <div class="col-md-3">
                  <div class="form-group">
                    <?php echo form_label('Last Name','last_name',['for'=>'last_name','class'=>'label_edit']);?>
                    <?php echo form_error('last_name'); ?>
                    <?php echo form_input(['name'=>'last_name','class'=>'form-control input-sm','id'=>'last_name','placeholder'=>'Enter Last Name here',
                    'value'=>set_value('last_name',ucwords($list->last_name)),"autocomplete"=>"off"]);?>
                  </div>
                </div>
                <div class="col-md-3">
                  <div class="form-group">
                    <?php echo form_label('Mobile','mobile',['for'=>'mobile','class'=>'label_edit']);?>
                    <?php echo form_error('mobile'); ?>
                    <?php echo form_input(['name'=>'mobile','class'=>'form-control input-sm','id'=>'mobile','placeholder'=>'Enter Mobile here',
                    'value'=>set_value('mobile',ucwords($list->mobile)),"autocomplete"=>"off"]);?>
                  </div>
                </div>
                <div class="col-md-3">
                  <div class="form-group">
                    <?php echo form_label('Date of Birth','dob',['for'=>'dob','class'=>'label_edit']);?>
                    <?php echo form_error('datepicker'); ?>
                    <?php echo form_input(['name'=>'dob','class'=>'form-control input-sm','id'=>'datepicker','placeholder'=>'Date of Birth',
                    'value'=>set_value('dob',ucwords($list->dob)),"autocomplete"=>"off"]);?>
                  </div>
                </div>
                <div class="col-md-3">
                  <div class="form-group">
                    <?php echo form_label('Gender','gender',['for'=>'gender','class'=>'label_edit']);?>
                    <?php echo form_error('gender'); ?>
                    <?php $options=array(''=>'Select Gender','male'=>'Male','female'=>'Female','other'=>'Other');  ?>
                    <?php echo form_dropdown('gender',$options,set_value('gender',$list->gender),['class'=>'form-control input-sm',"autocomplete"=>"off"]);?>
                  </div>
                </div>
                <div class="col-md-3">
                  <div class="form-group">
                    <?php echo form_label('County','countries',['for'=>'countries','class'=>'label_edit']);?>
                    <?php echo form_error('counry_id'); ?>
                    <select id='sel_country' class="form-control input-sm" name="country_id" autocomplete="off">
                      <!-- <option value="" >Select Country
                      </option> -->
                      <?php
                        foreach($country as $country1=>$country_name){
                          if($list->country_id==$country1){
                          echo "<option  selected value='".$country1."'>".strtoupper($country_name)."</option>";
                          }else{
                          echo "<option value='".$country1."'>".strtoupper($country_name)."</option>";
                          }
                        }
                    ?>
                    </select>
                  </div>
                </div>
                <div class="col-md-3">
                  <div class="form-group">
                    <?php echo form_label('State','states',['for'=>'states','class'=>'label_edit']);?>
                    <?php echo form_error('state_id'); ?>
                    <select id='sel_state' class="form-control input-sm" name="state_id" autocomplete="off">
                      <option value ="" >Select State</option>

                      <option selected value ="<?=$list->state_id;?>" ><?=$list->state;?></option>

                    </select>
                  </div>
                </div>
                <div class="col-md-3">
                  <div class="form-group">
                    <?php echo form_label('City','cities',['for'=>'cities','class'=>'label_edit']);?>
                    <?php echo form_error('city_id'); ?>
                    <select id='sel_city' class="form-control input-sm" name="city_id" autocomplete="off" >
                      <option value="">Select City</option>
                      <option selected value ="<?=$list->city_id;?>"><?=$list->city;?></option>
                    </select>
                  </div>
                </div>

                <div class="col-md-3">
                  <div class="form-group">
                    <?php echo form_label('Pin Code','zip_code',['for'=>'pin_code','class'=>'label_edit']);?>
                    <?php echo form_error('pin_code'); ?>
                    <?php echo form_input(['name'=>'pin_code','class'=>'form-control input-sm','id'=>'zip_code','placeholder'=>'Enter Pin Code here',
                  'value'=>set_value('pin_code',$list->pin_code),"autocomplete"=>"off"]);?>
                  </div>
                </div>

                <div class="col-md-3">
                   <div class="form-group">
                    <?php echo form_label('Parent First Name','parent_first_name',['for'=>'parent_first_name','class'=>'label_edit']);?>
                    <?php echo form_error('parent_fname'); ?>
                    <?php echo form_input(['name'=>'parent_fname','class'=>'form-control input-sm','id'=>'parent_fname','placeholder'=>'Enter Parent First Name here',
                    'value'=>set_value('parent_fname',ucwords($list->parent_fname)),"autocomplete"=>"off"]);?>
                  </div>
                </div>
                <div class="col-md-3">
                   <div class="form-group">
                    <?php echo form_label('Parent Last Name','parent_last_name',['for'=>'parent_last_name','class'=>'label_edit']);?>
                    <?php echo form_error('parent_lname'); ?>
                    <?php echo form_input(['name'=>'parent_lname','class'=>'form-control input-sm','id'=>'parent_last_name','placeholder'=>'Enter Parent Last Name here',
                    'value'=>set_value('parent_lname',ucwords($list->parent_lname)),"autocomplete"=>"off"]);?>
                  </div>
                </div>

                <div class="col-md-3">
                  <div class="form-group">
                    <?php echo form_label('Parent Email','parent_email',['for'=>'mobile','class'=>'label_edit']);?>
                    <?php echo form_error('parent_email'); ?>
                    <?php echo form_input(['name'=>'parent_email','class'=>'form-control input-sm','id'=>'parent_email','placeholder'=>'Enter Parent Email here',
                'value'=>set_value('parent_email',$list->parent_email),"autocomplete"=>"off"]);?>
                  </div>
                </div>
               <div class="col-md-3">
                  <div class="form-group">
                    <?php echo form_label('Parent Mobile','parent_mobile',['for'=>'parent_mobile','class'=>'label_edit']);?>
                    <?php echo form_error('parent_mobile'); ?>
                    <?php echo form_input(['name'=>'parent_mobile','class'=>'form-control input-sm','id'=>'parent_mobile','placeholder'=>'Enter Parent Mobile here',
              'value'=>set_value('parent_mobile',ucwords($list->parent_mobile)),"autocomplete"=>"off"]);?>
                  </div>
                </div>

                 <div class="col-md-3">
                  <div class="form-group">
                    <?php echo form_label('School Name','school_name',['for'=>'school_name','class'=>'label_edit']);?>
                    <?php echo form_error('school_name'); ?>
                    <?php echo form_input(['name'=>'school_name','class'=>'form-control input-sm','id'=>'school_name','placeholder'=>'School Name',
                  'value'=>set_value('school_name', ucfirst($list->school_name)),"autocomplete"=>"off"]);?>
                  </div>
                </div>
                 <div class="col-md-3">
                  <div class="form-group">
                    <?php echo form_label('School Adddres','school_address',['for'=>'school_address','class'=>'label_edit']);?>
                    <?php echo form_error('school_address'); ?>
                    <?php echo form_textarea(['name'=>'school_address','class'=>'form-control input-sm','id'=>'school_address','placeholder'=>'School Address',
                  'value'=>set_value('school_address', ucfirst($list->school_address)),"autocomplete"=>"off"]);?>
                  </div>
                </div>
                <div class="col-md-3">
                 <div class="form-group">
                   <?php echo form_label('Current Adddres','school_address',['for'=>'school_address','class'=>'label_edit']);?>
                   <?php echo form_error('address'); ?>
                   <?php echo form_textarea(['name'=>'address','class'=>'form-control input-sm','id'=>'address','placeholder'=>'Current Address',
                 'value'=>set_value('address', ucfirst($list->school_address)),"autocomplete"=>"off"]);?>
                 </div>
               </div>
                 <!-- <div class="col-md-3">
                  <div class="form-group">
                    <?php //echo form_label('Student Photo','school_name',['for'=>'school_name','class'=>'label_edit']);?>
                    <input type="file" id="input-file-now" class="dropify" data-default-file=""/>
                  </div>
                </div> -->


              <div class="form-group margin-bottom-none">

                <div class="col-sm-9">

                </div>
                <div class="col-sm-3">
                  <?php echo form_submit(['name'=>'save','value'=>'Save','class'=>'btn btn-danger btn-sm btn-block btn-rounded pull-right btn_yellow']); ?>
                </div>
              </div>
            </div>
            <?php echo form_close();?>
          </div>

        </div>


      </div>
      <!-- /.nav-tabs-custom -->
    </div>
    <!-- /.col -->
  </div>
  </div>
  <!-- /.row -->
</section>
