<style>
@page {
	
	margin-top: 1.9cm;
	margin-bottom: 0cm !important;
	margin-left: 0cm;
	margin-right: 0cm;
	header: html_myHeader;
	footer: html_myfooter;
	font-family: 'Oswald', sans-serif;
	
}
</style>
<!DOCTYPE html>
<html>
<head>
	<title>Experience Certificate</title>
	<style>
		@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700,800');
	</style>

</head>


<body style="">
     <?php
        $model_company = MasCompanyWpsDetails::model()->findbyPK($model->employeedetail->employee_wps_company);
         $company_name = "";
            $company_address = "";
            $company_phno = "";
            $company_web_address = "";
            if (!empty($model_company)) {
                $company_name = strtoupper($model_company->company_name);
                $company_address = $model_company->company_address;
                $company_phno = $model_company->phone_number;
                $web = substr($model_company->website, 0, 3);
                if ($web != 'www') {
                    $company_web_address = 'www.';
                }
                $company_web_address.=$model_company->website;
            } else {
                $model_company = MasCompany::model()->findbyPK(Yii::app()->user->master_user_company_id);
                $company_name = strtoupper($model_company->company_name);
                ;
                $company_address = $model_company->billing_address;
                $company_phno = $model_company->genral_phno;
                $web = substr($model_company->genral_web, 0, 2);
                if ($web != 'www') {
                    $company_web_address = 'www.';
                }
                $company_web_address = $model_company->genral_web;
            }
        ?>
    <div class="heading" style="text-align:center;">
            <div class="logo col-2">
                <img src="uploads/profilephotos/<?php echo $model_company->company_logo;?>" style="margin-top: 5px; width: 170px; height: 75px">
            </div>
            <h3 style="margin: 0px;padding: 0px;font-size: 25px;color: #0070c0;font-weight: bold;"><?php echo $company_name; ?></h3>
            <h6 style="font-size: 11px;font-weight:200;color: #0070c0;margin:10px 0px 0px 0px;margin-top:1px;"><?php echo $company_address; ?>; <?php echo $company_phno; ?>; <span style="text-decoration:underline;color:#0000ff;"><?php echo $company_web_address; ?></span></h6>
        </div>
	<br>
       
	<div style="width: 80%; margin: 0 auto; font-family: open sans;">
	<br>

	<div>
		<p>Date: <?php echo date("d/m/Y"); ?></p>
		<p>MIS/HR/021/2018</p>
	</div>

	<br>

	<div style="text-align: center;">
		<h2><u>Experience Certificate</u></h2>
	</div>

	<br>

	<div style="text-align: justify !important;">
		<p>This is to confirm that <b><?php echo $sign.''.$model->employeedetail->employeefullname; ?></b> [<?php echo  $model->employeedetail->employeenationality->nationality; ?> Nationality] Passport number <?php echo $model_document->document_number ?> has been working with our organization as <?php echo  $model->employeedetail->designationdetail->designation_name; ?> from <?php echo date_format(date_create($model->employeedetail->date_join),"d/m/Y") ?> to <?php echo $date_leaving; ?>.</p>
		<p>We wish <?php echo $sign_1; ?> all success in his future endeavours.</p>
	</div>

	<div>
            <h4><?php echo $model_company->company_name; ?></h4>
		<?php
                foreach ($signature as $value) {
                    echo '<h4>'.$value.'</h4>';
                }
                ?> 
	</div>

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

  
   <htmlpagefooter name="myfooter">
     	<br>
        <div style="width:100%;">

              <img src="images/footer-bg.png" style="width:100%;margin-bottom:-50px !important;">
        </div>
    </htmlpagefooter>      

</body>


</html>

