@extends('pdf.layout') @section('title', 'SEO report '.$d['website']['name'].' '.$d['period']['label']) @section('header-right'){{ $d['website']['name'] }} · Monthly SEO report · {{ $d['period']['label'] }}@endsection @section('content') @php $fmt = fn($v) => $v === null ? '—' : number_format($v); $delta = function($cur, $prev, $suffix = '%') { if ($cur === null || $prev === null || $prev == 0) return ''; $c = round(($cur - $prev) / $prev * 100); return ''.($c >= 0 ? '▲ +' : '▼ ').$c.$suffix.''; }; $h = $d['health']; $i = $d['issues']; $g = $d['search_console']; $a = $d['analytics']; @endphp

Monthly SEO Report — {{ $d['period']['label'] }}

{{ $d['website']['name'] }} · {{ $d['website']['url'] }}@if($d['website']['client']) · Client: {{ $d['website']['client'] }}@endif @if($d['website']['assignee']) · SEO lead: {{ $d['website']['assignee'] }}@endif

@if(($report->approval_status ?? 'draft') !== 'approved')

DRAFT — not yet approved

@else

Approved by {{ $report->approver?->name }} on {{ $report->approved_at?->format('d M Y') }}

@endif @if($report->manager_notes)
SEO manager's notes
{{ $report->manager_notes }}
@endif @php($fl = $d['leads']['events']['generate_lead'] ?? null)
Health score
{{ $h['current'] ?? '—' }}/100
@if($h['current'] !== null && $h['previous'] !== null)
{{ sprintf('%+d', $h['current'] - $h['previous']) }} vs previous
@endif
Open issues
{{ $i['open_total'] }}
{{ $i['by_severity']['critical'] }} critical · {{ $i['by_severity']['high'] }} high
Organic clicks
{{ $g ? $fmt($g['clicks']) : '—' }}
{!! $g ? $delta($g['clicks'], $g['prev_clicks']) : 'Search Console not connected' !!}
Confirmed leads from SEO
{{ $fl && $fl['organic'] !== null ? $fmt($fl['organic']) : '—' }}
{!! $fl && $fl['organic'] !== null ? $delta($fl['organic'], $fl['prev_organic']) : ($a ? 'Form tracking not installed' : 'GA4 not connected') !!}

Executive summary

@if(count($h['trend']) > 1)

Health score trend

@foreach($h['trend'] as $t)@endforeach
{{ $t['score'] }}
{{ $t['label'] }}
@endif @if($d['targets'])

Targets for {{ $d['period']['label'] }}

@foreach($d['targets'] as $t)@endforeach
TargetGoalActualProgress
{{ $t['label'] }}@if($t['notes'])
{{ $t['notes'] }}
@endif
{{ $fmt($t['target']) }}{{ $t['actual'] === null ? '—' : $fmt($t['actual']) }} @if($t['progress'] !== null)
{{ $t['progress'] }}%@elsenot measured@endif
@endif

Lead-generation recommendations

Prioritised suggestions based on this website's crawl, Search Console and GA4 data. These are recommendations only — no changes were made to the website.

@forelse($d['recommendations'] as $n => $r)
{{ $n + 1 }}. {{ $r['title'] }} {{ $r['priority'] }}

{{ $r['why'] }}

Expected effect: {{ $r['impact'] }}

@if($r['urls'])
@foreach(array_slice($r['urls'], 0, 6) as $u)
{{ $u }}
@endforeach
@endif
@empty

No outstanding lead-generation recommendations.

@endforelse @if($g || $a)

Search performance

