@props([ 'title' => null, 'category' => null, 'tinyCard' => false, 'postUrl' => '#', 'createdAt' => null, 'image' => [ 'url' => 'https://images.pexels.com/photos/5238645/pexels-photo-5238645.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2', 'alt' => '', ], ]) @php $baseClass = 'article-card card overflow-hidden bg-white group h-full img-zoom-hover rounded-none' . ($tinyCard ? ' card-side' : ''); $figureClass = $tinyCard ? 'max-w-[35%] grow shrink-0' : 'grow overflow-hidden'; $bodyClass = $tinyCard ? 'p-4' : 'py-6 px-0'; $imgClass = $tinyCard ? 'aspect-video h-full ' : 'aspect-video h-full w-full object-cover'; @endphp merge(['class' => 'w-full block']) }} href="{{ $postUrl }}">
merge(['class' => $baseClass]) }}>
{{ $image['alt'] }}
@isset($category) @php $limit = $tinyCard ? 28 : 40; @endphp

{!! \Illuminate\Support\Str::limit(strip_tags($category), $limit) !!}

{{ $createdAt }} @endisset

$tinyCard, 'leading-[1.25]' => $tinyCard, 'leading-tight' => !$tinyCard, 'text-xl md:text-3xl' => !$tinyCard, ])> {{ $title }}

{{ $slot }}