 <?php 

        $crm_login_company_id       = Yii::app()->user->master_user_company_id;
        $privillage_modal           = new MasCompanySettings();
        $privillage_condition       = 'crm_company_id='.$crm_login_company_id;
        $privillage_count           = $privillage_modal->count(array('condition'=>$privillage_condition));
        $privillage_settings_module = $privillage_modal->find(array('condition'=>$privillage_condition));
        $master_permission        = $privillage_settings_module->permissions;
        $master_permission_array  = json_decode($master_permission, true);
        
        $bonus_quantity             = $privillage_settings_module->bonus_quantity;
        
        $modelQuotes = Quotes::model()->findByPk($id);
        $mpdf->use_kwt = true;
    ?>


<!DOCTYPE html>
<html>
<head>
 <title>Sales Quotation List</title>
<style>
body{padding:0px!important;font-size:12px;}
table{
  border-collapse: collapse;}
.item_table {
  border-collapse: collapse;
  font-size:12px!important;
  margin:0px;
}
table.item_table,.item_table th,.item_table td {
  border: 1px solid #7a1d8b; 
  font-family:'Times New Roman', Times, serif;
  padding:8px;
  margin-left:1px;
} 


table.item_table table,.item_table table th,.item_table table td {
  border: 0px solid #7a1d8b; 
  font-family:'Times New Roman', Times, serif;
  padding:0px; 
} 

table.item_table th{
	/*background: #7a1d8b;*/
	background: #Fff;
	color: #7a1d8b;
}

 .second-colom{

      height:100px;

       border-bottom:1px solid;

        text-align:center;

        width:100%;

 }


.nobdr_table, .nobdr_table td{ border:none!important;padding:0px!important}
@media print {
.start-newpage{page-break-before:always;display: block;}
}
</style>

</head>
<body style="font-family: "Times New Roman", Times, serif">

<div class="main" >
<htmlpageheader name="firstpage" style="display:none">
</htmlpageheader>

<htmlpageheader name="otherpages" style="display:none">
      <div style="text-align:center; float:left; width:100%;font-family:'Times New Roman', Times, serif;font-style:italic;margin-bottom:10cm;"> 

   <img src="images/logo.png" style="height:90px;"/><br />
    ---- Page {PAGENO} ----
   </div>
</htmlpageheader>

<sethtmlpageheader name="firstpage" value="off" show-this-page="1" />
<sethtmlpageheader name="otherpages" value="on" />

<div >
    <div class="header" style="width:100%;float: left;border-bottom: 6px solid #850EA6;padding-bottom:10px;">

   <div style="text-align:left; float:left; width:37%; font-family:'Times New Roman', Times, serif;"> 

    

     <p style="margin:0px;padding:0px;font-size: 18px;"><span style="color:#b61f70;">ACE</span><span style="color:#0080e2;"> CENTRO </span><span style="color:#782a88;" > ENTERPRISES</span></p>

     <div style="float:left;font-size:12px;line-height:16px;">

      <p style="padding: 0px;margin:0px;float: left;">P. O. Box 95325, Abu Dhabi - U.A.E.</p>

      <p style="padding: 0px;margin:0px;float: left;">TRN	:	100226227500003</p>

      <p style="padding: 0px;margin:0px;float: left;">T	&nbsp;	&nbsp; &nbsp;: +971 2 6737900 </p>

      <p style="padding: 0px;margin:0px;float: left;">F	&nbsp;	&nbsp; &nbsp;:	+971 2 6737800</p>

      <p style="padding: 0px;margin:0px;float: left;">E	&nbsp;	&nbsp; &nbsp;:	info@acecentro.com</p>

      <p style="padding: 0px;margin:0px;float: left;">W&nbsp;	&nbsp; &nbsp;:	www.acecentro.com </p>

      </div>

   </div>

  <div style="text-align:center; float:left; width:30%;"> 

   <img src="images/logo.png" style="margin-top:10px;height:110px;"/>

   </div>

   <div style="float:right; width:30%;"> 

   <p style="text-align:right;margin:0px;padding:0px;font-size: 20px;"><span style="color:#b61f70;float:right;text-align:right;font-family:tahoma;">ايـــس</span><span style="color:#0080e2;float:right;text-align:right;font-family:tahoma;"> سينـتـرو </span><span style="color:#782a88;float:right;text-align:right;font-family:tahoma;" > للــمشـاريع</span></p>
   <div style="float:left;font-size:12px;text-align:right;">
 	<p style="margin:0px;float: right;font-family:tahoma;">صندوق بريد 95325 ، أبو ظبي - الإمارات العربية المتحدةم.</p>
      <p style="margin:0px;float: right;font-family:tahoma;">رقم التسجيل الضريبي : 100226227500003</p>
      <p style="margin:0px;float: right;font-family:tahoma;">+971 2 6737900	: ت </p>

      <p style="margin:0px;float: right;font-family:tahoma;">+971 2 6737800 : ف </p>

      <p style="margin:0px;float: right;font-family:tahoma;">info@acecentro.com : لإ </p>

      <p style="margin:0px;float: right;font-family:tahoma;">www.acecentro.com : إ    </p>

      </div>

 </div>