@if($g) @endif @if($a) @endif
Metric{{ $d['period']['label'] }}Previous monthChange
Clicks from Google{{ $fmt($g['clicks']) }}{{ $fmt($g['prev_clicks']) }}{!! $delta($g['clicks'], $g['prev_clicks']) !!}
Impressions{{ $fmt($g['impressions']) }}{{ $fmt($g['prev_impressions']) }}{!! $delta($g['impressions'], $g['prev_impressions']) !!}
Average CTR / position{{ $g['ctr'] }}% / {{ $g['position'] }}
Organic sessions (GA4){{ $fmt($a['organic_sessions']) }}{{ $fmt($a['prev_organic_sessions']) }}{!! $delta($a['organic_sessions'], $a['prev_organic_sessions']) !!}
Organic key events (all GA4 key events, incl. clicks){{ $fmt($a['leads']) }}{{ $fmt($a['prev_leads']) }}{!! $delta($a['leads'], $a['prev_leads']) !!}
All sessions / all key events{{ $fmt($a['sessions']) }} / {{ $fmt($a['key_events']) }}
@if($g && $g['top_queries'])

Top search queries

@foreach($g['top_queries'] as $q)@endforeach
QueryClicksPos.
{{ \Illuminate\Support\Str::limit($q['value'], 45) }}{{ $q['clicks'] }}{{ $q['position'] }}

Top landing pages

@foreach($g['top_pages'] as $q)@endforeach
PageClicksCTR
{{ \Illuminate\Support\Str::limit(preg_replace('#^https?://[^/]+#', '', $q['value']) ?: '/', 50) }}{{ $q['clicks'] }}{{ $q['ctr'] }}%
@endif @endif @php($L = $d['leads'] ?? null) @if($L)

Leads & conversions (GA4)

@if(! $L['connected'])

GA4 is not connected for this website — conversions unavailable.

@else @foreach($L['events'] as $e) @if($e['total'] === null) @else@endif@endforeach
EventOrganicOther channelsTotalOrganic {{ $L['prev_month'] }}Change
{{ $e['label'] }}Not tracked for this period{{ number_format($e['organic']) }}{{ number_format($e['other']) }}{{ number_format($e['total']) }} {{ $e['prev_organic'] === null ? 'no data' : number_format($e['prev_organic']) }}{!! $e['pct_organic'] === null ? 'n/a' : ''.($e['pct_organic'] >= 0 ? '+' : '').$e['pct_organic'].'%' !!}

Only confirmed form inquiries are leads. WhatsApp and phone clicks show intent; they are not confirmed conversations or calls. @if($L['tracking_since'])Tracking data since {{ \Carbon\Carbon::parse($L['tracking_since'])->format('d M Y') }}.@endif

@endif @endif @php($P = $d['pages'] ?? null) @if($P && $P['count'])

Top pages & products

{{ number_format($P['count']) }} pages analysed. GA4 measures site visits; Search Console measures Google Search only — the two are not expected to match. Full page-by-page data with previous-month comparison is in the Excel file that accompanies this report.

@php($tbl = function ($rows, $title, $cols) { return compact('rows', 'title', 'cols'); }) @foreach([ ['top_clicks', 'Most Google Search clicks', ['clicks' => 'Clicks', 'pct_clicks' => 'vs prev', 'impressions' => 'Impr.', 'position' => 'Pos.', 'form_leads' => 'Form leads']], ['top_products', 'Products', ['clicks' => 'Clicks', 'organic_sessions' => 'Org. sessions', 'form_leads' => 'Form leads', 'whatsapp_clicks' => 'WA clicks', 'phone_clicks' => 'Tel clicks']], ['lead_pages', 'Pages generating confirmed form inquiries', ['form_leads' => 'Form leads', 'organic_sessions' => 'Org. sessions', 'clicks' => 'Clicks']], ['declining', 'Biggest declines in Google clicks', ['prev_clicks' => 'Prev', 'clicks' => 'Now', 'chg_clicks' => 'Change', 'pct_clicks' => '%']], ] as [$key, $title, $cols]) @if(! empty($P[$key]))

{{ $title }}

