<?php

if (isset(Yii::app()->user->master_user_company_id) && (int) Yii::app()->user->master_user_company_id > 0) {

    $company_id = Yii::app()->user->master_user_company_id;

}

$modelCompanyDetails = MasCompany::model()->findByPk($company_id);



if (isset(Yii::app()->user->user_warehouse_id)) {

    $warehouse_id = (int) Yii::app()->user->user_warehouse_id;

}

$modelWarehouse = new MasInventoryWarehouse();

if ($warehouse_id > 0) {

    $modelWarehouse = $modelWarehouse->findByPk($warehouse_id);

    //$company_name = $modelWarehouse->warehouse_outlet_name;

    //$billing_address = $modelWarehouse->address;

   // $logo = 'uploads/warehouse/thumbs/' . $modelWarehouse->upload_image;

}

?>

<htmlpagefooter name="myfooter">

   

            <div class="col-12" style="text-align:center;font-size: 11px;">

   
                <!--<p style="text-align:center;font-size:11px;padding-right:17px;margin-top:80px;">-->
                <p class="footer-text" >
                    <!-- <div class="">
                         <table class="box" style="border-collapse: collapse;text-align:center;display:flex;margin:0 auto;font-size: 11px;border:1px solid lightgrey;width:95% ">
                            <tr>
                            <td style="padding: 2px;">Document No.</td>
                            <td style="padding: 2px;">Original Issue: </td>
                            <td style="padding: 2px;">Rev: </td>
                            <td style="padding: 2px;">Rev. Date</td>
                            </tr>
                            </table>
                    </div> -->
                           
                    <i><?php echo $modelComapnyDetails->footer_autogenerated; ?>Printed from Bluesky Buffer Stock Module on 

                    <?php
                        date_default_timezone_set("Asia/Dubai");
                       echo date('d/m/Y') . " at " . date("h:i:s:a");
                    ?></i>

            </div>


        <div class="footer-text2">

            <div style="text-align:center;width:100%;font-size:10px;">

                <b><?php echo nl2br($modelCompanyDetails->footer_line_one) ?>

                </b>

                <br/>

                <?php echo nl2br($modelCompanyDetails->footer_line_two)

                ?>

            </div>

            <div style="text-align:center;width:100%;font-size:10px;">Page {PAGENO} of {nb} </div>

        </div>

</htmlpagefooter>

<sethtmlpagefooter name="myfooter" page="all" value="on" />