</div>
<div  style="width:100%;float: left;margin-top: 10px;font-size:12px;font-family:'Times New Roman', Times, serif;"> 

 <div style="text-align:left; float:left; width:65%;" >

  <div style="float:left;">

  <span style="font-weight:bold;padding-bottom: 6px;float: left;"><?php echo $modelQuotes->customer->customer_name;?> </span><br />

  <span style="padding-bottom: 6px;float: left;"><?php if(!empty($modelQuotes->customer->customer_address)){echo $modelQuotes->customer->customer_address.",";}?>
<?php if(!empty($modelQuotes->customer->customer_postal_code)){?>P. O. Box <?php echo $modelQuotes->customer->customer_postal_code;?><?php } ?><br />
  <?php if(!empty($modelQuotes->customer->customer_city)){echo $modelQuotes->customer->customer_city.",";}?>
  <?php if(!empty($modelQuotes->customer->customer_country)){ echo " - ".$modelQuotes->customer->country->country_name;} ?><br />

  Tel&nbsp;&nbsp;&nbsp;&nbsp;:&nbsp;<?php echo $modelQuotes->customer->customer_phone_no;?><br />

  Fax&nbsp;&nbsp;&nbsp;:&nbsp;<?php echo $modelQuotes->customer->customer_fax;?><br />

  Attn.	:&nbsp;<?php echo $modelQuotes->customercontact->prefix;
  if(!empty($modelQuotes->customercontact->prefix)){echo '.';};
  echo $modelQuotes->customercontact->person_name;?> <span style="font-size:10px;font-family:'Times New Roman', Times, serif;">(E: <?php if($modelQuotes->customercontact->contact_email_id != ""){
      echo $modelQuotes->customercontact->contact_email_id;}else{
  echo $mas_company_details->genral_email;}?> M: <?php if($modelQuotes->customercontact->contact_mobile_no != ""){
      echo $modelQuotes->customercontact->contact_mobile_no;}else{ echo $modelQuotes->customer->customer_phone_no; }?>)</span></span><br />

  </div>

 </div>

 <div style="text-align:right; float:right;padding-left: 65px; width:25%;" >
     <?php 
  
  $qtn_day_superscript  =   '<sup>'.date('S',STRTOTIME($modelQuotes->qtn_start_date)).'</sup>';
  $qtn_day              =   date('d',STRTOTIME($modelQuotes->qtn_start_date));
  $qtn_month            =   date('M',STRTOTIME($modelQuotes->qtn_start_date));
  $qtn_year             =   date('Y',STRTOTIME($modelQuotes->qtn_start_date));
  ?>
     <table class="" style="width:100%">
                <tr>
                        <td style="width: 70px">Date</td>
                        <td style="width: 2px">:</td>
                        <td style="float: left;">
                            <?php echo $qtn_day.$qtn_day_superscript." ".$qtn_month." ".$qtn_year;; ?>
                        </td>
                </tr>
                 <tr>
                        <td style="width: 70px">Quotation#</td>
                        <td style="width: 2px">:</td>
                        <td style="float: left;">
                            <?php echo $modelQuotes->id; ?>
                        </td>
                </tr>
    </table>            

  <!--span>Date&nbsp;&nbsp;&nbsp;&nbsp;:&nbsp;:	<?php 
  
  $qtn_day_superscript  =   '<sup>'.date('S',STRTOTIME($modelQuotes->qtn_start_date)).'</sup>';
  $qtn_day              =   date('d',STRTOTIME($modelQuotes->qtn_start_date));
  $qtn_month            =   date('M',STRTOTIME($modelQuotes->qtn_start_date));
  $qtn_year             =   date('Y',STRTOTIME($modelQuotes->qtn_start_date));
  echo $qtn_day.$qtn_day_superscript." ".$qtn_month." ".$qtn_year;?></span><br />

  <span>Quotation#	:	<?php echo $modelQuotes->id;//$modelQuotes->project_reference;?><!--Qtn/05xx/19></span><br /-->

  </div>

 </div>

 <div style="width:100%;float:left;padding-top: 10px;font-size:12px;font-family:'Times New Roman', Times, serif;">

  <Span style="float:left; text-align:left;margin-left: 38px;">Dear Sir / Madam,</Span><br />

   <div style="float:left; width:100%; text-align:center;padding-top: 20px;">

   <Span  style="float:left; text-align:left; font-weight:bold; border-bottom:2px solid;margin-left: 39%;margin-bottom: 15px;font-size:13px; ">Sub: <?php echo $modelQuotes->qtn_hiring_text;?></Span><br />

   <div style="width:100%;float:left;margin-top:10px;text-align:left;">

   <span style="float:left; text-align:left;margin-top:10px;font-size:12px;">With reference to the above mentioned subject, please find herewith our best offer for <?php echo $modelQuotes->qtn_hiring_text;?>.</span></div>

   </div>

 </div>