@foreach($cols as $c => $lab)@endforeach @foreach($P[$key] as $r) @foreach($cols as $c => $lab)@endforeach@endforeach
Page / productType{{ $lab }}
{{ \Illuminate\Support\Str::limit($r['name'], 55) }}
{{ \Illuminate\Support\Str::limit($r['key'], 70) }}@if($r['sku']) · SKU {{ $r['sku'] }}@endif
{{ $r['page_type'] }}@if($r[$c] === null)no data@elseif(str_starts_with($c, 'pct_')){{ ($r[$c] >= 0 ? '+' : '').$r[$c] }}%@elseif($c === 'position'){{ round($r[$c], 1) }}@elseif($c === 'chg_clicks'){{ sprintf('%+d', $r[$c]) }}@else{{ number_format($r[$c]) }}@endif
@endif @endforeach @endif @php($B = $d['blogs'] ?? null) @if($B)

Blog publishing — {{ $B['label'] }}

@if($B['target'])Target {{ $B['target'] }} · new posts published {{ $B['published'] }} · remaining {{ $B['remaining'] }} · deadline {{ $B['deadline'] }} ({{ $B['timezone'] }})@if($B['overdue']) · target missed@endif @else{{ $B['published'] }} new post(s) published (no target set).@endif @if($B['assignee']) · owner {{ $B['assignee'] }}@endif

@if($B['posts']) @foreach($B['posts'] as $bp)@endforeach
TitleOriginal publication dateDetected
{{ $bp['title'] }}@if($bp['review']) (date under review)@endif
{{ $bp['url'] }}
{{ $bp['published'] ?? 'unknown' }}{{ $bp['detected'] }}
@endif

Only newly published posts are counted; updates to existing posts are not.

@endif @if($d['keywords'])

Keyword positions

@foreach($d['keywords'] as $k)@endforeach
KeywordPositionPreviousChangeTargetClicks (28d)
{{ $k['keyword'] }}{{ $k['position'] !== null ? round($k['position'], 1) : 'not ranking' }}{{ $k['previous'] !== null ? round($k['previous'], 1) : '—' }} @if($k['change'] !== null){{ sprintf('%+.1f', $k['change']) }}@endif{{ $k['target'] }}{{ $fmt($k['clicks']) }}
@endif

Technical SEO audit

@if($d['crawl'])

Latest crawl #{{ $d['crawl']['id'] }} on {{ $d['crawl']['date'] }}: {{ number_format($d['crawl']['pages']) }} URLs checked, {{ number_format($d['crawl']['summary']['pages_indexable'] ?? 0) }} indexable pages, {{ number_format($d['crawl']['sitemap_urls']) }} URLs in sitemap, {{ $d['crawl']['summary']['pages_4xx'] ?? 0 }} broken (4xx), {{ $d['crawl']['summary']['pages_5xx'] ?? 0 }} server errors (5xx), average response {{ number_format($d['crawl']['summary']['avg_response_ms'] ?? 0) }} ms. @if($d['crawl']['budget_reached'])Note: the crawl stopped at its page budget; larger sites may have more affected URLs.@endif

@else

No completed crawl yet.

@endif

This month: {{ $i['new'] }} new issues detected, {{ $i['resolved'] }} resolved.

@foreach($i['top'] as $issue)
@include('pdf._sev', ['s' => $issue['severity']]) {{ $issue['title'] }} — {{ number_format($issue['count']) }} URL(s) · {{ $issue['category'] }}@if($issue['assignee']) · {{ $issue['assignee'] }}@endif @if($issue['regression']) · regression@endif

{{ $issue['description'] }}

How to fix: {{ $issue['recommendation'] }}
@foreach($issue['urls'] as $u)
{{ $u['url'] }}@if($u['detail']) — {{ \Illuminate\Support\Str::limit($u['detail'], 120) }}@endif
@endforeach @if($issue['count'] > count($issue['urls']))
+ {{ number_format($issue['count'] - count($issue['urls'])) }} more URLs listed in the platform.
@endif
@endforeach @if($i['resolved_list'])

