@if (!empty($fieldNames) && !empty($fieldValues)) @php $ipColumnIndex = \App\Helpers\SplunkResultColumnIndexFinder::getIndexOfColumn( 'IP', $fieldNames ); $severityColumnIndex = \App\Helpers\SplunkResultColumnIndexFinder::getIndexOfColumn( 'Severity', $fieldNames ); $consolidatedThreatColumnIndex = \App\Helpers\SplunkResultColumnIndexFinder::getIndexOfColumn( 'Consolidated Threat', $fieldNames ); @endphp @foreach ($fieldNames as $fieldName) @php $tooltipContent = ''; if (isset($fieldTooltips[$fieldName])) { $tooltipContent = ''; } @endphp @endforeach @foreach ($fieldValues as $rows) @foreach ($rows as $fieldValue) @endforeach @endforeach
{{ $fieldName }} {!! $tooltipContent !!}Action
@if ($loop->index == $consolidatedThreatColumnIndex) {{ $fieldValue }} @elseif ($loop->index == $severityColumnIndex) {{ $fieldValue }} @elseif ($loop->index == $ipColumnIndex) {{ $fieldValue }} @else {{ $fieldValue }} @endif @include('widgets.dashboard.components._risk-drilldown', ['modalItemId' => "analytic-modal_{$loop->index}"])
{{-- TODO: Change to once-push stack in `_risk-drilldown` when updated to Laravel >= 7.x --}} @include('widgets.dashboard.components._risk-drilldown-scripts') @else n/a @endif