<?php
    $connection1 = Yii::app()->db->createCommand()
                    ->select('b.id,c.product_id,c.application_images')   
                    ->from('{{quotes_item}} a')
                    ->leftjoin('{{store}} b', 'a.product_id = b.id')
                    ->leftjoin('{{application_images}} c', 'b.id = c.product_id')
                    ->where('a.quotes_id="'.$modelQuotes->id.'" and b.machine_type="M" and application_id="'.$modelQuotes->hiring_application.'"')
                    ->order('a.id asc');
     $image_details = $connection1->queryAll();
    $next_page_break="";
    $next_page_class="";
    if($image_details[0]['application_images']!=''){
        $arr_application_images=explode(',',$image_details[0]['application_images']);
        $model_center_image = Store::model()->findByPK($image_details[0]['product_id']);
        
?>
 <div style="width:100%;float:left;padding-top:5px;">

<?php 
        if(!empty($arr_application_images[0]) && $arr_application_images[0]!=""){?>
        <img src="upload/applicationhiring/<?php echo $arr_application_images[0];?>" alt="Images"  width="230" height="150" style="float:left;border:1px solid #ff0000;"/>
        <?php } else{?>
       <img src="upload/hiring/download.jpeg" alt="Images"  style="float:left;width:230px;height:150px;border:1px solid #ff0000;"/>
        <?php } 
        
        if(!empty($arr_application_images[1]) && $arr_application_images[1]!=""){?>
        <img src="upload/applicationhiring/<?php echo $arr_application_images[1];?>" alt="Images"  width="230" height="150" style="float:right;border:1px solid #ff0000;"/>
        <?php } else{?>
       <img src="upload/hiring/download.jpeg" alt="Images"  style="float:right;width:230px;height:150px;border:1px solid #ff0000;"/>
<?php } ?>
  

 </div>

 <div style="width:100%;float:left;padding-top:5px; text-align:center;">
     <?php 
     if(!empty($model_center_image->item_image) && $model_center_image->item_image!=""){?>
        <img src="uploads/inventoryimages/<?php echo $model_center_image->item_image;?>" alt="Images"  width="350" height="220"/>
        <?php } else{?>
        <img src="upload/hiring/download.jpeg" alt="Images"  style="width: 350px; height:220px;"/>
        <?php } ?>

 </div>

  <div style="width:100%;float:left;padding-top: 3px;">

  <?php 
        if(!empty($arr_application_images[2]) && $arr_application_images[2]!=""){?>
        <img src="upload/applicationhiring/<?php echo $arr_application_images[2];?>" alt="Images"  width="230" height="150" style="float:left;border:1px solid #ff0000;"/>
        <?php } else{?>
       <img src="upload/hiring/download.jpeg" alt="Images"  style="float:left;width: 230px;height:150px;border:1px solid #ff0000;"/>
        <?php } 
        
        if(!empty($arr_application_images[3]) && $arr_application_images[3]!=""){?>
        <img src="upload/applicationhiring/<?php echo $arr_application_images[3];?>" alt="Images"  width="230" height="150" style="float:right;border:1px solid #ff0000;"/>
        <?php } else{?>
       <img src="upload/hiring/download.jpeg" alt="Images"  style="float:right;width: 230px;height:150px;border:1px solid #ff0000;"/>
<?php } ?>

 </div>
 <?php 
        if(!empty($arr_application_images[0]) && $arr_application_images[0]!=""){?>
 <br/>
 <br/>
 <div style="text-align:center;width:100%;"><i>(The above images are for illustrative purposes only)</i></div> 
 <?php 
        }
        ?>
    <?php
        $next_page_break="page-break-before:always";
        $next_page_class="start-newpage";
    } ?>
