@extends('portal.layout') @section('title', 'NOC Dependency Graph') @section('content')
@include('portal.partials.report-sidebar', ['report' => $report])
NOC/Approval Tracker

NOC Dependency Graph

AI-generated dependency map of all required NOCs and clearances with critical path analysis.

@if(session('success'))
{{ session('success') }}
@endif
@csrf
@if($existing->count()) {{-- Critical Path Summary --}} @php $criticalDays = $existing->max('critical_path_days'); $totalNocs = $existing->count(); $parallelTracks = $existing->filter(fn($n) => empty($n->dependencies))->count(); @endphp
Total NOCs Required
{{ $totalNocs }}
Critical Path
{{ $criticalDays }} days
Parallel Tracks
{{ $parallelTracks }}
{{-- NOC Timeline --}}
Approval Sequence
@foreach($existing->sortBy('priority') as $noc)
{{ $noc->priority + 1 }}
{{ str_replace('_', ' ', ucfirst($noc->noc_type)) }}
{{ $noc->authority }} · Est. {{ $noc->estimated_days }} days
@if(!empty($noc->dependencies))
Depends: {{ implode(', ', $noc->dependencies) }}
@endif {{ empty($noc->dependencies) ? 'Independent' : 'Dependent' }}
@endforeach
@else
No NOC Graph Yet
Click "Generate NOC Graph" to identify all required clearances.
@endif
@endsection