{*
* 2007-2020 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@buy-addons.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author    Buy-addons    <contact@buy-addons.com>
* @copyright 2007-2020 Buy-addons
* @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*}

<div class = "panel" style = "z-index:1;border-radius: 0px 5px 5px 5px;">
    <form method="POST" action="">
        <div style="border: 1px solid #a9a6a6;border-radius: 4px;">
            <div style="font-family: Ubuntu Condensed, Helvetica, Arial, sans-serif;font-size: 15px;height: 32px;border-bottom: 1px solid #eee;padding-top: 14px;">
                <label style="padding-left: 10px;padding-top: 5px;">{l s='Products' mod='askforaquotemodul'}</label>
            </div>
            <div>
                <table cellspacing="0" style="width: 100%;margin-top: 20px;">
                        <tr style="height: 45px;background-color: #f9ffff;">
                            <th style="border-bottom: 1px solid #bfbfbf;"></th>
                            <th style="border-bottom: 1px solid #bfbfbf;"><span class="title_box_mail ">{l s='Product' mod='askforaquotemodul'}</span></th>
                            <th style="border-bottom: 1px solid #bfbfbf;">
                                <span class="title_box_mail ">{l s='SKU' mod='askforaquotemodul'}</span>
                            </th>
                            {if $option_price_total == 1}
                                <th style="border-bottom: 1px solid #bfbfbf;">
                                	<span class="title_box_mail ">{l s='Unit Price' mod='askforaquotemodul'}</span>
                            	</th>
                            {/if}
                            <th style="border-bottom: 1px solid #bfbfbf;"><span class="title_box_mail ">{l s='Qty' mod='askforaquotemodul'}</span></th>						
                            {if $option_price_total == 1}
                            	<th style="border-bottom: 1px solid #bfbfbf;">
                                	<span class="title_box_mail ">{l s='Total excl Tax' mod='askforaquotemodul'}</span>
                            	</th>
								<th style="border-bottom: 1px solid #bfbfbf;">
                                	<span class="title_box_mail ">{l s='Total incl Tax' mod='askforaquotemodul'}</span>
                            	</th>
                            {/if}
                            <th colspan="2" style="border-bottom: 1px solid #bfbfbf;"></th>
                            <th style="border-bottom: 1px solid #bfbfbf;"></th>
                        </tr>
					{assign var="total_quantity" value="0"}
                    {if $count > 0}
                        {foreach from=$product_quote key=key item=item}
                        	{assign var="count" value=$key+1}
                            <tbody>
                                <tr height="70">
                                    <td style="padding-top: 10px;padding-bottom: 10px;"><img src="{$product_quote[$key]['link_img']|escape:'htmlall':'UTF-8'}" style="width: 60px;border: 1px solid #cacaca;border-radius: 6px;margin-left:10px;" alt="" class="imgm img-thumbnail" style = "width: 60px;"></td>
                                    <td><a href="{$product_quote[$key]['link_product']|escape:'htmlall':'UTF-8'}">
                                            <span>{$product_quote[$key]['product_name']|escape:'htmlall':'UTF-8'}</span>
                                        </a>
                                        {if $item['cache_is_pack'] != 0}
										<ul style="padding-left: 15px;">    
											<li>
												{$item['combination']|escape:'htmlall':'UTF-8'|replace:"\n":'</li><li>' nofilter}
											</li>
										</ul>
										{else}
											<div>{$item['combination']|escape:'htmlall':'UTF-8'}</div>
										{/if}
                                    </td>
                                    <td>
                                        <span>{$product_quote[$key]['reference']|escape:'htmlall':'UTF-8'}</span>
                                    </td>
                                    {if $option_price_total == 1}
                                    	<td style="width:15%;text-align: center;">
                                        	<span>
                                            	{$product_quote[$key]['product_pri']|escape:'htmlall':'UTF-8'}
                                        	</span>
                                    	</td>
                                    {/if}
                                    <td style="width:9%;text-align: center;">
                                        <span>
                                        	{$product_quote[$key]['product_qty']|escape:'htmlall':'UTF-8'}
											{assign var="total_quantity" value=$total_quantity+$product_quote[$key]['product_qty']}
										</span>
                                    </td>
                                    {if $option_price_total == 1}
                                    	<td style="width:15%;text-align: center;">
                                       		<span>
                                        		{$product_quote[$key]['total_pri']|escape:'htmlall':'UTF-8'}
                                        	</span>
                                    	</td>
										<td style="width:15%;text-align: center;">
                                       		<span>
                                        		{$product_quote[$key]['total_price_incl_tax']|escape:'htmlall':'UTF-8'}
                                        	</span>
                                    	</td>
                                    {/if}
                                    <td colspan="2">&nbsp;</td>
                                    <td class="text-right">
                                    </td>
                                </tr>
                            </tbody>
                        {/foreach}
                    {/if}
                    {if $option_price_total == 1}
                    	<tr height="70" style="text-align: center;">
                    		<td colspan="4" style="border-top: 1px solid #eee;">
                    		</td>
                    		<td style="border-top: 1px solid #eee;">
                    			{if $count > 0}
									{$total_quantity|escape:'htmlall':'UTF-8'}
									{else}
										0
								{/if}
                    		</td>
							<td style="border-top: 1px solid #eee;">-</td>
                    		<td style="border-top: 1px solid #eee;">
                    			{if $count > 0}
									{$info_customer[0]['total_pri']|escape:'htmlall':'UTF-8'}
								{else}
									{$info_customer[0]['sign']|escape:'htmlall':'UTF-8'} 0,00 
								{/if}
                    		</td>
                    	</tr>
                    {/if}
                </table>
            </div>
        </div>	
	</form>
</div>