<!DOCTYPE html>
<html>

    <head>
        <title>SIF File Details</title>
    </head>

    <body>
        <div class="heading">
            <div class="logo col-6">
                <img src="<?php echo  'images/logo/'.Yii::app()->user->pdf_company_logo; ?>"/> 
            </div>
            <div class="companay_name col-6 text-right">

            </div>
        </div>
        <div class="clearfix"></div>
        <div class="title">
            <div class="col-6">
                <div style="height: 10px;"></div>
            </div>
            <div class="col-6 text-right">
                <h1>SIF File</h1>
                <div class="details-box">
                </div>
            </div>
        </div>
        <div class="clearfix"></div>
        <div class="filter-item">
            <label>MONTH/YEAR :</label><?php echo $model_sif->salary_month.'/'.date("Y", strtotime($model_sif->processing->payroll_enddate));?>
        </div>
        <div class="table-body">


            <table class="table table-fixed table-primary dataTable">
                <thead>
                    <tr>
                        <th class="text-center tbl-iw nw">No</th>
                        <th class="text-center tbl-iw nw">Branch</th>
                        <th class="text-center tbl-iw nw">Employee Code</th>
                        <th class="text-center tbl-iw nw">Name</th>
                        <th class="text-center tbl-iw nw">SIF Data</th>					
                    </tr>
                </thead>
                <tbody>
                    <?php
                    $edr = "EDR";
                    $end_date = "";
                    $employee_count=count($model_sif_details);
                    foreach ($model_sif_details as $key => $sif_details) {
                        $end_date = $sif_details->end_date;
                        $sif_string = $edr . ',' . $sif_details->personal_file_no . ',' . $sif_details->employee_wpscode . ',' . $sif_details->iban_no . ',' . $sif_details->start_date . ',' . $sif_details->end_date . ',' . $sif_details->total_days . ',' . $sif_details->basic_salary . ',' . $sif_details->salary_amount . ',' . $sif_details->leave_days;
                        ?>
                        <tr>
                            <td><?php echo $j + 1; ?></td>
                            <td><?php echo $sif_details->employeedetail->branch_sponsor->branch_or_sponsor_name; ?></td>
                            <td><?php echo $this->ciphertext($sif_details->employeedetail->employee_code, "d"); ?></td>
                            <td><?php echo $this->ciphertext($sif_details->employeedetail->first_name, "d") . ' ' . $this->ciphertext($sif_details->employeedetail->middle_name, "d") . ' ' . $this->ciphertext($sif_details->employeedetail->last_name, "d"); ?></td>
                            <td><?php echo $sif_string; ?></td>
                        </tr>

                        <?php
                        $j++;
                    }
                    ?>
                </tbody>
            </table>
        </div>
        <!--    mpdf
                <htmlpagefooter name="myfooter">
                    <div style="border-top: 1px dotted #000000; font-size: 12px; text-align: center; padding-top: 10px; ">
                        <div style="text-align:center;width:100%">This report is auto generated by Bluesky project on 
<?php
date_default_timezone_set("Asia/Dubai");
echo date('d/m/Y') . " " . date("h:i:sa");
?> </div>
                        <div style="text-align:center;width:100%">Page {PAGENO} of {nb} </div>
                    </div>
                </htmlpagefooter>
                <sethtmlpagefooter name="myfooter" page="all" value="on" />-->

    </body>

</html>
