{{-- The report on abuseReport/show (#2957 slice 16, card #3103): facts, the DMARC aggregate reports with their records, the plain-text preview and the attached original headers. Every value is hostile input from an outside sender: {{ }} only, raw text in
.
--}}
@php
    $nhArDash = fn ($value) => ($value === null || $value === '') ? '-' : $value;
    $nhArTime = fn ($value) => $value ? \App\Support\DisplayDate::timestamp($value) : '-';
@endphp


    
{{ __('abuseReport.nh.sender') }}
{{ $abuseReport->sender ?: '-' }}
{{ __('abuseReport.nh.subject') }}
{{ $abuseReport->subject ?: '-' }}
{{ __('abuseReport.nh.messageId') }}
{{ $abuseReport->message_id ?: '-' }}
{{ __('abuseReport.nh.sourceIp') }}
{{ $abuseReport->source_ip ?: '-' }}
{{ __('abuseReport.nh.rawPath') }}
{{ $abuseReport->raw_path }}
{{ __('abuseReport.nh.match') }}
{{ $abuseReport->match_method ?: '-' }}: {{ $abuseReport->match_reason ?: '-' }}
{{ __('abuseReport.nh.references') }}
{{ __('abuseReport.nh.references_value', [ 'company' => $abuseReport->company_id ?: '-', 'sendout' => $abuseReport->sendout_id ?: '-', 'receiver' => $abuseReport->receiver_id ?: '-', 'stat' => $abuseReport->stat_id ?: '-', ]) }}
@if ($abuseReport->classification === 'dmarc') @forelse ($dmarcReports as $dmarcReport) {{ __('abuseReport.nh.dmarcMessages', ['count' => formatNumber($dmarcReport->total_messages)]) }}
{{ __('abuseReport.nh.reporter') }}
{{ $dmarcReport->organization_name ?: '-' }}
{{ __('abuseReport.nh.reportId') }}
{{ $dmarcReport->report_external_id }}
{{ __('abuseReport.nh.period') }}
{{ __('abuseReport.nh.periodValue', ['from' => $nhArTime($dmarcReport->date_begin), 'to' => $nhArTime($dmarcReport->date_end)]) }}
{{ __('abuseReport.nh.companyMatch') }}
{{ $dmarcReport->company_id ? 'C'.$dmarcReport->company_id : $nhArDash($dmarcReport->match_reason) }}
{{ __('abuseReport.nh.policy_label') }}
{{ $dmarcReport->policy_disposition ?: '-' }} ({{ $dmarcReport->percentage ?? 100 }}%)
{{ __('abuseReport.nh.duplicates') }}
{{ formatNumber($dmarcReport->duplicate_count) }}
@if ($dmarcReport->records->isNotEmpty()) @php $recordRows = \App\Support\TablePagination::rows($dmarcReport->records, 'dmarc'.$dmarcReport->id.'Page'); @endphp @foreach ($recordRows as $record) @endforeach
{{ __('abuseReport.nh.recordsTitle', ['domain' => $dmarcReport->policy_domain]) }}
{{ __('abuseReport.nh.sourceNetwork') }} {{ __('abuseReport.nh.messages') }} {{ __('abuseReport.nh.disposition') }} {{ __('abuseReport.nh.dkimSpf') }} {{ __('abuseReport.nh.headerFrom') }}
{{ $record->source_network ?: '-' }} {{ formatNumber($record->message_count) }} {{ $record->disposition ?: '-' }} {{ $record->dkim_result ?: '-' }} / {{ $record->spf_result ?: '-' }} {{ $record->header_from ?: '-' }}
@if ($dmarcReport->records_count > $recordRows->count()) {{ __('abuseReport.nh.recordsShown', ['shown' => formatNumber($recordRows->count()), 'total' => formatNumber($dmarcReport->records_count)]) }} @endif
@endif @empty {{ __('abuseReport.nh.dmarcNone') }} @endforelse @endif @if ($previewError) {{ __('abuseReport.nh.previewError', ['message' => $previewError]) }} @endif @php($nhArPreviewTitle = $abuseReport->classification === 'dmarc' ? __('abuseReport.nh.rawPolicyTitle') : __('abuseReport.nh.previewTitle'))
{{ $preview ?: __('abuseReport.nh.noPreview') }}
{{ $originalHeaders ?: __('abuseReport.nh.noHeaders') }}