<?php
    $total=0;
    foreach ($cv as $row){

        }?>
  
<div class="row">
    <div class="col-sm-12 col-md-4 candidate-cv">
 
    <div class="card-header">
                                    
                                    <div> <?php echo "<img src='" . base_url().$row->picture."' width=100px; height=100px; class=img-circle>";?></div>
                                </div>
                                <div class="card-content">
                                    <div class="card-content-member">
                                        <h4 class="m-t-0"><?php echo $row->first_name." " .$row->last_name;?></h4>
                                        <p class="m-0"><i class="fa fa-mobile" aria-hidden="true"></i>
                                         <?php echo $row->phone ;?></p>
                                    </div>
                                    <div class="card-content-languages">
                                        <div class="card-content-languages-group">
                                            
                                        </div>
                                        <div class="card-content-languages-group">
                                            
                                             <table class="table table-hover" width="100%">


<caption><?php echo display('personal_information')?></caption>
    <tr>
        <th><?php echo display('name')?></th>
        <td><?php echo $row->first_name." " .$row->last_name;?></td>
    </tr>
    <tr>
        
    <th><?php echo display('phone')?></th>
        <td><?php echo $row->phone ;?></td>
      
        </tr>
           <tr>
           <th><?php echo display('email')?></th>
        <td><?php echo $row->email  ;?></td>
        </tr>
    <tr>
        
        <th><?php echo display('present_address')?></th>
        <td><?php echo $row->present_address ;?></td>
    </tr>
    <tr>
        
        <th> <?php echo display('parmanent_address')?></th>
        <td><?php echo $row->parmanent_address ;?></td>
    </tr>
    <tr>

    <th> <?php echo "Position"?></th>
    <td><?php echo $row->position ;?></td>
    </tr>
   
   
   
     
     
</table>

                                        </div>
                                    </div>
                                    
                               <div class="card-footer">
                                    <div class="card-footer-stats"> 
                                        <div>
                                            <p></p><span class="stats-small"></span>
                                        </div>
                                    </div>
                                    
                                </div>
        
    </div>

</div>
 <div class="col-sm-12 col-md-8 candidate-cv-info">
                            <div class="row">
                                <div class="col-sm-12 col-md-4 rating-block">
                                 <h1> <center><i class="fa fa-graduation-cap" aria-hidden="true"></i></center><center><?php echo display('education')?></center></h1>
                                   
                                </div>
                                <div class="col-sm-12 col-md-8 rating-block">
                                    


                                       <table width="100%" class="table table-hover">

                    <thead>
                        <tr>
                           
                            <th><?php echo display('degree_name')?></th>
                            <th><?php echo display('institute_name')?></th>
                             <th><?php echo display('result')?></th>
                              
                        </tr>
                    </thead>
                    <tbody>
                        <?php if (!empty($edu)) { ?>
                            <?php $sl = 1; ?>
                            <?php foreach ($edu as $que) { ?>
                                <tr class="<?php echo ($sl & 1)?"odd gradeX":"even gradeC" ?>">
                                   
                                    <td><?php echo $que->degree_name; ?></td>
                                    <td><?php echo $que->university_name; ?></td>
                                    <td><?php echo $que->cgp; ?></td>
                                    
                                </tr>
                                
                            <?php } ?> 
                        <?php } ?> 
                    </tbody>
                </table>

                                        
                              
                                </div>          
                          
 </div> 

                         <div class="row">
                                <div class="col-sm-12 col-md-4 rating-block">
                                 <h1><center> <i class="fa fa-laptop" aria-hidden="true"></i></center><br>
<center><?php echo display('past_experience')?></center></h1>
                                   
                                </div>
                                <div class="col-sm-12 col-md-8 rating-block">
                                    

 <table width="100%" class="table table-striped table-hover">

                    <thead>
                        <tr>
                            
                            <th><?php echo display('company_name')?></th>
                            <th><?php echo display('working_period')?></th>
                             <th><?php echo display('position')?></th>
                             <th><?php echo display('supervisor')?></th>
                              
                        </tr>
                    </thead>
                    <tbody>
                        <?php if (!empty($wrk)) { ?>
                            <?php $sl = 1; ?>
                            <?php foreach ($wrk as $que) { ?>
                                <tr class="<?php echo ($sl & 1)?"odd gradeX":"even gradeC" ?>">
                                    
                                    <td><?php echo $que->company_name; ?></td>
                                    <td><?php echo $que->working_period; ?></td>
                                    <td><?php echo $que->duties; ?></td>
                                    <td><?php echo $que->supervisor; ?></td>
                                    
                                </tr>
                                
                            <?php } ?> 
                        <?php } ?> 
                    </tbody>
                </table>


                                        
                              
                                </div>          
                            </div>
                            </div>
                              </div> 
                        

