@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
{{ $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
@elseApproved by {{ $report->approver?->name }} on {{ $report->approved_at?->format('d M Y') }}
@endif @if($report->manager_notes)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' !!} |
@php($fl = $d['leads']['events']['generate_lead'] ?? null)
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') !!} |
|
{{ $t['score'] }} {{ $t['label'] }} | @endforeach
| Target | Goal | Actual | Progress |
|---|---|---|---|
| {{ $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 |
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){{ $r['why'] }}
Expected effect: {{ $r['impact'] }}
@if($r['urls'])No outstanding lead-generation recommendations.
@endforelse @if($g || $a)| Metric | {{ $d['period']['label'] }} | Previous month | Change |
|---|---|---|---|
| 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']) }} |
Top search queries
|
Top landing pages
|
GA4 is not connected for this website — conversions unavailable.
@else| Event | Organic | Other channels | Total | Organic {{ $L['prev_month'] }} | Change | |||||
|---|---|---|---|---|---|---|---|---|---|---|
| {{ $e['label'] }} | @if($e['total'] === null)Not tracked for this period | @else{{ 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'].'%' !!} | @endif||||
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']){{ 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]))| Page / product | Type | @foreach($cols as $c => $lab){{ $lab }} | @endforeach
|---|---|---|
| {{ \Illuminate\Support\Str::limit($r['name'], 55) }} {{ \Illuminate\Support\Str::limit($r['key'], 70) }}@if($r['sku']) · SKU {{ $r['sku'] }}@endif | {{ $r['page_type'] }} | @foreach($cols as $c => $lab)@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 | @endforeach
@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'])| Title | Original publication date | Detected |
|---|---|---|
| {{ $bp['title'] }}@if($bp['review']) (date under review)@endif {{ $bp['url'] }} | {{ $bp['published'] ?? 'unknown' }} | {{ $bp['detected'] }} |
Only newly published posts are counted; updates to existing posts are not.
@endif @if($d['keywords'])| Keyword | Position | Previous | Change | Target | Clicks (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']) }} |
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
@elseNo completed crawl yet.
@endifThis month: {{ $i['new'] }} new issues detected, {{ $i['resolved'] }} resolved.
@foreach($i['top'] as $issue){{ $issue['description'] }}
| Issue | Severity | Resolved |
|---|---|---|
| {{ $r['title'] }} | @include('pdf._sev', ['s' => $r['severity']]) | {{ $r['resolved_at'] }} |
| Uptime | Avg. response | Incidents | SSL 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'] ?? '—' }} |
| Started | Minutes | Reason |
|---|---|---|
| {{ $inc['start'] }} | {{ $inc['minutes'] }} | {{ $inc['reason'] }} |
| PageSpeed (homepage) | Performance | SEO | Accessibility | LCP | CLS | Tested |
|---|---|---|---|---|---|---|
| {{ ucfirst($s) }} | {{ $ps['performance'] }} | {{ $ps['seo'] }} | {{ $ps['accessibility'] }} | {{ $ps['lcp'] }}s | {{ $ps['cls'] }} | {{ $ps['date'] }} |
| Check | Status |
|---|---|
| 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| Open | Overdue | Resolved this month | Reopened this month | Awaiting verification |
|---|---|---|---|---|
| {{ $W['open'] }} | {{ $W['overdue'] }} | {{ $W['resolved'] }} | {{ $W['reopened'] }} | {{ $W['awaiting'] }} |
| Overdue issue | Due | Assigned |
|---|---|---|
| {{ $o['title'] }} | {{ $o['due'] }} | {{ $o['assignee'] ?? '—' }} |
{{ $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){{ $I['indexed'] }} of {{ $I['inspected'] }} inspected important pages are indexed (last checked {{ $I['checked'] }}).
@if($I['not_indexed'])| Not indexed | Google status |
|---|---|
| {{ $n['url'] }} | {{ $n['state'] }} |
| Activity | Type | By | Date |
|---|---|---|---|
| {{ $act['title'] }} | {{ $act['type'] }} | {{ $act['by'] }} | {{ $act['date'] }} |
No activities were logged as completed this month.
@endif @if($Q && $Q['approved_work'])| Work | By | Published / proof | Approved |
|---|---|---|---|
| {{ $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'] }} |
| Change | Search clicks / day | Avg position | Leads / 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| Planned activity | Type | Owner | Priority | Due |
|---|---|---|---|---|
| {{ $act['title'] }} | {{ $act['type'] }} | {{ $act['by'] ?? '—' }} | {{ ucfirst($act['priority']) }} | {{ $act['due'] ?? '—' }} |
No activities planned yet — use the recommendations above to create next month's tasks.
@endif @if($F = $d['freshness'] ?? null)| Source | Status |
|---|---|
| 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