83 lines
1.6 KiB
PHP
83 lines
1.6 KiB
PHP
<!doctype html>
|
|
<html lang="es">
|
|
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>Personas</title>
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<h1>Listado de Personas</h1>
|
|
|
|
<p>
|
|
<a href="{{ route('personas.create') }}">
|
|
Nueva Persona
|
|
</a>
|
|
</p>
|
|
|
|
<ul>
|
|
|
|
@foreach($personas as $cat)
|
|
|
|
<li>
|
|
|
|
<strong>{{ $cat->nombre }}</strong>
|
|
|
|
- {{ $cat->apellido }}
|
|
|
|
- {{ $cat->dni }}
|
|
|
|
(ID: {{ $cat->id }})
|
|
|
|
|
|
|
@if($cat->deleted_at == null)
|
|
<a href="{{ route('personas.show', $cat->id) }}">
|
|
Ver Más
|
|
</a>
|
|
|
|
|
|
|
|
|
<a href="{{ route('personas.edit', $cat->id) }}">
|
|
Editar
|
|
</a>
|
|
|
|
|
|
|
|
|
<form action="{{ route('personas.destroy', $cat->id) }}"
|
|
method="POST"
|
|
style="display:inline;">
|
|
|
|
@csrf
|
|
@method('DELETE')
|
|
|
|
<button type="submit">
|
|
Eliminar
|
|
</button>
|
|
|
|
</form>
|
|
@else
|
|
|
|
<form action="{{ route('personas.restaurar', $cat->id) }}"
|
|
method="POST"
|
|
style="display:inline;">
|
|
|
|
@csrf
|
|
@method('PUT')
|
|
|
|
<button type="submit">
|
|
RESTAURAR
|
|
</button>
|
|
|
|
</form>
|
|
|
|
@endif
|
|
</li>
|
|
|
|
@endforeach
|
|
|
|
</ul>
|
|
|
|
</body>
|
|
|
|
</html> |