{{-- ── COVER PAGE ────────────────────────────────────────────────────── --}}
Application Overview Document

{{ $content['application_name'] ?? $repository->name }}
Explained Simply

{{ $content['application_purpose'] ?? 'A plain-English guide to understanding this web application — no technical knowledge required.' }}

Repository: {{ $repository->full_name }}
Generated: {{ $generated }}
{{-- ── PAGE HEADER HELPER ──────────────────────────────────────────────── --}} @php $docTitle = $content['application_name'] ?? $repository->name; @endphp {{-- ── 1. EXECUTIVE SUMMARY ───────────────────────────────────────────── --}}
Section 01

What Does This Application Do?

@foreach(preg_split('/\n\n+/', $content['executive_summary'] ?? '') as $para)

{{ $para }}

@endforeach
{{-- ── 2. USER ROLES ────────────────────────────────────────────────────── --}} @if(!empty($content['user_roles']))
Section 02

Who Uses This Application?

@foreach(array_chunk($content['user_roles'], 2) as $row) @foreach($row as $role) @endforeach @if(count($row) === 1) @endif
{{ $role['role'] }}

{{ $role['description'] }}

@if(!empty($role['key_actions']))
@foreach($role['key_actions'] as $action)
{{ $action }}
@endforeach
@endif
@endforeach
@endif {{-- ── 3. KEY WORKFLOWS ─────────────────────────────────────────────────── --}} @if(!empty($content['key_workflows']))
Section 03

How the Application Works

@foreach($content['key_workflows'] as $workflow)
{{ $workflow['workflow_name'] }} {{ $workflow['actor'] }}
@foreach($workflow['steps'] as $i => $step)
{{ $i + 1 }}
{{ $step }}
@endforeach @if(!empty($workflow['outcome']))
Result: {{ $workflow['outcome'] }}
@endif
@endforeach
@endif {{-- ── 4. DATA THE SYSTEM STORES ────────────────────────────────────────── --}} @if(!empty($content['data_the_system_stores']))
Section 04

What Information Does the System Store?

@foreach($content['data_the_system_stores'] as $item) @endforeach
Type of Information What It Is Who Can See It
{{ $item['data_type'] }} {{ $item['description'] }} {{ $item['who_can_see_it'] }}
@endif {{-- ── 5. INTEGRATIONS + GLOSSARY ──────────────────────────────────────── --}}
@if(!empty($content['integrations']))
Section 05

Connected Services

@foreach($content['integrations'] as $integration)
🔗
{{ $integration['service'] }}
{{ $integration['purpose'] }}
@endforeach @endif @if(!empty($content['glossary']))
Section 06

Glossary — Terms Explained Simply

@foreach($content['glossary'] as $entry)
{{ $entry['term'] }}
{{ $entry['plain_english'] }}
@endforeach @endif