{{-- Article author (E-E-A-T): compact line in the header, extended box at the end --}} @props([ 'author' => null, 'publishedAt' => null, 'modifiedAt' => null, 'readTime' => null, 'variant' => 'compact', ]) @php $name = $author?->name ?? config('wasoria.site_name', 'Wasoria'); $initials = collect(explode(' ', $name))->map(fn($w) => mb_strtoupper(mb_substr($w, 0, 1)))->take(2)->join(''); $role = $author?->job_title; $bio = $author?->bio; $avatarUrl = $author?->avatarUrl(); $linkedin = $author?->linkedin_url; // "Updated on" only for a real editorial change, at least a day after publication $showUpdated = $publishedAt && $modifiedAt && $modifiedAt->copy()->startOfDay()->gt($publishedAt->copy()->startOfDay()); @endphp @if($variant === 'extended') {{-- Extended variant — article footer, wrapped in
--}} @if($author && ($role || $bio)){{ __('blog.about_author') }}
{{ $name }}
@if($role){{ $role }}
@endif @if($bio){{ $bio }}
@endif @if($linkedin) {{ __('blog.author_linkedin', ['name' => $name]) }} @endif