<?php

use MintyPHP\Http\Request;

http_response_code(403);

$path = Request::safeReturnTarget($_GET['url'] ?? '');
$pathDisplay = $path === '' ? '/' : '/' . $path;
$home = lurl('');
$backUrl = $path !== '' ? lurl($path) : $home;

?>
<header>
    <h1><?php e(t('Access denied')); ?></h1>
    <p><?php e(t('You do not have permission to view this content.')); ?></p>
</header>
<p><?php e(t('If you believe this is an error, please contact your system administrator.')); ?></p>
<p>
    <small><?php e(t('Requested URL')); ?></small><br>
    <span class="badge" data-variant="neutral" data-copy="true"><?php e($pathDisplay); ?></span>
</p>
<a class="outline secondary" role="button" href="<?php e($backUrl); ?>"><?php e(t('Back')); ?></a>
<a role="button" href="<?php e($home); ?>"><?php e(t('Home')); ?></a>