<?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; ?>">
        <h3>
            <a href="#" style="overflow-wrap: break-word;"><?php echo $e_value->education_institute_name; ?></a>
            <span id="Assessment_update_btn">
                <span class="editEducationclass">
                    <a href="javascript:void(0)" onclick="viewEditEducation('<?php echo base_url() . 'profile/edit_education_form/' . $e_value->person_education_details_id; ?>', '<?php echo $e_value->person_education_details_id ?>')"><span style="padding-left: 20px;"><i class="fa fa-edit" title="Update Person Education Form"> </i> </span></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>
            </span>
        </h3>
        <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
}