50 lines
1.1 KiB
PHP
50 lines
1.1 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>
|
|
|
|
<!-- Fonts -->
|
|
|
|
<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('categorias.index')}}"
|
|
class= "btn btn-success">
|
|
Ir a Categorias
|
|
</a>
|
|
@endauth
|
|
|
|
@guest
|
|
<div class="alert alert-warning">
|
|
<h1> Usuario no autenticado <h1>
|
|
<p> Debe Iniciar Sesion </p>
|
|
|
|
</div>
|
|
<a href= "{{route('login')}}"
|
|
class="btn btn-warning">
|
|
Iniciar sesion
|
|
</a>
|
|
|
|
@endguest
|
|
</div>
|
|
</body>
|
|
</html>
|