56 lines
1.5 KiB
PHP
56 lines
1.5 KiB
PHP
<!DOCTYPE html>
|
|
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
|
|
<title>Laravel</title>
|
|
|
|
<link
|
|
href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/css/bootstrap.min.css"
|
|
rel="stylesheet">
|
|
</head>
|
|
|
|
<body>
|
|
<div class="container mt-5">
|
|
|
|
<h1>Bienvenidos al sistema</h1>
|
|
<hr>
|
|
|
|
@auth
|
|
<div class="alert alert-success">
|
|
<h4>Usuario autenticado</h4>
|
|
|
|
<p>
|
|
El usuario es:
|
|
<b>{{ Auth::user()->name }}</b>
|
|
</p>
|
|
|
|
<p>
|
|
El mail es:
|
|
<b>{{ Auth::user()->email }}</b>
|
|
</p>
|
|
</div>
|
|
|
|
<a href="{{ route('personas.index') }}"
|
|
class="btn btn-success">
|
|
Ir a Personas
|
|
</a>
|
|
@endauth
|
|
|
|
@guest
|
|
<div class="alert alert-warning">
|
|
<h4>Usuario no autenticado</h4>
|
|
|
|
<p>Debe iniciar sesión</p>
|
|
</div>
|
|
|
|
<a href="{{ route('login') }}"
|
|
class="btn btn-warning">
|
|
Iniciar sesión
|
|
</a>
|
|
@endguest
|
|
|
|
</div>
|
|
</body>
|
|
</html> |