@props([ 'post', 'board', 'variant' => 'tenant', 'href' => null, 'showImage' => true, 'boardLabel' => null, 'boardLabelField' => null, 'excerptLimit' => 100, 'showExcerpt' => true, ]) @php use Illuminate\Support\Str; $href = $href ?? (method_exists($post, 'resolvePostUrl') ? $post->resolvePostUrl() : ''); $content = $post->content ?? $post->meta_description ?? ''; $excerpt = Str::of(strip_tags($content)) ->replaceMatches('/\s+/u', ' ') ->trim() ->limit($excerptLimit); $categoryName = $post->boardCategory?->name; $publishedDate = $post->published_at?->format('Y.m.d') ?? $post->created_at->format('Y.m.d'); $thumbnailUrl = $showImage ? (method_exists($post, 'thumbnailUrl') ? $post->thumbnailUrl() : ($post->thumbnail_url ?? null)) : null; $resolvedBoardLabel = $boardLabel ?? ($boardLabelField ? data_get($post, $boardLabelField) : null); @endphp

{{ $post->title }}

@if ($showExcerpt && $excerpt !== '')

{{ $excerpt }}

@endif