@foreach([
'Status' => $detail->status_code ?? $detail->error, 'Indexable' => $detail->indexable ? 'yes' : 'no', 'Response' => $detail->response_ms.' ms',
'Title' => $detail->title.' ('.mb_strlen((string) $detail->title).' chars)', 'Meta description' => $detail->meta_description ? $detail->meta_description.' ('.mb_strlen($detail->meta_description).' chars)' : '—',
'H1' => $detail->h1.' ('.$detail->h1_count.' H1)', 'Canonical' => $detail->canonical ?? '—', 'Meta robots' => trim($detail->meta_robots.' '.$detail->x_robots_tag) ?: '—',
'Redirects to' => $detail->redirect_to ?? '—', 'Language' => $detail->lang ?? '—', 'Words' => $detail->word_count, 'Internal / external links' => $detail->internal_links.' / '.$detail->external_links,
'Inlinks' => $detail->inlinks, 'First linked from' => $detail->found_on ?? '—', 'Images (missing alt)' => $detail->images.' ('.$detail->images_missing_alt.')',
'Schema types' => implode(', ', $detail->schema_types ?? []) ?: '—', 'Open Graph' => $detail->has_og ? 'yes' : 'no', 'Viewport' => $detail->has_viewport ? 'yes' : 'no',
'Lead capture' => collect(['form' => $detail->has_form, 'tel:' => $detail->has_tel, 'WhatsApp' => $detail->has_whatsapp, 'mailto:' => $detail->has_mailto])->filter()->keys()->implode(', ') ?: 'none',
'Mixed content' => $detail->mixed_content,
] as $k => $v)- {{ $k }}
- {{ $v }}
@endforeach
@php($issues = \App\Models\IssueUrl::with('issue')->where('url_hash', $detail->url_hash)->whereHas('issue', fn($q) => $q->where('website_id', $crawl->website_id))->get())
@if($issues->isNotEmpty())
Issues on this URL
@endif