28 lines
548 B
PHP
28 lines
548 B
PHP
<!doctype html>
|
|
<html lang="es">
|
|
<head>
|
|
<title>Persona</title>
|
|
</head>
|
|
<body>
|
|
|
|
<ul>
|
|
@foreach($personas as $cat)
|
|
<li>
|
|
<strong>{{ $cat->apellido }}</strong>
|
|
— {{ $cat->nombre }}
|
|
(DNI: {{ $cat->dni }})
|
|
|
|
<form action="{{ route('persona.destroy', $cat->id) }}" method="POST">
|
|
@csrf
|
|
@method('DELETE')
|
|
<button onclick="return confirm('¿Eliminar esta persona?')">
|
|
Eliminar
|
|
</button>
|
|
</form>
|
|
|
|
</li>
|
|
@endforeach
|
|
</ul>
|
|
|
|
</body>
|
|
</html> |