</div>
<!--Page 1 End -->

<!-----Page 2 Start------>

<div class="" style="<?php echo $next_page_break; ?>">
 <div style="width:100%;float:left;padding-top:10px;font-size:12px; font-family:'Times New Roman', Times, serif">
 <table id="" class="table">
            <thead>
                <tr>
                    <th class="text-center bc-tl">No</th>
                    <th class="text-center" style="width:40%">Description</th>
                    <th class="text-center" style="width:4%">Qty</th>
                    <?php if($bonus_quantity=="Y"){ ?>
                     <th class="text-center" style="width:4%">Bonus Qty</th>                     
                     <?php } ?>
                     <th class="text-center">Unit</th>
                    <th class="text-center" style="width:8%">Unit Price</th>
                    <th class="text-center" style="width:10%">Total Discount</th>
                    <th class="text-center">Tax(%)</th>
                    <th class="text-center" style="width:10%">Tax Amount</th>
                    <th class="text-center bc-tr">Net Amount</th>
                </tr>
            </thead>
            <tbody>
                
                    <?php
                $m=1;
                $tot_tax = 0;
                $condition .= '1=1';
                $condition .= ' AND t.quotes_id ="' . $id.'"';
                $total=0;
                $model_Quotes = QuotesItem::model()->findAll(array('condition'=>$condition,'order' => 'id ASC'));
                foreach ( $model_Quotes as $i =>  $model_Quotes) { ?>
                    <?php   ( $model_Quotes->tax_vat_percentage > 0 )  ? $model_Quotes->tax_vat_amount = $model_Quotes->tax_vat_amount : $model_Quotes->tax_vat_amount = '0.00'; ?>
                    <?php
                    if($model_Quotes->product_id == 999999){ ?>
                              <tr style="background-color:  #d0f5c5 ; color: white;"><td colspan="11"><b><?php echo $model_Quotes->description;?></b></td></tr>
                     <?php   }
                    else
                    { ?>
                      
              
                        <tr style="<?php if($model_Quotes->checked==0){echo 'background-color:#f0cfcf';} ?>">
                        <td>
                            <?php echo $m;?>
                        </td>
                        <td>
                            <?php echo nl2br($model_Quotes->description);?>
                            <br/>
                            <?php echo $model_Quotes->product->html_description;?>
                        </td>
                       
                        <td class="text-right">
                            <?php echo ( $model_Quotes->product->inventory_item_type == 2 ) ? 'N/A' : (float) $model_Quotes->quantity;?>
                        </td>
                        <?php if($bonus_quantity=="Y"){ ?>
                            <td class="text-right">
                                <?php echo ( $model_Quotes->product->inventory_item_type == 2 ) ? 'N/A' : (float) $model_Quotes->bonus_qty;?>
                            </td>
                        <?php } ?>
                        <td>
                            <?php echo ( $model_Quotes->product->inventory_item_type == 2 ) ? 'N/A' : $model_Quotes->quoteunit->name; ?>
                        </td>
                        <!-- <td  class="text-right" >
                       <?php 
                    //    $ava_qty=$model_Quotes->product->totalQuantity;
                    //     $exStock = $model_Quotes->quantity<=$ava_qty ? (float) $model_Quotes->quantity: (float) $ava_qty;
                        
                    //    echo ( $model_Quotes->product->inventory_item_type == 2 ) ? 'N/A' :  $exStock ?></td>-->
                         <?php $rate= ( $model_Quotes->quantity > 0 ) ? ($model_Quotes->amount+$model_Quotes->addition_amount)/$model_Quotes->quantity : 0 ;?> 
                        <td class="text-right">
                            <?php echo Yii::app()->numberFormatter->formatCurrency($rate," ");?>
                        </td>
                         <td class="text-right">
                            <?php echo Yii::app()->numberFormatter->formatCurrency($model_Quotes->deduction_amount," ");?>
                        </td>
						<!--tax- start-->
						<td class="text-right">
                            <?php echo $model_Quotes->tax_vat_percentage;?>
                        </td>
						<td class="text-right">
                            <?php $taxamount=  $model_Quotes->tax_vat_amount;
							echo $taxamount;
							?>
                        </td>
						<!--tax- end-->
                        <td class="text-right">
                            <?php 
                            $net_amount = $model_Quotes->net_amount/* + $model_Quotes->tax_vat_amount*/;
                            
                            $net_amount_ot= ($net_amount+$taxamount);
                            
                            if($model_Quotes->checked==1){echo Yii::app()->numberFormatter->formatCurrency($net_amount_ot," ");}else{ echo 'N/A'; };?>
                        </td>
                        
                </tr>
                
                    <?php
                        $m=$m+1;
                        if($model_Quotes->checked == 1)
                            $total+=$model_Quotes->net_amount;
                            $tot_tax += $model_Quotes->tax_vat_amount;
                    }
       // }
        } ?>
                    <?php
                $col = "8";
                if($bonus_quantity=="Y"){
                    $col = "9";
                } ?>
                <?php if( $modelQuotes->total_tax_amount > 0 ) : ?> 
                <tr>
                        <td class="text-right" colspan="<?php echo $col; ?>"><b>Total</b></td>
                        <!--<td></td>-->
                        <td class="text-right"><b><?php echo Yii::app()->numberFormatter->formatCurrency($total," ");?></b></td>
                
                </tr>
                <tr>
                     <td class="text-right" colspan=<?php echo $col; ?>><b>VAT</b></td>
                     <td class="text-right"><b><?php echo Yii::app()->numberFormatter->formatCurrency($tot_tax," ");?></b></td>
                </tr>
                <?php endif; ?>
                <?php
                    $Addition=QuotesAddition::model()->findAll(array('condition'=>'quotes_id='.$modelQuotes->id.' AND calculated_value>0'));
                    $Dedution=QuotesDeduction::model()->findAll(array('condition'=>'quotes_id='.$modelQuotes->id.' AND calculated_value>0'));
                    if(!empty($Addition))
                    {
                        foreach ($Addition as $eachAddition)
                        {
                      ?>
                    <tr>
                        <?
                        $total+=$eachAddition->calculated_value;
         ?>
                            <td class="text-right" colspan="<?php echo $col; ?>">
                                <?php
                        echo MasFooterItems::getFooterItemName($eachAddition->particular);
                        ?>
                            </td>
                            <td class="text-right">+
                                <?php echo Yii::app()->numberFormatter->formatCurrency($eachAddition->calculated_value," ");?>
                            </td>
                    </tr>
                    <?php
                    }
                    }
                    if(!empty($Dedution))
                    {
                        foreach ($Dedution as $eachDed)
                        {
                      ?>
                        <tr>
                            <?
                        $total-=$eachDed->calculated_value;
         ?>
                                <td class="text-right" colspan="<?php echo $col; ?>">
                                    <?php
                                        echo MasFooterItems::getFooterItemName($eachDed->particular);
                                    ?>
                                </td>
                                <td class="text-right">-
                                    <?php echo Yii::app()->numberFormatter->formatCurrency($eachDed->calculated_value," ");?>
                                </td>
                        </tr>
                        <?php
                    }
                    }
                    ?>
                            <tr>
                                <td class="text-right total bc-bl" colspan="<?php echo $col; ?>"><b>Grand Total</b></td>
                                <!--<td></td>-->
                                <?php $total += $tot_tax; ?>
                                <td class="text-right total bc-br"><b><?php echo Yii::app()->numberFormatter->formatCurrency($total," ");?></b></td>
                            </tr>
                            <tr>
                                <td class="text-right" colspan="<?php echo $col+1; ?>"><b><?php echo MasCurrency::number_to_currency(number_format(($total), 2, '.', ''), $modelQuotes->currency); ?></b></td>
                            </tr>
                            <!--          <tr>
       <td class="text-right" colspan="5"><b><?php //echo ucfirst($this->widget('ext.NumtoWord.NumtoWord', array('num' => floatval($total)))->result) . ' only';  ?></b></td>
                    </tr>-->
            </tbody>
        </table>
    <br>
 </div>
