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

$__newAttributes = [];
$__propNames = \Illuminate\View\ComponentAttributeBag::extractPropNames((['article', 'slug' => null, 'featured' => false]));

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((['article', 'slug' => null, 'featured' => false]), '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); ?>
<?php ($href = $slug ? route('insights.show', $slug) : route('insights.index')); ?>
<article class="<?php echo \Illuminate\Support\Arr::toCssClasses(['article-card', 'article-card--featured' => $featured]); ?>">
    <div class="article-card-media">
        <?php if (isset($component)) { $__componentOriginal866276d147fd9806dc1448ec1d213bc4 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal866276d147fd9806dc1448ec1d213bc4 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.media-image','data' => ['src' => $article['image'],'alt' => 'Article image for '.$article['title'],'ratio' => '3 / 2']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('media-image'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['src' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($article['image']),'alt' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute('Article image for '.$article['title']),'ratio' => '3 / 2']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal866276d147fd9806dc1448ec1d213bc4)): ?>
<?php $attributes = $__attributesOriginal866276d147fd9806dc1448ec1d213bc4; ?>
<?php unset($__attributesOriginal866276d147fd9806dc1448ec1d213bc4); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal866276d147fd9806dc1448ec1d213bc4)): ?>
<?php $component = $__componentOriginal866276d147fd9806dc1448ec1d213bc4; ?>
<?php unset($__componentOriginal866276d147fd9806dc1448ec1d213bc4); ?>
<?php endif; ?>
    </div>
    <div class="article-card-content">
        <p class="article-card-meta"><?php echo e($article['category']); ?> <span aria-hidden="true">·</span> <?php echo e($article['read_time']); ?></p>
        <h3><?php echo e($article['title']); ?></h3>
        <p class="article-card-excerpt"><?php echo e($article['excerpt']); ?></p>
        <a class="article-card-link" href="<?php echo e($href); ?>" <?php if(!$slug): ?> aria-label="Read <?php echo e($article['title']); ?> in Insights" <?php endif; ?>>
            <span>Read More</span><span aria-hidden="true">→</span>
        </a>
    </div>
</article>
<?php /**PATH D:\servoknit\resources\views/components/article-card.blade.php ENDPATH**/ ?>