{{-- Review actions on abuseReport/show (#2957 slice 16, card #3103), under the same conditions as before: match (POST admin.abuse-report.match, company_id, sendout_id, receiver_id) for a complaint that is not actioned; apply (POST admin.abuse-report.apply) when it is matched; dismiss (POST admin.abuse-report.dismiss) unless it is actioned or dismissed. Apply and dismiss are confirmed in a native (opened by data-nh-dialog, closed by data-nh-close in the layout). --}} @php $nhArCanMatch = $abuseReport->classification === 'complaint' && $abuseReport->status !== 'actioned'; $nhArCanApply = $nhArCanMatch && $abuseReport->status === 'matched'; $nhArCanDismiss = ! in_array($abuseReport->status, ['actioned', 'dismissed'], true); @endphp @if ($nhArCanMatch)
@csrf
{{ __('abuseReport.nh.validate') }}
@endif @if ($nhArCanApply || $nhArCanDismiss)
@if ($nhArCanApply) {{ __('abuseReport.nh.apply') }} @endif @if ($nhArCanDismiss) {{ __('abuseReport.nh.dismiss') }} @endif
@endif @unless ($nhArCanMatch || $nhArCanDismiss)

{{ __('abuseReport.nh.actionsNone') }}

@endunless {{ __('abuseReport.nh.back') }}
@foreach (array_filter(['apply' => $nhArCanApply, 'dismiss' => $nhArCanDismiss]) as $nhArAction => $nhArShown)

{{ __('abuseReport.nh.'.$nhArAction.'Title') }}

{{ __('abuseReport.nh.'.$nhArAction.'Text') }}

@csrf
@endforeach