Proyecto/resources/views/persona/index.blade.php
2026-05-19 21:24:28 -03:00

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}})
&nbsp;|&nbsp;
<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>