Resolved this month

@foreach($i['resolved_list'] as $r)@endforeach
IssueSeverityResolved
{{ $r['title'] }}@include('pdf._sev', ['s' => $r['severity']]){{ $r['resolved_at'] }}
@endif

Uptime, security & speed

UptimeAvg. responseIncidentsSSL certificate expires
{{ $d['uptime']['percent'] !== null ? $d['uptime']['percent'].'%' : '—' }}{{ $d['uptime']['avg_ms'] ? number_format($d['uptime']['avg_ms']).' ms' : '—' }}{{ count($d['uptime']['incidents']) }}{{ $d['uptime']['ssl_expires'] ?? '—' }}
@if($d['uptime']['incidents']) @foreach($d['uptime']['incidents'] as $inc)@endforeach
StartedMinutesReason
{{ $inc['start'] }}{{ $inc['minutes'] }}{{ $inc['reason'] }}
@endif @if(array_filter($d['pagespeed'])) @foreach($d['pagespeed'] as $s => $ps)@if($ps)@endif @endforeach
PageSpeed (homepage)PerformanceSEOAccessibilityLCPCLSTested
{{ ucfirst($s) }}{{ $ps['performance'] }}{{ $ps['seo'] }}{{ $ps['accessibility'] }}{{ $ps['lcp'] }}s{{ $ps['cls'] }}{{ $ps['date'] }}
@endif @php($W = $d['workflow'] ?? null) @if($W) @php($Q = $d['quality'] ?? null) @if($Q)

Site checks

@foreach($Q['checks'] as $label => $n)@endforeach @if($Q['mobile'])@endif @foreach($Q['forms'] as $f)@endforeach
CheckStatus
SSL certificate@if($Q['expiry']['ssl'])Expires {{ $Q['expiry']['ssl']['date'] }} ({{ $Q['expiry']['ssl']['days'] }} days) · verified {{ $Q['expiry']['ssl']['verified'] }}@elseUnavailable@endif
Domain registration@if($Q['expiry']['domain'])Expires {{ $Q['expiry']['domain']['date'] }} ({{ $Q['expiry']['domain']['days'] }} days) · source: {{ $Q['expiry']['domain']['source'] }}@elseUnavailable — {{ \Illuminate\Support\Str::limit($Q['expiry']['domain_note'], 90) }}@endif
{{ $label }}{!! $n ? ''.number_format($n).' item(s) to fix' : 'No problems found' !!}
Mobile pages ({{ $Q['mobile']['date'] }}){{ $Q['mobile']['checked'] }} page/screen-size checks · {{ $Q['mobile']['pages_with_issues'] }} page(s) with layout findings
Form: {{ $f['name'] }}{{ $f['manual'] ? 'Manual test required (CAPTCHA/OTP)' : ucfirst(str_replace('_', ' ', $f['status'])) }}@if($f['checked']) · checked {{ $f['checked'] }}@endif @if($f['tests']) · test inquiries: {{ implode(', ', $f['tests']) }}@endif

Contact links are compared with the approved details; a working link does not confirm a phone line or mailbox is in use. Structured-data checks do not guarantee Google rich results.

@endif

Issue workflow

OpenOverdueResolved this monthReopened this monthAwaiting verification
{{ $W['open'] }}{{ $W['overdue'] }}{{ $W['resolved'] }}{{ $W['reopened'] }}{{ $W['awaiting'] }}
@if($W['overdue_list'])@foreach($W['overdue_list'] as $o)@endforeach
Overdue issueDueAssigned
{{ $o['title'] }}{{ $o['due'] }}{{ $o['assignee'] ?? '—' }}
@endif @endif @if(($d['changes']['crawls'] ?? 0) > 0)

Site changes detected this month

