mjarillo/resources/views/personas/new.blade.php

37 lines
909 B
PHP

<!doctype html>
<html lang="es">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Nueva persona</title>
</head>
<body>
<h1>Nueva persona</h1>
<form method="POST" action="{{ route('personas.store') }}">
@csrf
<div>
<label for="apellido">Apellido *</label><br>
<input id="apellido" name="apellido" type="text" value="{{ old('apellido') }}" required>
</div>
<div>
<label for="nombre">Nombre *</label><br>
<input id="nombre" name="nombre" type="text" value="{{ old('nombre') }}" required>
</div>
<div style="margin-top:8px;">
<label for="dni">DNI</label><br>
<input id="dni" name="dni" type="text" value="{{ old('dni') }}">
</div>
<div style="margin-top:12px;">
<button type="submit">Guardar</button>
<a href="{{ route('personas.index') }}">Volver al listado</a>
</div>
</form>
</body>
</html>