{*
* 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='Product' 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;">{$translations['Image']|escape:'htmlall':'UTF-8'}</th>
                            <th style="border-bottom: 1px solid #bfbfbf;"><span class="title_box_mail ">{$translations['Product Name']|escape:'htmlall':'UTF-8'}</span></th>
                            <th style="border-bottom: 1px solid #bfbfbf;">
                                <span class="title_box_mail ">{$translations['SKU']|escape:'htmlall':'UTF-8'}</span>
                            </th>
                            <th style="border-bottom: 1px solid #bfbfbf;">
                                <span class="title_box_mail ">{$translations['Unit Price']|escape:'htmlall':'UTF-8'}</span>
                            </th>
                            <th style="border-bottom: 1px solid #bfbfbf;">
								<span class="title_box_mail ">{$translations['Qty']|escape:'htmlall':'UTF-8'}</span>
							</th>                        
                            <th style="border-bottom: 1px solid #bfbfbf;">
                                <span class="title_box_mail ">{$translations['Total Excl Tax']|escape:'htmlall':'UTF-8'}</span>
                            </th>
							<th style="border-bottom: 1px solid #bfbfbf;">
                                <span class="title_box_mail ">{$translations['Total Incl Tax']|escape:'htmlall':'UTF-8'}</span>
                            </th>
                            <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;"><a href="{$product_quote[$key]['link_product']|escape:'htmlall':'UTF-8'}"><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;"></a></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['pro_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>{$item['reference']|escape:'htmlall':'UTF-8'}</span>
                                    </td>
                                    <td style="width:15%;text-align: center;">
                                        <span>
                                            {displayPrice price=$item['product_pri'] currency=$info_customer[0]['id_currency']}
                                        </span>
                                    </td>
                                    <td style="width:9%;text-align: center;">
                                        <span>
                                            {$product_quote[$key]['product_qty']|escape:'htmlall':'UTF-8'}
                                            {assign var="total_quantity" value=$total_quantity+$item['product_qty']}
                                    </td>
                                    <td style="width:15%;text-align: center;">
                                        <span>
											{displayPrice price=$item['total_pri'] currency=$info_customer[0]['id_currency']}
                                        </span>
                                    </td>
									<td style="width:15%;text-align: center;">
                                        <span>
											{displayPrice price=$item['total_pri_incl_tax'] currency=$info_customer[0]['id_currency']}
                                        </span>
                                    </td>
                                    <td colspan="2">&nbsp;</td>
                                    <td class="text-right">
                                    </td>
                                </tr>
                            </tbody>
                        {/foreach}
                    {/if}
                    {if empty($shipping_cost) || $shipping_cost == 0}
                    {else}
                    <tr height="70" style="text-align: center;">
                        <td colspan="3"></td>
                        <td class="text-right"><strong>{l s='Shipping cost' mod='askforaquotemodul'}</strong></td>
                        <td class="text-right">-</td>
                        <td class="text-right">-</td>
                        <td class="text-right "><span type="text" name="baproduct[shipping_cost]" class="td_shipping_price form-control" id="change"  style="width:85%;"> {displayPrice price=$info_customer[0]['shipping_cost'] currency=$info_customer[0]['id_currency']}</span>
						</td>
					</tr>
                    {/if} {if empty($tax_cost) || $tax_cost == 0} {else}
                    <tr height="70" style="text-align: center;">
                        <td colspan="3">
                        </td>
                        <td class="text-right"><strong>{l s='Tax cost' mod='askforaquotemodul'}</strong></td>
                        <td class="text-right">-</td>
                        <td class="text-right">-</td>
                        <td class="text-right "><span type="text" name="baproduct[shipping_cost]" class="td_shipping_price form-control" id="change"  style="width:85%;"> {displayPrice price=$info_customer[0]['tax_cost'] currency=$info_customer[0]['id_currency']}</span></td></tr>
                    <tr>
                    {/if}
                    {if $infor_coupon == '0'} {else}
					<tr height="70" style="text-align: center;">
						<td colspan="3">
						</td>
						<td class="text-right"><strong>{l s='Coupon' mod='askforaquotemodul'}</strong></td>
						<td class="text-right">-</td>
						<td class="text-right">-</td>
						<td class="text-right " style=""><span type="text" name="baproduct[shipping_cost]" class="td_shipping_price form-control" id="change"  style="width:85%;">
						{if $infor_coupon[0]['reduction_product']|escape:'htmlall':'UTF-8' == '0'}
							{if $infor_coupon[0]['coupon_type']|escape:'htmlall':'UTF-8' == '1'}
								-{$infor_coupon[0]['reduction_amount']|escape:'htmlall':'UTF-8'}% {if $infor_coupon[0]['free_shipping']|escape:'htmlall':'UTF-8' == '1'}{l s='And FreeShipping' mod='askforaquotemodul'}{/if}
							{else}
								-{$infor_coupon[0]['reduction_amount']|escape:'htmlall':'UTF-8'} {if $infor_coupon[0]['free_shipping']|escape:'htmlall':'UTF-8' == '1'}{l s='And FreeShipping' mod='askforaquotemodul'}{/if}
							{/if}
						{elseif $infor_coupon[0]['reduction_product']|escape:'htmlall':'UTF-8' == '-1'}
							{if $infor_coupon[0]['coupon_type']|escape:'htmlall':'UTF-8' ==' 1'}
								{l s='Cheapest Product ' mod='askforaquotemodul'} -{$infor_coupon[0]['reduction_amount']|escape:'htmlall':'UTF-8'}% {if $infor_coupon[0]['free_shipping']|escape:'htmlall':'UTF-8' == '1'}{l s='And FreeShipping' mod='askforaquotemodul'}{/if}
							{else}
								{l s='Cheapest Product ' mod='askforaquotemodul'} -{$infor_coupon[0]['reduction_amount']|escape:'htmlall':'UTF-8'} {if $infor_coupon[0]['free_shipping']|escape:'htmlall':'UTF-8' == '1'}{l s='And FreeShipping' mod='askforaquotemodul'}{/if}
							{/if}
						{/if}
						{if $infor_pro_coupon|escape:'htmlall':'UTF-8' != '0'}
							{if $infor_coupon[0]['coupon_type']|escape:'htmlall':'UTF-8' == '1'}
								{l s='Product:' mod='askforaquotemodul'}{$infor_pro_coupon[0]['product_name']|escape:'htmlall':'UTF-8'} -{$infor_coupon[0]['reduction_amount']|escape:'htmlall':'UTF-8'}% {if $infor_coupon[0]['free_shipping']|escape:'htmlall':'UTF-8' == '1'}{l s='And FreeShipping' mod='askforaquotemodul'}{/if}
							{else}
								{l s='Product:' mod='askforaquotemodul'}{$infor_pro_coupon[0]['product_name']|escape:'htmlall':'UTF-8'} -{$infor_coupon[0]['reduction_amount']|escape:'htmlall':'UTF-8'} {if $infor_coupon[0]['free_shipping']|escape:'htmlall':'UTF-8' == '1'}{l s='And FreeShipping' mod='askforaquotemodul'}{/if}
							{/if}
						{/if}
						</span>
						</td>
					</tr>
                    {/if}
                    <tr height="70" style="text-align: center;">
                        <td colspan="3" style="border-top: 1px solid #eee;">
                        </td>
						<td class="text-right"><strong>{l s='Total' mod='askforaquotemodul'}</strong></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]['price_full']|escape:'htmlall':'UTF-8'}
                            {else}
                                {displayPrice price=0 currency=$info_customer[0]['id_currency']}
                            {/if}
                        </td>
                    </tr>
                </table>
            </div>
        </div>    
    </form>
</div>    