{{ $d['changes']['crawls'] }} crawl(s) compared with the previous crawl: @forelse($d['changes']['counts'] as $type => $n){{ \App\Services\Monitor\ChangeDetector::labels()[$type] ?? $type }}: {{ $n }}@if(! $loop->last) · @endif @empty no changes. @endforelse

@endif @if($I = $d['indexing'] ?? null)

Google indexing (Search Console URL Inspection)

{{ $I['indexed'] }} of {{ $I['inspected'] }} inspected important pages are indexed (last checked {{ $I['checked'] }}).

@if($I['not_indexed'])@foreach($I['not_indexed'] as $n)@endforeach
Not indexedGoogle status
{{ $n['url'] }}{{ $n['state'] }}
@endif @endif

Work completed in {{ $d['period']['label'] }}

@if($d['activities_done']) @foreach($d['activities_done'] as $act)@endforeach
ActivityTypeByDate
{{ $act['title'] }}{{ $act['type'] }}{{ $act['by'] }}{{ $act['date'] }}
@else

No activities were logged as completed this month.

@endif @if($Q && $Q['approved_work'])

Approved deliverables

@foreach($Q['approved_work'] as $aw)@endforeach
WorkByPublished / proofApproved
{{ $aw['title'] }}
{{ $aw['type'] }}@if($aw['notes']) · {{ $aw['notes'] }}@endif
{{ $aw['by'] ?? '—' }} @foreach($aw['urls'] as $u)
{{ $u }}
@endforeach @if($aw['proof'] > count($aw['urls']))
{{ $aw['proof'] - count($aw['urls']) }} other proof item(s) on file
@endif
{{ $aw['approved'] }}
@endif @if($Q && $Q['changes'])

SEO changes — before & after

@php($pd = fn ($m) => $m['zero_baseline'] ? 'new (was 0)' : ($m['pct'] === null ? 'no change (0 → 0)' : sprintf('%+.1f%%', $m['pct']))) @foreach($Q['changes'] as $c)@endforeach
ChangeSearch clicks / dayAvg positionLeads / day
{{ $c['title'] }}
{{ $c['date'] }} · {{ $c['scope'] }} · {{ $c['window'] }} days before vs after @if($c['others']) · {{ $c['others'] }} other change(s) in the window @endif
@if(isset($c['gsc']['clicks'])){{ $c['gsc']['clicks']['before_per_day'] }} → {{ $c['gsc']['clicks']['after_per_day'] }} ({{ $pd($c['gsc']['clicks']) }})@unless($c['gsc']['complete'])
after period incomplete
@endunless @else{{ $c['gsc']['message'] }}@endif
@if(isset($c['gsc']['position']) && $c['gsc']['position']['change'] !== null){{ $c['gsc']['position']['before'] }} → {{ $c['gsc']['position']['after'] }}@else — @endif @if(isset($c['ga4']['leads'])){{ $c['ga4']['leads']['before_per_day'] }} → {{ $c['ga4']['leads']['after_per_day'] }} ({{ $pd($c['ga4']['leads']) }})@else{{ $c['ga4']['message'] }}@endif

{{ $Q['changes_disclaimer'] }}

@endif

Plan for next month

@if($d['activities_next']) @foreach($d['activities_next'] as $act)@endforeach
Planned activityTypeOwnerPriorityDue
{{ $act['title'] }}{{ $act['type'] }}{{ $act['by'] ?? '—' }}{{ ucfirst($act['priority']) }}{{ $act['due'] ?? '—' }}
@else

No activities planned yet — use the recommendations above to create next month's tasks.

@endif @if($F = $d['freshness'] ?? null)

Data sources

SourceStatus
Google Search Console{{ $F['search_console'] }}
Google Analytics 4{{ $F['ga4'] }}
Technical crawl{{ $F['crawl'] }}
Uptime monitoring{{ $F['uptime'] }}

"Unavailable" or "not tracked" means no data was recorded — it is never shown as zero. Data from before tracking was installed is not estimated.

@endif @endsection