<aside class="right-side">
    <section class="content-header">
        <div class="title_bar">
            <h1 class="major_txt_color">Employee View</h1>
            <div class="breadcrumb_container"><?php echo breadcrumb_links();?></div>
        </div>
    </section>
    <section class="content">
        <div class="row">
            <div class="col-xs-12">
                <div class="box box-danger">
                    <div class="box-body">
                        <div class="col-xs-12">
                            <div class="col-md-6">
                                <div class="form-group">
                                    <span class="first-coln">Name</span>
                                    <span class="seperator">:</span>
                                    <span class="second-coln"><?php echo text($employee->name);?></span>
                                </div>
                                
                                <div class="form-group">
                                    <span class="first-coln">Designation</span>
                                    <span class="seperator">:</span>
                                    <span class="second-coln"><?php echo text($employee->designation);?></span>
                                </div>
                                
                                <div class="form-group">
                                    <span class="first-coln">Date of Birth</span>
                                    <span class="seperator">:</span>
                                    <span class="second-coln"><?php echo text($employee->dob);?></span>
                                </div>
                                
                                <div class="form-group">
                                    <span class="first-coln">Address</span>
                                    <span class="seperator">:</span>
                                    <span class="second-coln"><?php echo text($employee->address);?></span>
                                </div>
                                
                                <div class="form-group">
                                    <span class="first-coln">Passport No</span>
                                    <span class="seperator">:</span>
                                    <span class="second-coln"><?php echo text($employee->passport_no);?></span>
                                </div>
                                
                                <div class="form-group">
                                    <span class="first-coln">Passport Valid Upto</span>
                                    <span class="seperator">:</span>
                                    <span class="second-coln"><?php echo ($employee->passport_valid_to != '01-01-1970') ? $employee->passport_valid_to : 'N/A';?></span>
                                </div>
                                <div class="form-group">
                                    <span class="first-coln">Work Permit No</span>
                                    <span class="seperator">:</span>
                                    <span class="second-coln"><?php echo text($employee->work_permit_no);?></span>
                                </div>
                                <div class="form-group">
                                    <span class="first-coln">Security Bond No</span>
                                    <span class="seperator">:</span>
                                    <span class="second-coln"><?php echo text($employee->security_bond_no);?></span>
                                </div>
                                
                                <div class="form-group">
                                    <span class="first-coln">Status</span>
                                    <span class="seperator">:</span>
                                    <span class="second-coln"><?php echo ($employee->status_str);?>
                                    </span>
                                </div>
                            </div>  
                            
                            <div class="col-md-6">
                                <div class="form-group">
                                    <span class="first-coln">Date of Application</span>
                                    <span class="seperator">:</span>
                                    <span class="second-coln"><?php echo ($employee->date_of_app != '01-01-1970') ? $employee->date_of_app : 'N/A';?></span>
                                </div>
                                <div class="form-group">
                                    <span class="first-coln">Date of Joined</span>
                                    <span class="seperator">:</span>
                                    <span class="second-coln"><?php echo ($employee->date_of_join != '01-01-1970') ? $employee->date_of_join : 'N/A';?></span>
                                </div>
                                <div class="form-group">
                                    <span class="first-coln">Date of Expired</span>
                                    <span class="seperator">:</span>
                                    <span class="second-coln"><?php echo ($employee->date_of_expired != '01-01-1970') ? $employee->date_of_expired : 'N/A';?></span>
                                </div>
                                <div class="form-group">
                                    <span class="first-coln">Date of Renewal</span>
                                    <span class="seperator">:</span>
                                    <span class="second-coln"><?php echo ($employee->date_of_renewal != '01-01-1970') ? $employee->date_of_renewal : 'N/A';?></span>
                                </div>

                                <div class="form-group">
                                    <span class="first-coln">Contact No:[S]</span>
                                    <span class="seperator">:</span>
                                    <span class="second-coln"><?php echo text($employee->hps);?></span>
                                </div>

                                <div class="form-group">
                                    <span class="first-coln">Contact No:[I]</span>
                                    <span class="seperator">:</span>
                                    <span class="second-coln"><?php echo text($employee->hpi);?></span>
                                </div>
                                 <div class="form-group">
                                    <span class="first-coln">WCI Insurance No</span>
                                    <span class="seperator">:</span>
                                    <span class="second-coln"><?php echo text($employee->wci_insurance_no);?></span>
                                </div>
                                <div class="form-group">
                                    <span class="first-coln">Insurance Valid Upto</span>
                                    <span class="seperator">:</span>
                                    <span class="second-coln"><?php echo ($employee->insurance_valid_to != '01-01-1970') ? $employee->insurance_valid_to : 'N/A';?></span>
                                </div>
                                
                                <div class="form-group float-clear">
                                    <span class="first-coln">Photo</span>
                                    <span class="seperator">:</span>
                                    <span class="second-coln">
                                        <?php
                                            if( !empty( $employee->image ) ) :
                                                ?>
                                                    <div class="img-view-preview">
                                                        <img src="<?php echo base_url() . EMP_DIR . $employee->image; ?>" >
                                                    </div>
                                                <?php
                                            else :
                                                echo 'Not available';
                                            endif;
                                        ?>
                                    </span>    
                                        
                                </div>
                            </div>
                        </div>
                        <div class="box-footer form-actions float-clear"></div>
                    </div><!-- /.box-body -->
                </div><!-- /.box -->
            </div><!-- /.col-xs-12 -->
        </div><!-- /.row -->
    </section><!-- /.content -->
</aside>