<!DOCTYPE html>
<html>

<head>
    <title>Subledger List</title>
</head>

<body>
    
    <div class="heading">
        <div class="logo col-6">
            <img src="<?php echo 'images/logo/'.Yii::app()->user->pdf_company_logo; ?>" class="logo">
        </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>Subledger List</h1>
        </div>
    </div>
    <div class="clearfix"></div>
    <div class="table-body">
        <table id="tbl_enquiry_table" class="table">
            <thead>
                <tr>
                    <th>#</th>
                    <th>Subledger #</th>
                    <th>Type</th>
                    <th>Description</th>
                </tr>
            </thead>
            <tbody>
                <?php
         $modelitems = Subledger::model()->findAll(array('order' => 'type'));
        foreach ($modelitems as $i => $model) {
            ?>
                    <tr>
                        <td>
                            <?php echo $i+1;?>
                        </td>
                        <td>
                            <?php echo $model->account_no; ?>
                        </td>
                         <td>
                            <?php echo $model->stype->description;?>
                        </td>
                        <td>
                            <?php echo $model->description;?>
                        </td>
                     
                    </tr>
                    <?php } ?>
                    
            </tbody>
        </table>
    </div>
        
    <htmlpagefooter name="myfooter">
          
         <div style="border-top: 1px dotted #000000; font-size: 12px; text-align: center; padding-top: 10px; ">
        <div style="binvoice-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 ERP 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></div>
    </htmlpagefooter>
        <sethtmlpagefooter name="myfooter" page="all" value="on" />
</body>

</html>
