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

$__newAttributes = [];
$__propNames = \Illuminate\View\ComponentAttributeBag::extractPropNames(([
    'items' => [],
    'emptyLabel' => 'Logo à fournir',
    'placeholderCount' => 4,
    'label' => 'Logos',
    'speed' => 'normal',
    'direction' => 'left',
    'pauseOnHover' => true,
    'minItemsForScroll' => 6,
]));

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(([
    'items' => [],
    'emptyLabel' => 'Logo à fournir',
    'placeholderCount' => 4,
    'label' => 'Logos',
    'speed' => 'normal',
    'direction' => 'left',
    'pauseOnHover' => true,
    'minItemsForScroll' => 6,
]), '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
    $itemCount = count($items);
    $shouldScroll = $itemCount >= $minItemsForScroll;

    $durationMap = ['slow' => '55s', 'normal' => '35s', 'fast' => '20s'];
    $duration = $durationMap[$speed] ?? $durationMap['normal'];
?>

<?php if($itemCount === 0): ?>
    
    <div <?php echo e($attributes->merge(['class' => 'grid grid-cols-2 gap-4 sm:grid-cols-4'])); ?>>
        <?php for($i = 0; $i < $placeholderCount; $i++): ?>
            <div class="flex h-20 flex-col items-center justify-center gap-1.5 rounded-lg border border-dashed border-brand-border bg-brand-surface px-4 text-brand-muted">
                <?php if (isset($component)) { $__componentOriginalce262628e3a8d44dc38fd1f3965181bc = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalce262628e3a8d44dc38fd1f3965181bc = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.icon','data' => ['name' => 'image-off','class' => 'h-5 w-5']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('icon'); ?>
<?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(['name' => 'image-off','class' => 'h-5 w-5']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalce262628e3a8d44dc38fd1f3965181bc)): ?>
<?php $attributes = $__attributesOriginalce262628e3a8d44dc38fd1f3965181bc; ?>
<?php unset($__attributesOriginalce262628e3a8d44dc38fd1f3965181bc); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalce262628e3a8d44dc38fd1f3965181bc)): ?>
<?php $component = $__componentOriginalce262628e3a8d44dc38fd1f3965181bc; ?>
<?php unset($__componentOriginalce262628e3a8d44dc38fd1f3965181bc); ?>
<?php endif; ?>
                <span class="text-center text-[0.6875rem] font-medium leading-tight"><?php echo e($emptyLabel); ?></span>
            </div>
        <?php endfor; ?>
    </div>
<?php elseif(!$shouldScroll): ?>
    
    <div <?php echo e($attributes->merge(['class' => 'flex flex-wrap items-center justify-center gap-4'])); ?>>
        <?php $__currentLoopData = $items; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <?php if (isset($component)) { $__componentOriginal88980184a4fa505f3ab597d2822bf1f9 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal88980184a4fa505f3ab597d2822bf1f9 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.logo-cloud-item','data' => ['item' => $item]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('logo-cloud-item'); ?>
<?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(['item' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($item)]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal88980184a4fa505f3ab597d2822bf1f9)): ?>
<?php $attributes = $__attributesOriginal88980184a4fa505f3ab597d2822bf1f9; ?>
<?php unset($__attributesOriginal88980184a4fa505f3ab597d2822bf1f9); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal88980184a4fa505f3ab597d2822bf1f9)): ?>
<?php $component = $__componentOriginal88980184a4fa505f3ab597d2822bf1f9; ?>
<?php unset($__componentOriginal88980184a4fa505f3ab597d2822bf1f9); ?>
<?php endif; ?>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    </div>
<?php else: ?>
    
    <div
        <?php echo e($attributes->merge(['class' => 'logo-marquee'])); ?>

        role="region"
        aria-label="<?php echo e($label); ?>"
        data-pause-hover="<?php echo e($pauseOnHover ? 'true' : 'false'); ?>"
    >
        <div
            class="logo-marquee__track"
            data-marquee-track
            data-direction="<?php echo e($direction); ?>"
            style="--marquee-duration: <?php echo e($duration); ?>;"
        >
            <ul role="list" class="logo-marquee__group">
                <?php $__currentLoopData = $items; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <li><?php if (isset($component)) { $__componentOriginal88980184a4fa505f3ab597d2822bf1f9 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal88980184a4fa505f3ab597d2822bf1f9 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.logo-cloud-item','data' => ['item' => $item]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('logo-cloud-item'); ?>
<?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(['item' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($item)]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal88980184a4fa505f3ab597d2822bf1f9)): ?>
<?php $attributes = $__attributesOriginal88980184a4fa505f3ab597d2822bf1f9; ?>
<?php unset($__attributesOriginal88980184a4fa505f3ab597d2822bf1f9); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal88980184a4fa505f3ab597d2822bf1f9)): ?>
<?php $component = $__componentOriginal88980184a4fa505f3ab597d2822bf1f9; ?>
<?php unset($__componentOriginal88980184a4fa505f3ab597d2822bf1f9); ?>
<?php endif; ?></li>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </ul>
            
            <ul role="list" class="logo-marquee__group" aria-hidden="true">
                <?php $__currentLoopData = $items; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <li><?php if (isset($component)) { $__componentOriginal88980184a4fa505f3ab597d2822bf1f9 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal88980184a4fa505f3ab597d2822bf1f9 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.logo-cloud-item','data' => ['item' => $item,'interactive' => false]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('logo-cloud-item'); ?>
<?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(['item' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($item),'interactive' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(false)]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal88980184a4fa505f3ab597d2822bf1f9)): ?>
<?php $attributes = $__attributesOriginal88980184a4fa505f3ab597d2822bf1f9; ?>
<?php unset($__attributesOriginal88980184a4fa505f3ab597d2822bf1f9); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal88980184a4fa505f3ab597d2822bf1f9)): ?>
<?php $component = $__componentOriginal88980184a4fa505f3ab597d2822bf1f9; ?>
<?php unset($__componentOriginal88980184a4fa505f3ab597d2822bf1f9); ?>
<?php endif; ?></li>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </ul>
        </div>
    </div>
<?php endif; ?>
<?php /**PATH C:\wamp64\www\nh-trans\resources\views/components/logo-cloud.blade.php ENDPATH**/ ?>