Initial commit - construprogress app

This commit is contained in:
2026-05-07 23:31:33 +02:00
commit 156aa14bbb
157 changed files with 21654 additions and 0 deletions
@@ -0,0 +1,29 @@
<div>
@if(session()->has('message'))
<div class="alert alert-success mb-2">{{ session('message') }}</div>
@endif
<table class="table table-sm">
<thead>
<tr><th>Nombre</th><th>Progreso</th><th>Color</th><th>Acciones</th></tr>
</thead>
<tbody>
@foreach($phases as $phase)
<tr>
<td>{{ $phase->name }}</td>
<td>
<div class="w-32 bg-gray-200 rounded-full h-2">
<div class="bg-primary h-2 rounded-full" style="width: {{ $phase->progress_percent }}%"></div>
</div>
{{ $phase->progress_percent }}%
</td>
<td><div class="w-6 h-6 rounded" style="background: {{ $phase->color }}"></div></td>
<td>
<a href="{{ route('phases.progress', $phase) }}" class="btn btn-xs btn-info">Actualizar</a>
<button wire:click="deletePhase({{ $phase->id }})" class="btn btn-xs btn-error">Eliminar</button>
</td>
</tr>
@endforeach
</tbody>
</table>
<button wire:click="addPhase" class="btn btn-sm btn-secondary mt-2">+ Agregar Fase</button>
</div>