Files
construprogress/resources/views/reports/partials/_media.blade.php
T
Javier Braña ee32544525 feat(reports): complete reporting system with deviations, progress curves, multi-format export
- Added planned/actual/baseline dates to Phase and Feature models
- Created ProgressSnapshot model + migration for historical tracking
- Implemented CaptureDailyProgressSnapshot job (scheduled daily at 06:30)
- Added DeviationCalculator logic (SPI, planned progress, deviation days)
- ReportGenerator service with complete data aggregation
- ReportController with builder, preview, generate (HTML/Excel)
- ReportBuilder Livewire component with date range, entity selection, format
- ProjectReportExport with 10 sheets (Summary, Phases, Features, Inspections, Issues, Tasks, Deviations, Media, Progress Curve, Parameters)
- Blade partials for all sections (header, summary, phases, features, inspections, issues, tasks, media, deviations, progress curve)
- New routes: /projects/{project}/reports/*
- Added 'generate reports' permission
- All 101 tests passing
2026-08-24 12:32:08 +02:00

47 lines
1.6 KiB
PHP

<div class="section-title">{{ __('Archivos / Media') }}</div>
@if(empty($media))
<div class="text-center text-gray-400 py-8">
<p>{{ __('No hay archivos en el rango seleccionado.') }}</p>
</div>
@else
<div class="overflow-x-auto">
<table>
<thead>
<tr>
<th>ID</th>
<th>Nombre</th>
<th>Tipo</th>
<th>Entidad</th>
<th>Entidad Nombre</th>
<th>Tamaño</th>
<th>Subido por</th>
<th>Fecha</th>
</tr>
</thead>
<tbody>
@foreach($media as $item)
<tr>
<td>{{ $item['id'] }}</td>
<td>{{ $item['name'] }}</td>
<td>
<span class="badge {{ match($item['type']) {
'image' => 'badge-info',
'document' => 'badge-success',
'video' => 'badge-warning',
default => 'badge-ghost',
} }}">
{{ $item['type'] }}
</span>
</td>
<td>{{ $item['entity'] }}</td>
<td>{{ $item['entity_name'] }}</td>
<td>{{ $item['size'] }}</td>
<td>{{ $item['uploaded_by'] }}</td>
<td>{{ $item['uploaded_at'] }}</td>
</tr>
@endforeach
</tbody>
</table>
</div>
@endif