{*
* 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
*}
{capture name=path}
    <a href="{$link->getPageLink('my-account', true)|escape:'html':'UTF-8'}">
        {l s='My account' mod='askforaquotemodul'}
    </a>
    <span class="navigation_page" style="padding-left:20px;">
        {l s='Your quotes' mod='askforaquotemodul'}
    </span>
{/capture}
{if $tb_pro == 0}
    <div >
        <p class="alert alert-warning" style="margin-top: 8px;">{l s='No quotes' mod='askforaquotemodul'}</p>
       </div>
{else}
<form method="POST" action="">
    <div class="table_block myquotecustomer_control" style="margin-top: 8px;">
     <table class="table" style="border-top: none;border: 1px solid #ececec;">
        <thead>
        <tr>
            <th style="border-left: none;border-right: none;">{l s='#ID' mod='askforaquotemodul'}</th>
            <th style="border-left: none;border-right: none;">{l s='First Name' mod='askforaquotemodul'}</th>
            <th style="border-left: none;border-right: none;">{l s='Last Name' mod='askforaquotemodul'}</th>
            <th style="border-left: none;border-right: none;">{l s='Phone' mod='askforaquotemodul'}</th>            <th style="border-left: none;border-right: none;">{l s='Date' mod='askforaquotemodul'}</th>
            <th style="border-left: none;border-right: none;">{l s='Total price' mod='askforaquotemodul'}</th>
            <th style="border-left: none;border-right: none;">{l s='Unread' mod='askforaquotemodul'}</th>            
            <th style="border-left: none;border-right: none;"></th>
        </tr>
        </thead>
        <tbody class = "table_body_customer">
            {foreach from=$tb_pro key=key item=item}
                <tr style="border:none;">
                    <td style = "border-left: none;border-right: none;">
                        {$item['id_quote']|escape:'htmlall':'UTF-8'}
                    </td>
					<td style = "border-left: none;border-right: none;">
                        {$tb_pro[$key]['first_name']|escape:'htmlall':'UTF-8'}
                    </td>
                    <td style="border-left: none;border-right: none;">
                        {$tb_pro[$key]['last_name']|escape:'htmlall':'UTF-8'}
                    </td>
                    <td style="border-left: none;border-right: none;">
                        {$tb_pro[$key]['phone']|escape:'htmlall':'UTF-8'}
                    </td>
                    <td style="border-left: none;border-right: none;width: 20%;">
                        {$tb_pro[$key]['date_quote']|escape:'htmlall':'UTF-8'}
                    </td>
                    {if $option_price_total == 1}
                        <td style="border-left: none;border-right: none;">
                            {$tb_pro[$key]['total_price_full']|escape:'htmlall':'UTF-8'}
                        </td>
                        {else}
                             <td style="border-left: none;border-right: none;text-align:center;">
                                -
                            </td>
                    {/if}

                    <td style="border-left: none;border-right: none;">
                        {$tb_pro[$key]['so_luong_mes']|escape:'htmlall':'UTF-8'}
                    </td>
                    <td class ="view_quote_customer" style="border-left: none;border-right: none;">
                        <a class = "quote_detail_customer" id_quote_dbboo = "{$tb_pro[$key]['id_quote']|escape:'htmlall':'UTF-8'}" href="{$tb_pro[$key]['link_seo']|escape:'htmlall':'UTF-8'}" rel="1_1"><i class="icon-eye-open">{l s='View' mod='askforaquotemodul'}</i></a>
                    </td>
                </tr>
            {/foreach}
        </tbody>
     </table>
    </div>
    <div>
            <a href="{$link_myaccount_seo|escape:'htmlall':'UTF-8'}" class="btn btn-default button button-small"><span><i class="icon-chevron-left left"></i> {l s='Back to my account' mod='askforaquotemodul'}</span></a>
    </div>
</form>    
{/if}