<!DOCTYPE html>
<html>


<head>
    <title>Quotes List</title>
</head>

<body>
 <?php 
                    $quotes = Quotes::model()->findByPk($id);
                ?>
 
    <div class="">
        <div class="col-6">
          
            <div class="input-block" style="background-color:white">
                    <b>Quotation  #<?php echo $id;?></b>
            </div>
            
                
        </div>
        <div class="col-5 offset-1" style="color:#101010;">
            <div class="text-right">
                <img src="<?php echo 'images/logo/'.Yii::app()->user->pdf_company_logo; ?>" class="logo">
            </div>
            <br>
            
        </div>
    </div>
    <br>
    <div class="col-md-12">
        <table id="" class="table">
            <thead>
                <tr>
                    <tr>
            <th>No.</th>
            <th>Part No.</th>
            <th>Description</th>
            <th>Brand/Class</th>
            <th>Qty</th>
        </tr>
                    
            </thead>
            <tbody>
             <?php
              $j = 0;
        foreach ($quotes->items as $item) {
            $thisProduct = Store::model()->findByPK($item->product_id);
           
                ?>
                <tr>
                <td><?php echo ++$j; ?></td>
                <td class="cell-left"><?php echo $thisProduct->part_number; ?></td>
                <td class="cell-left"><?php echo $thisProduct->description; ?></td>
                <td class="cell-left"><?php echo  $thisProduct->brand_detail->brand; ?></td>
                 <td class="cell-right"><?php echo  $item->quantity; ?></td>
                
            </tr>
           <?php

        }
        ?>
                   
            </tbody>
        </table>
       
    </div>
    
    <br/>
    <br/>
    
    <htmlpagefooter name="myfooter">

            <div style="text-align:center;width:100%;font-size:10px"><?php echo Yii::app()->user->footer_autogenerated; ?>
        <?php
                  date_default_timezone_set("Asia/Dubai");
                 echo date('d/m/Y')." ".date("h:i:sa"); ?>
    </div>

    
        <div style="border-top: 1px dotted #000000; font-size: 12px; text-align: center; padding-top: 10px; background-color: #d7faeb;">
            <div style="text-align:center;width:100%">
                <b><?php echo Yii::app()->user->footer_line_1; ?></b><br>
                <?php echo Yii::app()->user->footer_line_2; ?>
            </div>
            <div style="text-align:center;width:100%">Page {PAGENO} of {nb} </div>
        </div>
    </htmlpagefooter>
</body>

</html>
