{*
* 2007-2021 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@prestashop.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    PrestaShop SA <contact@prestashop.com>
*  @copyright 2007-2021 PrestaShop SA
*  @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*}

{if $submitted == true}
	<div class="bootstrap">
		<div class="module_info info alert alert-info">
			<button type="button" class="close" data-dismiss="alert">&times;</button>
			{l s='Configuration saved' mod='addonpayments'}
		</div>
	</div>
{/if}
{*{if $print_key == true}
	<div class="bootstrap">
		<div class="module_warning alert alert-warning">
			<button type="button" class="close" data-dismiss="alert">&times;</button>
			<p>{l s='This is your encryption key: ' mod='addonpayments'}<strong>{$encryption_key}</strong></p>
			<p>
				{l s='This key is used to encrypt any confidential or sensitive data that needs to be stored in your database. Keep your key safe, if you loose it and the system key is overwritten' mod='addonpayments'}&nbsp;
				<strong>{l s='YOU WILL LOOSE ALL YOUR STORED DATA' mod='addonpayments'}</strong>
			</p>
			<p>{l s='The data loss includes, but not limited to: transactions, 3D Secure records, card tokens.' mod='addonpayments'}</p>
		</div>
	</div>
{/if}*}
<ul class="nav nav-tabs" role="tablist">
	<li class="active"><a href="#settings" role="tab" data-toggle="tab"><i
					class="icon-cogs"></i> {l s="Settings" mod='addonpayments'}</a></li>
	<li><a href="#help" role="tab" data-toggle="tab">{l s="Help" mod='addonpayments'}</a></li>
</ul>
<div class="tab-content">
	<div class="tab-pane active" id="settings">
		{$configuration_form}
		{if $show_status_panel == true}
			<div class="col-sm-12 col-md-5">
				<div class="panel">
					<div class="panel-heading ">
						{l s="Service status" mod='addonpayments'}
					</div>
					<div class="form-wrapper">
						<div class="form-group">
							<table class="table">
								<thead>
								<th>{l s="Service" mod='addonpayments'}</th>
								<th>{l s="Status" mod='addonpayments'}</th>
								</thead>
								<tbody>
								{foreach from=$status_panel item=service key=service_name}
									<tr class="service__{$service_name}--{$service.selector}">
										<td>{$service.text}</td>
										<td>
											{$service.hint}&nbsp;&nbsp;<i class="icon-{$service.icon}"></i>
										</td>
									</tr>
									{foreachelse}
									<tr><td colspan="2">{l s='All services are down' mod='addonpayments'}</td></tr>
								{/foreach}
								</tbody>
							</table>
						</div>
					</div>
				</div>
			</div>
		{/if}
	</div>
	<div class="tab-pane" id="help">
		{include file='./info/help.tpl'}
		{include file='./info/test-cards.tpl'}
	</div>
</div>
