42 lines
997 B
PHP
42 lines
997 B
PHP
<!doctype html>
|
|
<html lang="es">
|
|
<head>
|
|
<title>Personas</title>
|
|
</head>
|
|
<body>
|
|
<h1>Personas</h1>
|
|
<a href="{{ route('persona.create') }}">Crear Nuevo Registro</a>
|
|
<ul>
|
|
@foreach($persona as $per)
|
|
<li>
|
|
<strong>{{ $per->nombre }}</strong>
|
|
— {{ $per->apellido }}
|
|
—{{ $per->dni }}
|
|
(ID: {{ $per->id_persona}})
|
|
|
|
|
|
|
<a href="{{ route('persona.show', $per->id_persona) }}">Ver Más</a>
|
|
|
|
<form action="{{ route('persona.destroy', $per->id_persona) }}"
|
|
method="POST" >
|
|
@csrf
|
|
@method('DELETE')
|
|
<button onclick="return confirm('¿Eliminar este Registro?')">
|
|
Eliminar
|
|
</button>
|
|
</form>
|
|
|
|
<form action="{{ route('persona.edit', $per->id_persona) }}"
|
|
method="GET" >
|
|
@csrf
|
|
<button>
|
|
Editar
|
|
</button>
|
|
</form>
|
|
|
|
</li>
|
|
@endforeach
|
|
</ul>
|
|
|
|
</body>
|
|
</html> |