<!DOCTYPE html>
<html>
<head>
	<title>NOC-RTA</title>
	<style>
		@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700,800');
                @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>
</head>


<body>
<?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: 24px;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>
	<br>
	<br>
            <?php
        $model_company = MasCompanyWpsDetails::model()->findbyPK($model->employeedetail->employee_wps_company);
        ?>
	<div>
		<p>Date: <?php echo date("d/m/Y"); ?></p>
		<p>MIS/HR/<?php echo $ref_no; ?>/<?php echo date("Y"); ?></p>
		<p>To : Roads and Transport Authority- RTA, UAE</p>
	</div>

	<br>

	<div style="text-align: center;">
		<h3><u>Subject: No Objection Letter for Driving License</u></h3>
	</div>

	<br>

	<div>
		<p style="text-align: justify;">This is to confirm that <b><?php echo $sign.''.$this->ciphertext($model->employeedetail->first_name,'d').''.$this->ciphertext($model->employeedetail->last_name,''); ?></b> [<?php echo $model->employeedetail->employeenationality->nationality ?> Nationality] Holding Passport Number <?php echo $model_document->document_number ?> is under our sponsor under the profession of <?php echo $model->employeedetail->designationdetail->designation_name; ?>.</p>
		<p style="text-align: justify;">This letter has been issued on the request of the employee and <?php echo $model_company->company_name; ?> has no objection for <?php echo $sign_1; ?> to apply for driving license in Dubai UAE.
		</p>
	</div>

	<div>
		<h4>Thanks & Regards,</h4>
		       <?php
                        foreach ($signature as $value) {
                            echo '<h4><strong>'.$value.'</strong></h4>';
                    }
                ?>
	</div>

	<br>
	<br>
	<br>
	

	<div>
		
	</div>


</body>
</html>