@extends('layouts.app', [ 'title' => $author->authorProfile->meta_title ?? $author->name . ' - SEO Kenya Author', 'description' => $author->authorProfile->meta_description, 'keywords' => $author->authorProfile->keywords, 'canonical' => url('author/'.$author->authorProfile->slug) ]) @section('content') {{-- ─── Author hero ──────────────────────────────────────────────────────── --}} {{-- ─── Author articles ──────────────────────────────────────────────────── --}}

Articles by {{ $author->name }}

@forelse($articles as $article) @php $photo = $article->photos->first(); $photoUrl = ($photo && $photo->filename) ? asset('assets/uploads/' . $photo->filename) : \App\Models\Page::blogPlaceholderImageUrl(); @endphp @if($loop->first)
@endif
{{ $article->name }}

{{ $article->parent ? $article->parent->name : 'SEO' }} Updated {{ $article->lastUpdatedLabel() }}

{{ $article->name }}

{{ Str::limit(strip_tags($article->description), 120) }}

@if($loop->last)
@endif @empty

No articles have been published yet.

@endforelse {{-- Pagination --}} @if($articles->hasPages()) @endif
@push('scripts') @endpush @endsection