@extends('app.template') @section('title', 'Scans Management - COLI') @section('content')

Scan Management

@if(session('success')) @endif @if(session('error')) @endif @if($errors->any()) @endif
Reset
@csrf
@forelse($scans ?? [] as $scan) @empty @endforelse
Target Type Workflow Started At Finished At Status Actions
{{ $scan->target }} {{ ucfirst($scan->type) }} {{ $scan->workflow->name }} {{ $scan->started_at ? \Carbon\Carbon::parse($scan->started_at)->format('d/m/Y H:i:s') : '-' }} @if($scan->finished_at && $scan->started_at) @if(\Carbon\Carbon::parse($scan->finished_at)->greaterThan(\Carbon\Carbon::parse($scan->started_at))) {{ \Carbon\Carbon::parse($scan->finished_at)->format('d/m/Y H:i:s') }} @else Waiting @endif @elseif($scan->finished_at) {{ \Carbon\Carbon::parse($scan->finished_at)->format('d/m/Y H:i:s') }} @else - @endif @php $statusIcons = [ 'done' => 'mdi-check-circle-outline', 'running' => 'mdi-progress-clock', 'pending' => 'mdi-timer-sand', 'stopped' => 'mdi-cancel', 'failed' => 'mdi-alert-circle-outline' ]; $statusColors = [ 'done' => 'success', 'running' => 'warning', 'pending' => 'secondary', 'stopped' => 'danger', 'failed' => 'danger' ]; $statusColor = $statusColors[$scan->status] ?? 'secondary'; $statusIcon = $statusIcons[$scan->status] ?? 'mdi-help-circle-outline'; @endphp {{ ucfirst($scan->status) }}
@if($scan->status === 'pending') @endif @if($scan->status === 'running') @endif @if(in_array($scan->status, ['done', 'stopped'])) @endif @if($scan->status === 'done') Review @endif Logs

No scans found

{{ $scans->withQueryString()->links('pagination::bootstrap-4') }}
@endsection