mis_turnos/resources/views/personas/edit.blade.php

48 lines
863 B
PHP

<!doctype html>
<html lang="es">
<head>
<meta charset="utf-8">
<title>Editar Persona</title>
</head>
<body>
<h1>Editar Persona</h1>
<form method="POST"
action="{{ route('personas.update', $persona->id) }}">
@csrf
@method('PUT')
<p>
Nombre:
<input type="text"
name="nombre"
value="{{ $persona->nombre }}">
</p>
<p>
Apellido:
<input type="text"
name="apellido"
value="{{ $persona->apellido }}">
</p>
<p>
DNI:
<input type="text"
name="dni"
value="{{ $persona->dni }}">
</p>
<button type="submit">
Guardar Cambios
</button>
</form>
</body>
</html>