Record each SEO change and compare the period before it with the period after it, using Search Console and GA4. {{ \App\Services\Work\BeforeAfter::DISCLAIMER }}

    @forelse($changes as $c) @php($g = $c->results['sources']['gsc'] ?? null)
  • {{ $c->title }}
    {{ $c->implemented_on->format('d M Y') }} · {{ \App\Models\SeoChange::TYPES[$c->change_type] ?? $c->change_type }} · {{ $c->urls ? count($c->urlList()).' URL(s)' : 'whole site' }} · {{ $c->owner?->name ?? '—' }}
    @if(($g['status'] ?? '') === 'ok')
    Clicks @unless($g['after']['complete']) · after period incomplete@endunless
    @elseif($g)
    {{ $g['message'] ?? '' }}
    @endif
  • @empty
  • No changes recorded yet.
  • @endforelse
@if($view) @php($r = $view->results)
{{ $view->title }}
Implemented {{ $view->implemented_on->format('d M Y') }} · {{ \App\Models\SeoChange::TYPES[$view->change_type] ?? '' }} · window {{ $view->window_days }} days · {{ $r['scope'] ?? '' }}
@if($view->notes)
{{ $view->notes }}
@endif @if($view->urls)
Affected URLs
    @foreach($view->urlList() as $u)
  • {{ $u }}
  • @endforeach
@endif @if(! $r)

Not calculated yet.

@else @foreach(['gsc' => 'Search Console', 'ga4' => 'GA4'] as $sk => $sl) @php($s = $r['sources'][$sk] ?? null)
{{ $sl }} @if(isset($s['before']['start']))before {{ $s['before']['start'] }} → {{ $s['before']['end'] }} ({{ $s['before']['days'] }} d)@if(isset($s['after'])) · after {{ $s['after']['start'] }} → {{ $s['after']['end'] }} ({{ $s['after']['days'] }} d)@endif@endif
@if(($s['status'] ?? '') === 'ok') @foreach($s['metrics'] as $m)@endforeach
MetricBeforeAfterPer day before → afterChange
{{ $m['label'] }}{{ $m['before'] ?? '—' }}{{ $m['after'] ?? '—' }} @isset($m['before_per_day']){{ $m['before_per_day'] }} → {{ $m['after_per_day'] }}@endisset
@foreach($s['warnings'] ?? [] as $wn)
⚠ {{ ucfirst($wn) }}
@endforeach @else

{{ $s['message'] ?? 'Unavailable.' }}

@endif
@endforeach @foreach($r['notes'] ?? [] as $n)

{{ $n }}

@endforeach
Other recorded changes in the window
    @forelse($r['other_changes'] as $o)
  • {{ $o['date'] }} · {{ $o['source'] }} · {{ $o['title'] }}
  • @empty
  • None recorded.
  • @endforelse

{{ $r['disclaimer'] }} Calculated {{ \Illuminate\Support\Carbon::parse($r['computed_at'])->format('d M Y H:i') }}; recalculated daily until the after period is complete.

@endif
@else
Select a change to see the comparison.
@endif
@error('f.title')

{{ $message }}

@enderror
@error('f.implemented_on')

{{ $message }}

@enderror
@error('f.urls')

{{ $message }}

@enderror
@error('f.notes')

{{ $message }}

@enderror
@if($editingId)@can('delete-records')@endcan @endif