<?php $attributes ??= new \Illuminate\View\ComponentAttributeBag;

$__newAttributes = [];
$__propNames = \Illuminate\View\ComponentAttributeBag::extractPropNames((['post']));

foreach ($attributes->all() as $__key => $__value) {
    if (in_array($__key, $__propNames)) {
        $$__key = $$__key ?? $__value;
    } else {
        $__newAttributes[$__key] = $__value;
    }
}

$attributes = new \Illuminate\View\ComponentAttributeBag($__newAttributes);

unset($__propNames);
unset($__newAttributes);

foreach (array_filter((['post']), 'is_string', ARRAY_FILTER_USE_KEY) as $__key => $__value) {
    $$__key = $$__key ?? $__value;
}

$__defined_vars = get_defined_vars();

foreach ($attributes->all() as $__key => $__value) {
    if (array_key_exists($__key, $__defined_vars)) unset($$__key);
}

unset($__defined_vars, $__key, $__value); ?>

<article <?php echo e($attributes->merge(['class' => 'overflow-hidden rounded-2xl border border-lime-100 dark:border-slate-800 bg-white dark:bg-slate-900'])); ?>>
    <!--[if BLOCK]><![endif]--><?php if($post->coverImageUrl()): ?>
        <a href="<?php echo e(route('blog.show', $post->slug)); ?>">
            <img src="<?php echo e($post->coverImageUrl()); ?>" alt="<?php echo e($post->title); ?>" class="h-52 w-full object-cover">
        </a>
    <?php else: ?>
        <div class="h-52 w-full bg-lime-50 dark:bg-slate-800"></div>
    <?php endif; ?><!--[if ENDBLOCK]><![endif]-->
    <div class="p-5">
        <div class="flex flex-wrap items-center gap-2 text-xs font-medium text-slate-500 dark:text-slate-400">
            <span><?php echo e($post->published_at?->format('M d, Y')); ?> • <?php echo e($post->author?->name ?? 'Admin'); ?></span>
            <!--[if BLOCK]><![endif]--><?php if($post->relationLoaded('category') && $post->category): ?>
                <a href="<?php echo e(route('blog.category', $post->category->slug)); ?>" class="rounded-full bg-lime-100 dark:bg-lime-900/40 px-2 py-0.5 text-lime-800 dark:text-lime-300 hover:underline">
                    <?php echo e($post->category->name); ?>

                </a>
            <?php endif; ?><!--[if ENDBLOCK]><![endif]-->
        </div>
        <h2 class="mt-2 text-xl font-semibold text-slate-900 dark:text-slate-100 line-clamp-2">
            <a href="<?php echo e(route('blog.show', $post->slug)); ?>" class="hover:text-lime-700 dark:hover:text-lime-400 transition-colors">
                <?php echo e($post->title); ?>

            </a>
        </h2>
        <p class="mt-2 text-[15px] leading-relaxed text-slate-600 dark:text-slate-300 line-clamp-3 font-serif">
            <?php echo e($post->excerpt ?: \Illuminate\Support\Str::limit(strip_tags($post->content), 140)); ?>

        </p>
        <a href="<?php echo e(route('blog.show', $post->slug)); ?>" class="mt-4 inline-flex items-center gap-1 text-sm font-semibold text-lime-700 dark:text-lime-400 hover:underline">
            Read post
            <i class="fas fa-arrow-right text-xs"></i>
        </a>
    </div>
</article>
<?php /**PATH /home/nezemgrh/blog.nezertechy.xyz/resources/views/components/blog/post-card.blade.php ENDPATH**/ ?>