REPORTE DE RESOLUCIONES
Fecha de generación: {{ now()->format('d/m/Y h:i A') }}
@if (($filtros['search'] ?? null) || ($filtros['search_rd'] ?? null) || ($filtros['search_asunto'] ?? null) || ($filtros['periodo'] ?? null) || (isset($filtros['is_worked']) && $filtros['is_worked'] !== ''))
Filtros aplicados: @if ($filtros['search'] ?? null) Búsqueda: "{{ $filtros['search'] }}" @endif @if ($filtros['search_rd'] ?? null) RD: "{{ $filtros['search_rd'] }}" @endif @if ($filtros['search_asunto'] ?? null) Asunto: "{{ $filtros['search_asunto'] }}" @endif @if ($filtros['periodo'] ?? null) | Periodo: {{ $filtros['periodo'] }} @endif @if (isset($filtros['is_worked']) && $filtros['is_worked'] !== '') | Estado Trabajo: {{ $filtros['is_worked'] == '1' ? 'Trabajadas' : 'No trabajadas' }} @endif
@endif
Detalle de resoluciones
@foreach ($resoluciones as $resolucion) @endforeach
ID RD FECHA NOMBREYAPELLIDO DNI O RUC TIPO DE ASUNTO NIVEL PERIODO FIRMA
{{ $resolucion->id }} {{ $resolucion->type?->abreviacion ?? 'RD' }} {{ $resolucion->rd }} {{ $resolucion->fecha ? \Carbon\Carbon::parse($resolucion->fecha)->format('d/m/Y') : '' }} {{ $resolucion->nombres_apellidos }} {{ implode(', ', array_filter([$resolucion->dni, $resolucion->ruc])) ?: 'N/A' }} {{ $resolucion->asuntoType?->name ?? '---' }} {{ $resolucion->levelModality?->name ?? '---' }} {{ $resolucion->periodo }} @php $sigRoot = $resolucion->charge?->signature?->signature_root; $sigPath = $sigRoot ? storage_path('app/' . $sigRoot) : null; @endphp @if ($resolucion->signature_status === 'firmado' && $sigPath && file_exists($sigPath)) @else {{ $resolucion->signature_status === 'firmado' ? 'FIRMADO' : ($resolucion->signature_status === 'rechazado' ? 'RECHAZADO' : 'PENDIENTE') }} @endif