{*
 * 2014 - 2023 Watt Is It
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the MIT License X11
 * that is bundled with this package in the file LICENSE.md.
 * It is also available through the world-wide-web at this URL:
 * https://opensource.org/licenses/mit-license.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 contact@paygreen.fr so we can send you a copy immediately.
 *
 * @author    PayGreen <contact@paygreen.fr>
 * @copyright 2014 - 2023 Watt Is It
 * @license   https://opensource.org/licenses/mit-license.php MIT License X11
 * @version   1.3.7
 *
 *}
<div class="pglayout">
    {view name="menu" selected="error"}
    {view name="notifications"}

    <div class="pg__mlateral-page">
        <h1 class="pg__danger">
            {'misc.error.title'|pgtrans}
        </h1>

        {'misc.error.text'|pgtranslines}
    </div>

    <div class="pgcontainer">
        {foreach $exceptions as $exception}
        <div class="pgblock">
            <h2>
                {$exception['type']|escape:'html':'UTF-8'}
                ({'misc.error.exception.code'|pgtrans} {$exception['code']|escape:'html':'UTF-8'})
            </h2>

            <ul>
                <li>
                    {'misc.error.exception.type'|pgtrans}
                    <strong>{$exception['type']|escape:'html':'UTF-8'}</strong>
                </li>

                <li>
                    {'misc.error.exception.text'|pgtrans}
                    <strong>{$exception['text']|escape:'html':'UTF-8'}</strong>
                </li>

                <li>
                    {'misc.error.exception.file'|pgtrans}
                    <strong>{$exception['file']|escape:'html':'UTF-8'}</strong>
                    {'misc.error.exception.line'|pgtrans}
                    <strong>{$exception['line']|escape:'html':'UTF-8'}</strong>
                </li>
            </ul>

            <h3 class="pg__mtop-md">
                {'misc.error.exception.traces'|pgtrans}
            </h3>

            <ol>
                {foreach $exception['traces'] as $trace}
                <li>
                    <strong>{$trace['call']}()</strong>

                    <br />

                    {'misc.error.trace.file'|pgtrans}
                    <em>{$trace['file']}</em>
                    {'misc.error.trace.line'|pgtrans}
                    <strong>{$trace['line']}</strong>
                </li>
                {/foreach}
            </ol>
        </div>
        {/foreach}
    </div>
</div>