<?php
    $model_optional_item = QuotesOptionalItem::model()->findAll(array('condition'=>'quotes_id="'.$modelQuotes->id.'"','order' => 'id ASC'));
    if(!empty($model_optional_item)){
?>
<div class="start-newpage" style="page-break-before:always">
 
<div style="width:100%;float:left;padding-top:10px;font-size:12px; font-family:'Times New Roman', Times, serif">
    <div style="text-align:left; margin-top:5px; width:100%; font-size:12px;font-family:'Times New Roman', Times, serif"><div style="width:90%; float:left;"><b>Item B:- Optional Equipment</b></div> </div><br>
 <table id="" class="table">
            <thead>
                <tr>
                    <th class="text-center bc-tl" style="width:5%">No</th>
                    <th class="text-center" style="width:80%">Item Description</th>
                    <th class="text-center" style="width:5%">Quantity</th>
                    <th class="text-center" style="width:10%">Unit Price</th>
                </tr>
            </thead>
            <tbody>
                
                <?php
                
                foreach ($model_optional_item as $i =>$items) { ?>
                <tr>
                        <td><?php echo ($i+1);?></td>
                        <td>
                            <?php echo nl2br($items->description);?>
                        </td>
                        <td class="text-center"><?php echo $items->quantity;?></td>
                        <td class="text-right">
                            <?php echo Yii::app()->numberFormatter->formatCurrency($items->unit_price," ");?>
                        </td>
                        
                </tr>
               <?php } ?>
            </tbody>
        </table>
 </div>
    <?php } ?>
 </div>
 <!--- Page 2 End--->

  <!--- Page 3 Start--->
 
 <div class="start-newpage"  style="page-break-before:always">
 
 
 
 <div style="width:100%;float:left;padding-top:5px;padding-bottom:10px; text-align:center;font-size:12px;">

 <span style="border-bottom:2px solid; font-size:14px;font-family:'Times New Roman', Times, serif"><b>TERMS AND CONDITIONS</b></span>

