<?php foreach ($user_work_details as $v_user_work_details) { ?>
    <div class="col-sm-12 text-left gray" style="padding: 5px 0 0 20px" id="View_work_experience<?php echo $v_user_work_details->person_work_details_id ?>">
        <div class="col-sm-12" id="<?php echo 'work_info' . $v_user_work_details->person_work_details_id ?>">    
            <span class="h4 col-sm-12">
                <span> <a href="javascript:void(0)"  id="jobExperience1Title" class="jobExperience1Title"><?php echo $v_user_work_details->designation ?></a></span>
                <span id="workEditBtn<?php echo $v_user_work_details->person_work_details_id ?>"> 
                    <a href="javascript:void(0)" 
                       id="<?php echo $v_user_work_details->person_work_details_id ?>" 
                       onclick="viewEditWorkExperience('<?php echo base_url() ?>edit-work-experience-form/<?php echo $v_user_work_details->person_work_details_id; ?>', '<?php echo $v_user_work_details->person_work_details_id; ?>')">
                        <span style="margin-left: 10px;"><i class="fa fa-pencil" title="Update Work Experience"></i></span></a></span>
                <span style="margin-left: 10px;" id="workDeleteBtn<?php echo $v_user_work_details->person_work_details_id ?>">
                    <a href="javascript:void(0)">
                        <i class="fa fa-trash-o" title="Delete Work Experience"></i>
                    </a>
                </span>                                                        
            </span>
            <span class="col-sm-12 Experience1OrganizationName" id="Experience1OrganizationName"><?php echo $v_user_work_details->company_name ?></span>
            <span class="col-sm-12" id="Experience1_Duration">
                <span id="work_start_date" class="work_start_date">   <?php echo date('F Y', strtotime($v_user_work_details->job_start_date)) ?> </span>
                <?php
                $current_status = $v_user_work_details->work_currently_here;
                if ($current_status == 1) {
                    echo ' At Present Time';
                } else {
                    echo date('F Y', strtotime($v_user_work_details->job_end_date));
                }
                ?> 
                |
                <span id="company_office_address" class="company_office_address">
                    <?php echo $v_user_work_details->company_address ?>
                </span>
            </span>
            <span class="col-sm-12"><br></span>
            <span class="col-sm-12">
                <p id="Experience1_Details" class="text-justify Experience1_Details"> 
                    <?php echo $v_user_work_details->job_responsibility_details ?>
                </p>
            </span>

        </div>
    </div>
<?php } 
    echo $new_work_experience_pagination_link;
?>