{{-- Print button (hidden on print) --}}
{{-- ====================================================
HEADER
===================================================== --}}
{{-- ====================================================
SUMMARY STATS
===================================================== --}}
Resumen General
{{ $stats['total_features'] }}
Total elementos
{{ $stats['completed_features'] }}
Completados
{{ $stats['avg_progress'] }}%
Progreso medio
{{ $stats['total_inspections'] }}
Inspecciones
{{ $stats['open_issues'] }}
Issues abiertos
{{-- ====================================================
PHASES
===================================================== --}}
Detalle por Fase
@forelse($phases as $phase)
@php
$phaseFeatures = $phase->layers->flatMap(fn($l) => $l->features);
$phaseColor = $phase->color ?? '#3b82f6';
@endphp
@if($phaseFeatures->count() > 0)
| Elemento |
Estado |
Progreso |
Responsable |
Última inspección |
@foreach($phaseFeatures as $feature)
@php
$lastInspection = $feature->inspections->sortByDesc('created_at')->first();
@endphp
| {{ $feature->name ?? 'Sin nombre' }} |
{{ match($feature->status) {
'planned' => 'Planificado',
'started' => 'Iniciado',
'in_progress' => 'En progreso',
'completed' => 'Completado',
'verified' => 'Verificado',
default => ($feature->status ?? 'N/A'),
} }}
|
{{ $feature->progress ?? 0 }}%
|
{{ $feature->responsible ?? ($feature->responsibleUser?->name ?? '—') }} |
{{ $lastInspection?->created_at?->format('d/m/Y') ?? '—' }} |
@endforeach
@else
Sin elementos registrados en esta fase.
@endif
@empty
No hay fases registradas en este proyecto.
@endforelse
{{-- ====================================================
Footer
===================================================== --}}
ConstProgress — Sistema de Gestión de Obras
{{ now()->format('d/m/Y H:i') }}