@extends('layouts.app') @section('title', 'Historial de Reportes — TI Manager') @section('content')
{{-- Header --}} {{-- Filtros --}}
@if(request()->hasAny(['search', 'type'])) @endif
@if($pdfReports->count() > 0) {{-- VISTA MÓVIL: Cards --}}
@foreach($pdfReports as $report)
{{ $report->title }}
{{ $report->report_number }}
{{ strtoupper($report->type) }}
Empresa {{ $report->company_name ?? 'N/A' }}
Generado por {{ $report->user->name ?? 'Sistema' }}
Fecha de creación {{ $report->created_at->format('d/m/Y h:i A') }}
@if(auth()->user()->isAdmin())
@csrf @method('DELETE')
@endif
@endforeach
{{-- VISTA DESKTOP: Tabla --}}
@foreach($pdfReports as $report) @endforeach
N° Reporte Título del Reporte Tipo Empresa Generado por Fecha Acciones
{{ $report->report_number }}
{{ $report->title }}
{{ ucfirst($report->type) }} {{ $report->company_name ?? 'N/A' }} {{ $report->user->name ?? 'Sistema' }} {{ $report->created_at->format('d/m/Y h:i A') }}
@if(auth()->user()->isAdmin())
@csrf @method('DELETE')
@endif
@if($pdfReports->hasPages())
{{ $pdfReports->withQueryString()->links() }}
@endif @else

No se encontraron reportes

No hay reportes que coincidan con los filtros o el historial está vacío.

@endif
@endsection @push('scripts') @endpush