@using Microsoft.AspNetCore.Mvc.Localization
@inject IViewLocalizer T
@{
    ViewData["Title"] = T["Access denied"];
}

<div class="text-center">
    <h1 class="display-4">@T["Access denied"]</h1>
    <p>@T["You currently do not have permission to access the page you tried to access."]</p>
    @if (!User.Identity?.IsAuthenticated ?? false)
    {
        <a href="/Home/Login">@T["Please click here to return to the login page"]</a>
    }
</div>
