{{ $title }}

Generado: {{ now()->format('d/m/Y H:i') }}

@if (($filters['search'] ?? null) || ($filters['signature_status'] ?? null))
Filtros aplicados: @if ($filters['search'] ?? null) Busqueda: "{{ $filters['search'] }}" @endif @if ($filters['signature_status'] ?? null) | Estado: {{ ucfirst($filters['signature_status']) }} @endif
@endif @if ($type === 'sent') @elseif ($type === 'resolution') @else @endif @foreach ($charges as $charge) @php $interesadoLabel = ''; $signatureImage = null; if ($charge->tipo_interesado === 'Persona Juridica') { $interesadoLabel = $charge->legalEntity?->razon_social ?: $charge->legalEntity?->ruc ?: 'N/A'; } else { $interesadoLabel = trim( ($charge->naturalPerson?->nombres ?? '') . ' ' . ($charge->naturalPerson?->apellidos ?? ''), ); if ($interesadoLabel === '') { $interesadoLabel = $charge->naturalPerson?->dni ?? 'N/A'; } } if ( $charge->signature?->signature_status === 'firmado' && $charge->signature?->signature_root && \Illuminate\Support\Facades\Storage::disk('local')->exists($charge->signature->signature_root) ) { $signatureSvg = \Illuminate\Support\Facades\Storage::disk('local')->get( $charge->signature->signature_root, ); $signatureImage = 'data:image/svg+xml;base64,' . base64_encode($signatureSvg); } $signatureCompletedAt = $charge->signature?->signature_completed_at; $signatureCompletedLabel = $signatureCompletedAt ? $signatureCompletedAt->format('d/m/Y h:i:s A') : '—'; @endphp @if ($type === 'sent') @elseif ($type === 'resolution') @else @endif @endforeach
{{ $title }}
ID No. cargo Periodo Fecha Interesado Asunto Estado Fecha firma Firma
ID No. cargo Periodo RD Fecha Nombres y apellidos DNI Asunto Fecha firma Firma
ID N° Cargo Periodo Enviado por Interesado Asunto Estado Fecha firma Firma
{{ $charge->id }} {{ $charge->n_charge }} {{ $charge->charge_period ?? 'N/A' }} {{ optional($charge->created_at)->format('Y-m-d') }} {{ $interesadoLabel }} {{ Str::limit($charge->asunto ?? '', 60) }} {{ ucfirst($charge->signature?->signature_status ?? 'pendiente') }} {{ $signatureCompletedLabel }} @if ($signatureImage) Firma @else X @endif
{{ $charge->id }} {{ $charge->n_charge }} {{ $charge->charge_period ?? 'N/A' }} {{ $charge->resolucion?->rd ?? 'N/A' }} {{ $charge->resolucion?->fecha ? \Carbon\Carbon::parse($charge->resolucion->fecha)->format('Y-m-d') : '' }} {{ $charge->resolucion?->nombres_apellidos ?? 'N/A' }} {{ $charge->resolucion?->dni ?? 'N/A' }} {{ Str::limit($charge->resolucion?->asunto ?? '', 60) }} {{ $signatureCompletedLabel }} @if ($signatureImage) Firma @else X @endif
{{ $charge->id }} {{ $charge->n_charge }} {{ $charge->charge_period ?? 'N/A' }} {{ trim(($charge->user?->name ?? '') . ' ' . ($charge->user?->last_name ?? '')) ?: 'N/A' }} {{ $interesadoLabel }} {{ Str::limit($charge->asunto ?? '', 60) }} {{ ucfirst($charge->signature?->signature_status ?? 'pendiente') }} {{ $signatureCompletedLabel }} @if ($signatureImage) Firma @else X @endif