{{ $investigation->name }}

{{ __('Owned by') }} {{ $investigation->owner->name }} · {{ $investigation->status }}

{{ __('Report') }} {{ __('Export CSV') }} {{ __('Export JSON') }} @if ($canManageAccess) {{ __('Manage access') }}
@csrf @method('DELETE')
@endif
@if (session('status'))
{{ session('status') }}
@endif @if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif @if ($investigation->description)
{{ $investigation->description }}
@endif

{{ __('Targets') }}

@if ($canEdit && $investigation->targets->count() > 1)
@csrf {{ __('Run all targets') }}
@endif
@forelse ($investigation->targets as $target)
{{ $target->type }}

{{ $target->value }}

@if ($target->notes)

{{ $target->notes }}

@endif
@if ($canEdit) @php $applicableSources = $sources->filter(fn ($s) => in_array($target->type, $s->target_types, true)); @endphp
@if ($applicableSources->isNotEmpty())
@csrf {{ __('Run') }}
@endif @if ($applicableSources->filter(fn ($s) => $runnableSourceKeys->contains($s->key))->count() > 1)
@csrf {{ __('Run all') }}
@endif
@csrf @method('DELETE')
@endif
@if ($target->findings->isNotEmpty())
    @foreach ($target->findings->sortByDesc('id') as $finding)
  • {{ $finding->source->name }} {{ $finding->status }}
    @if ($finding->summary)

    {{ $finding->summary }}

    @endif @if ($finding->error)

    {{ $finding->error }}

    @endif @if ($finding->status === 'completed' && !empty($finding->raw_payload['matches'])) @endif @if ($finding->status === 'completed') @foreach (($finding->raw_payload ?? []) as $field => $items) @continue($field === 'matches' || !is_array($items) || empty($items) || !is_string($items[0] ?? null))
    {{ ucfirst($field) }} ({{ count($items) }})
      @foreach (array_slice($items, 0, 50) as $item)
    • {{ $item }}
    • @endforeach
    @if (count($items) > 50)

    {{ __('+ :count more', ['count' => count($items) - 50]) }}

    @endif
    @endforeach @endif
  • @endforeach
@endif
@empty

{{ __('No targets yet.') }}

@endforelse @if ($canEdit)
@csrf
{{ __('Add target') }}
@endif