@extends('pdf.layout') @section('title', 'Portfolio summary') @section('header-right')Portfolio summary · {{ $d['period']['label'] }}@endsection @section('content')
{{ count($d['sites']) }} active websites · average health {{ collect($d['sites'])->whereNotNull('health')->avg('health') ? round(collect($d['sites'])->whereNotNull('health')->avg('health')) : '—' }}/100
| Website | Client | SEO lead | Health | Critical | High | Open | Resolved | Uptime | Clicks | Confirmed leads (organic) | Tasks done | Approved work | Waiting on client |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ $s['name'] }} {{ $s['url'] }} | {{ $s['client'] }} | {{ $s['assignee'] ?? '—' }} | {{ $s['health'] ?? '—' }} | {{ $s['critical'] }} | {{ $s['high'] }} | {{ $s['open'] }} | {{ $s['resolved'] }} | {{ $s['uptime'] !== null ? $s['uptime'].'%' : '—' }} | {{ $s['clicks'] !== null ? number_format($s['clicks']) : '—' }} | {{ $s['leads'] !== null ? number_format($s['leads']) : '—' }} | {{ $s['tasks_done'] }} | {{ $s['approved_work'] ?? 0 }} | {{ $s['blocked'] ?? 0 }} |