Files
construprogress/resources/views/projects/create.blade.php
T

37 lines
1.7 KiB
PHP
Raw Normal View History

2026-05-07 23:31:33 +02:00
<x-app-layout>
<div class="max-w-2xl mx-auto p-4">
<h1 class="text-2xl font-bold mb-4">Crear Nuevo Proyecto</h1>
<form action="{{ route('projects.store') }}" method="POST" class="space-y-4">
@csrf
<div>
<label class="label">Nombre del proyecto</label>
<input type="text" name="name" class="input input-bordered w-full" required>
</div>
<div>
<label class="label">Dirección</label>
<input type="text" name="address" class="input input-bordered w-full" required>
</div>
<div class="grid grid-cols-2 gap-4">
<div>
<label class="label">Latitud</label>
<input type="number" step="any" name="lat" class="input input-bordered w-full" required>
</div>
<div>
<label class="label">Longitud</label>
<input type="number" step="any" name="lng" class="input input-bordered w-full" required>
</div>
</div>
<div class="grid grid-cols-2 gap-4">
<div>
<label class="label">Fecha inicio</label>
<input type="date" name="start_date" class="input input-bordered w-full" required>
</div>
<div>
<label class="label">Fecha estimada fin</label>
<input type="date" name="end_date_estimated" class="input input-bordered w-full">
</div>
</div>
<button type="submit" class="btn btn-primary w-full">Crear Proyecto</button>
</form>
</div>
</x-app-layout>