{*
* 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
*}
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/font-awesome/4.4.0/css/font-awesome.min.css">
{if isset($send_success)}
	{if $send_success == 1}
		<div>
			<p class="alert alert-success">{l s='Your message has been successfully sent to our team.' mod='askforaquotemodul'}</p>
		</div>
	{/if}
{/if}

<form method="POST" action="">
		<div class = "bootstrap panel col-lg-12 form_rep_adm" style="z-index:1;padding-bottom: 10%;border-color: #dadada;border-radius: 4px;">
			<div class = "panel-heading col-lg-12" style="border-bottom-color: #907878;">
		 		<i class="fa fa-envelope" aria-hidden="true"></i><label style="margin-left:20px;">{l s='Order Notes' mod='askforaquotemodul'}</label>
			</div>
			<div class = "box_message">
				{foreach from=$detail_mess key=key_m item=item_m}
					{if $detail_mess[$key_m]['type'] == 0}
						<div class = "message_quote_adm">
							<div class = "box_chat">
								<span class = "text_chat">{$detail_mess[$key_m]['content_mes']|escape:'htmlall':'UTF-8'|nl2br nofilter}</span>
							</div>
							<div class = "date_info">
								{l s='added on' mod='askforaquotemodul'} {$detail_mess[$key_m]['date_send_format']|escape:'htmlall':'UTF-8'} {l s='by' mod='askforaquotemodul'} {$detail_mess[$key_m]['email']|escape:'htmlall':'UTF-8'} 
							</div>
						</div>
					{else}
						<div class = "message_quote_adm" >
							<div class = "box_chat" style = "background-color:#e8d6b7;">
								<span class = "text_chat">{$detail_mess[$key_m]['content_mes']|escape:'htmlall':'UTF-8'|nl2br nofilter}</span>
							</div>
							<div class = "date_info">
								{l s='added on' mod='askforaquotemodul'} {$detail_mess[$key_m]['date_send_format']|escape:'htmlall':'UTF-8'} {l s='by' mod='askforaquotemodul'} {$detail_mess[$key_m]['email']|escape:'htmlall':'UTF-8'} 
							</div> 
						</div>
					{/if}
				{/foreach}
			</div>
			<div class = "header_messages"  >
				<span>{l s='Messages' mod='askforaquotemodul'}</span><i class = "icon-envelope" style = "margin-left:10px;"></i> 
			</div>
			<div class = "text_message_adm">
				<textarea style="width:100%;border-radius: 4px;border-color:#bbbbbb" name="message_dbboo" class = "content_mess_dbboo" rows="4" cols="5"></textarea>
			</div>
			
			<div class = "btn_message_adm">
				<a onclick="return send_to_Adm()">
					<button name= "btn_send_to_adm" type="submit" class = "btn_messages_cus btn btn-default">
						<span style = "padding-left:2px;">{l s='Send' mod='askforaquotemodul'}</span>
					</button>
				</a>
				
			</div>
		</div>
</form>