</div>



<div style="width:100%;float:left;font-size:12px;margin:0px;padding:0px;font-family:'Times New Roman', Times, serif">
    <?php echo $modelQuotes->terms_and_conditions; ?>


</div>


<br>

<!--div style="text-align:center;margin-top:5px;width:100%; font-style:italic;font-family:'Times New Roman', Times, serif"> <div style="float:right;text-align:right;">Contd…. </div></div-->
 
 
</div>
 
 
 
 


<!--last page start-->

<table width="100%" cellpadding="0" cellspacing="0" style="page-break-inside:avoid;font-size:13px;margin-top:5px; font-family:'Times New Roman', Times, serif; ">
<tr>
<td colspan="3" height="30">We trust the above is acceptable and await a favourable response. Please contact us for any further clarifications. </td>
 </tr>
<tr>
  <td width="30%"  height="50"><div style="width:50%;float:left;">
     
     <span>For and on behalf of,</span><br />

    <span><b>ACE CENTRO ENTERPRISES</b></span>


 </div></td>
  <td align="center" valign="middle"> </td>
  <td width="30%" align="left"><div style="width:50%;float:left;margin-left:105px;margin-top:5px; font-family:'Times New Roman', Times, serif">
      
    <span>Terms and conditions accepted by:</span><br />

    <span><b><?php echo strtoupper($modelQuotes->customer->customer_name); ?></b></span>

 </div></td>
