

<div class="col-sm-12 text-left" style="padding: 5px 0 0 20px">
    <span><i class="fa fa-university fa-2x">&nbsp;&nbsp;&nbsp;</i>Raise your profile with future leaders!</span>
    <?php if ($this->session->person_id === $this->session->view_person_id) { ?>
        <span  class="pull-right" id="add_education_btn" style="display: block;padding-right:20px ">
            <a href="javascript:void(0)" onclick="addEducationForm('<?php echo base_url() . 'add-education-form/' . $person_info->person_id ?>')">
                <i class="fa fa-plus-square" title="Add Education"></i>
            </a>
        </span>
    <?php } ?>
</div>


<!--Add Education form-->
<div class="col-sm-12" id="add_education_form" style="display:none"></div>                      
<!--View Education-->
<div class="col-sm-12 text-left gray" style="padding: 5px 0 0 20px" id="view_education_details"> 
    <?php
    foreach ($user_education_details as $e_value) {
        ?>                                                
        <div class="col-sm-12" id="<?php echo 'education_form_view' . $e_value->person_education_details_id; ?>">
            <h4 class="person_education_detail">
                <a href="javascript:void(0)" style="overflow-wrap: break-word"><?php echo $e_value->education_institute_name; ?></a>
                <span id="Assessment_update_btn" style="padding-left: 20px;">
                    <?php if ($this->session->person_id === $this->session->view_person_id) { ?>
                        <span class="editEducationclass">
                            <a href="javascript:void(0)" onclick="viewEditEducation('<?php echo base_url() . 'edit-education-form/' . $e_value->person_education_details_id; ?>', '<?php echo $e_value->person_education_details_id ?>')"><i class="fa fa-edit" title="Update Person Education Form"> </i></a>
                        </span>
                        <span>
                            <a href="javascript:void(0)" id="deleteEducation<?php echo $e_value->person_education_details_id; ?>"><i class="fa fa-trash" title="Delete"> </i></a>
                        </span>
                    <?php } ?>
                </span>
            </h4>
            <span id="view_educational_description" style="overflow-wrap: break-word;"><?php echo $e_value->educational_description; ?></span><br>
            <span><?php
                if (strtotime($e_value->start_time_period)) {
                    echo date('Y', strtotime($e_value->start_time_period));
                }
                ?>
            </span> –<span> 
                <?php
                if ($e_value->person_current_education_instute == 1) {
                    echo ' At Present Time';
                } else {
                    if (strtotime($e_value->end_time_period)) {
                        echo date('Y', strtotime($e_value->end_time_period));
                    }
                }
                ?></span>

        </div>
        <div class="col-sm-12"><br></div>
        <div class="modal fade" style="" id="deleteEducationModal<?php echo $id = $e_value->person_education_details_id; ?>" tabindex="-1" role="dialog" aria-labelledby="changeRole" aria-hidden="true">
            <?php
            $id = $e_value->person_education_details_id;
            $message = "Are You Sure To Delete Education Details ?";
            $this->cf->view_modal($id, $message);
            ?>
        </div>                                                
    <?php }
    ?>
</div>
<?php echo $profile_education_pagination; ?>