<!DOCTYPE html>
<html lang="pt-br">
	<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
		<title>Erro 500 | <?php echo SYS_NAME; ?></title>
		<link href="<?php echo show_link("/assets/bootstrap/css/bootstrap.min.css"); ?>" rel="stylesheet">
		<link href="<?php echo show_link("/assets/font-awesome/releases/v5.15.1/css/pro.min.css"); ?>" rel="stylesheet" type="text/css">
		<style>
			@charset "UTF-8";
			@import url('https://fonts.googleapis.com/css2?family=Nunito&display=swap');

			body {
				margin: 0;
				font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
				font-size: 1rem;
				font-weight: 400;
				line-height: 1.5;
				color: #212529;
				text-align: left;
				background-color: #fff;
			}
		</style>
	</head>
	<body>
		<div class="container">
			<div class="row justify-content-center my-3">
				<div class="col-md-12 text-center">
					<span class="display-1 d-block">500</span>
					<div class="mb-4 lead">Erro interno no sistema!</div>
					
					<?php if (DEBUG): ?>
						<div class="card card-body mb-3 bg-light text-left">
							<p class="mb-2"><?php echo "<strong>Mensagem:</strong> ".$e->getMessage(); ?></p>
							<p class="mb-2"><?php echo "<strong>Código:</strong> ".$e->getCode(); ?></p>
							<p class="mb-2"><?php echo "<strong>Arquivo:</strong> ".$e->GetFile(); ?></p>
							<p class="mb-0"><?php echo "<strong>Linha:</strong> ".$e->getline(); ?></p>
						</div>
					<?php endif; ?>
				</div>
			</div>
		</div>
	</body>
</html>