</tr> 
<tr>
  <td align="left"  height="60"> 
      <?php
      if ($modelQuotes->leadowner->signature != '') {
          ?>
          <img src="uploads/signature/<?php echo $modelQuotes->leadowner->signature; ?>" alt="Images"  width="150px" height="60px" />

          <?php }
      ?>
  </td>
  <td align="center"> <div style="width:20%;float:left; text-align:center;font-size:12px;">
 <p style="padding:0px; margin-top:10px; margin-bottom:0px;">Sign</p> 
 <p style="padding:0px;margin:0px;">Date</p> 
 <p style="padding:0px;margin:0px;">Stamp</p> 

</div></td>
  <td align="left"> </td>
</tr>
<tr>
  <td align="left"  height="60" style="border-top:1px solid #000;padding:0px;">
  
<div style=" margin-top:-10px;">
 <b><?php echo $modelQuotes->leadowner->Fullname; ?></b><br /> 

 <em><?php echo $modelQuotes->leadowner->designation ?></em><br />

 <?php if($modelQuotes->leadowner->phno!= ""){?><span>Cell : <?php echo $modelQuotes->leadowner->phno ?></span><br /><?php } ?>   <br /></div></td>
  <td align="center"></td>
  <td align="left"  style="border-top:1px solid #000;padding:0px;">
  <div style=" margin-top:-10px"> 

<span><b><?php echo  $modelQuotes->customercontact->person_name; ?></b></span><br />

 <em>Authorized Signatory</em><br />

 <span>Cell : <?php echo  $modelQuotes->customercontact->contact_mobile_no; ?></span><br /></div>
</td>
</tr>
 </table>

<!--last page end-->

 </div>
<htmlpagefooter name="firstfooter">
<div style="text-align:right;width:100%;"><i>Contd...</i></div> 
<div style="text-align:center;width:100%;"><img src="images/innovating.png" /></div> 
</htmlpagefooter>
<sethtmlpagefooter name="firstfooter" page="all" value="on" />
 
 <htmlpagefooter name="lastfooter">
<div style="text-align:right;width:100%;">Contd...</div> 

<div style="text-align:center;width:100%;"><img src="images/innovating.png" /></div> 
</htmlpagefooter>
<sethtmlpagefooter name="lastfooter" value="off" />

<htmlpagefooter name="myfooter">
    
<div style="text-align:center;width:100%;"><img src="images/innovating.png" /></div> 
</htmlpagefooter>
<sethtmlpagefooter name="myfooter" page="all" value="on" />

</body>

</html>


<?php //exit;?>




