<?php
$current_date = date('Y-m-d');
?>
<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;


    }
    @import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700,800');

    table, tr, td{
        border:solid 1px #333333;
        border-collapse: collapse;
        padding: 10px;

    }
</style>
<!DOCTYPE html>
<html>
    <head>
        <title>Service Confirmation</title>

    </head>
    <?php
    $effective_date = '';
    if ($model->visit_from != '0000-00-00' && $model->visit_from != '') {
        $effective_date = date("d/m/Y", strtotime($model->visit_from));
    }
    ?>
    <body style="width: 960px; margin: 0 auto; font-family: open sans; font-size: 15px !important;">
        <div class="">
            <div class="col-6">
                <br>
                <div class="h3" style="margin-top: 0;margin-bottom: 0;">
                    <?php echo " "; ?>
                </div>
            </div>
            <div style="text-align: right;margin-right: 50px;">
                <div>
                    <img src="uploads/logo/<?php echo $model->employeedetail->branch_sponsor->branch_or_sponsor_logo; ?>" style="height: 70px">
                </div>

            </div>
        </div>
        <br>

        <div class="page" style="width: 80%; margin: 0 auto; font-family: open sans;">
            <div class="">
                <div style="text-align: left">
                    <p>Date: <?php echo $effective_date; ?></p>
                    <p>To: &nbsp;&nbsp;<?php echo $model->employeedetail->employeefullname; ?><br>
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<?php echo $model->employeedetail->designationdetail->designation_name; ?><br>
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<?php echo $model->employeedetail->employeecode; ?></p><br>

                </div>
                <br>
                <div style="text-align: left;">
                    <h4>Subject: Service Confirmation </h4>
                </div>                
                <div style="text-align: left;">
                    Dear <?php echo $sign . '' .$model->employeedetail->employeefullname; ?>,
                </div>
                <div style="text-align: justify;">
                    <p>We would like to congratulate you on your successful completion of the probationary period of six months in our organization. We are glad to have received satisfactory reports from your superior regarding your performance during the said period.  </p>
                    <p>The management wishes to confirm your continued service as <?php echo $model->employeedetail->designationdetail->designation_name; ?> of our esteemed company with immediate effect from today,<?php echo $effective_date; ?>.</p>
                    <p>We are expecting greater efforts from you to do better at work for ultimately setting the organization on the growth path. </p>
                    <p>Wish you all the best!</p>                    
                    <p>Best Regards,</p>
                    
                </div><br><br>
                <div>                    
                    <?php
                    foreach ($signature as $value) {
                        echo '<p>' . $value . '</p>';
                    }
                    ?> 
                    <br/><br/><br>
                    <?php echo $model->employeedetail->employeefullname; ?>
                    <br/>
                </div>

            </div>
        </div>
        <br>
<?php
if($model->employeedetail->branch_sponsor->footer_logo!=''){
?>

    <htmlpagefooter name="myfooter" style="">
        <div style="width:100%; border-top: 1px solid black;">
            <img src="<?php echo Yii::app()->baseUrl; ?>/uploads/logo/<?php echo $model->employeedetail->branch_sponsor->footer_logo; ?>" style="width:100%;margin-bottom:-20px !important;">
        </div>
    </htmlpagefooter>
    <?php } ?>
</body>

</html>