@extends('pdf.layout') @section('title', 'Portfolio summary') @section('header-right')Portfolio summary · {{ $d['period']['label'] }}@endsection @section('content')

SEO Portfolio Summary — {{ $d['period']['label'] }}

{{ count($d['sites']) }} active websites · average health {{ collect($d['sites'])->whereNotNull('health')->avg('health') ? round(collect($d['sites'])->whereNotNull('health')->avg('health')) : '—' }}/100

@foreach($d['sites'] as $s)@endforeach
WebsiteClientSEO leadHealthCriticalHighOpenResolvedUptimeClicksConfirmed leads (organic)Tasks doneApproved workWaiting 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 }}
@endsection