<div>
    
    <style>
        .custom-scrollbar::-webkit-scrollbar {
            width: 6px;
        }
        .custom-scrollbar::-webkit-scrollbar-track {
            background: transparent;
        }
        .custom-scrollbar::-webkit-scrollbar-thumb {
            background-color: #f59e0b; /* amber-500 */
            border-radius: 20px;
        }
        .dark .custom-scrollbar::-webkit-scrollbar-thumb {
            background-color: #d97706; /* amber-600 */
        }
    </style>

    <!--[if BLOCK]><![endif]--><?php if($this->lowStockItems->isNotEmpty()): ?>
        <div class="bg-amber-50 dark:bg-gray-800/90 border-t-4 border-amber-400 dark:border-amber-500 rounded-xl shadow-lg overflow-hidden">
            <div class="p-6">
                
                <div class="flex items-start">
                    <div class="flex-shrink-0">
                        <?php if (isset($component)) { $__componentOriginal643fe1b47aec0b76658e1a0200b34b2c = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal643fe1b47aec0b76658e1a0200b34b2c = $attributes; } ?>
<?php $component = BladeUI\Icons\Components\Svg::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('lucide-alert-triangle'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\BladeUI\Icons\Components\Svg::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['class' => 'h-6 w-6 text-amber-500 dark:text-amber-400']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal643fe1b47aec0b76658e1a0200b34b2c)): ?>
<?php $attributes = $__attributesOriginal643fe1b47aec0b76658e1a0200b34b2c; ?>
<?php unset($__attributesOriginal643fe1b47aec0b76658e1a0200b34b2c); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal643fe1b47aec0b76658e1a0200b34b2c)): ?>
<?php $component = $__componentOriginal643fe1b47aec0b76658e1a0200b34b2c; ?>
<?php unset($__componentOriginal643fe1b47aec0b76658e1a0200b34b2c); ?>
<?php endif; ?>
                    </div>
                    <div class="ml-4 mr-4 flex-1">
                        <h3 class="text-lg font-semibold text-amber-900 dark:text-amber-200">هشدار کمبود موجودی</h3>
                        <p class="mt-1 text-sm text-amber-700 dark:text-amber-400">
                            موجودی آیتم‌های زیر به حد آستانه رسیده است.
                        </p>
                    </div>
                </div>

                
                <div class="mt-4 relative">
                    
                    <ul class="divide-y divide-amber-200/60 dark:divide-gray-700 max-h-72 overflow-y-auto pr-2 custom-scrollbar">
                        <!--[if BLOCK]><![endif]--><?php $__currentLoopData = $this->lowStockItems; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <li class="py-4 flex flex-col sm:flex-row items-start sm:items-center justify-between gap-3">
                                
                                <div class="flex-grow">
                                    <p class="text-sm font-medium text-gray-900 dark:text-white">
                                        <a href="<?php echo e(route('inventory.index')); ?>" class="hover:underline hover:text-blue-600 dark:hover:text-blue-400">
                                            <?php echo e($item->name); ?>

                                        </a>
                                    </p>
                                    <p class="text-sm text-gray-500 dark:text-gray-400">
                                        در تیم: <span class="font-semibold"><?php echo e($item->researchTeam->name); ?></span>
                                    </p>
                                </div>
                                
                                <div class="flex items-center gap-4 flex-shrink-0 w-full sm:w-auto justify-between">
                                    <span class="text-xs font-mono px-2.5 py-1 bg-red-100 text-red-800 dark:bg-red-900/50 dark:text-red-300 rounded-full">
                                        موجودی: <?php echo e($item->quantity); ?> <?php echo e($item->unit); ?>

                                    </span>
                                    <button wire:click="dismissItem(<?php echo e($item->id); ?>)"
                                            type="button"
                                            title="حذف هشدار"
                                            class="text-gray-400 hover:text-gray-600 dark:hover:text-gray-200 transition duration-150">
                                        <?php if (isset($component)) { $__componentOriginal643fe1b47aec0b76658e1a0200b34b2c = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal643fe1b47aec0b76658e1a0200b34b2c = $attributes; } ?>
<?php $component = BladeUI\Icons\Components\Svg::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('lucide-x'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\BladeUI\Icons\Components\Svg::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['class' => 'w-5 h-5']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal643fe1b47aec0b76658e1a0200b34b2c)): ?>
<?php $attributes = $__attributesOriginal643fe1b47aec0b76658e1a0200b34b2c; ?>
<?php unset($__attributesOriginal643fe1b47aec0b76658e1a0200b34b2c); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal643fe1b47aec0b76658e1a0200b34b2c)): ?>
<?php $component = $__componentOriginal643fe1b47aec0b76658e1a0200b34b2c; ?>
<?php unset($__componentOriginal643fe1b47aec0b76658e1a0200b34b2c); ?>
<?php endif; ?>
                                    </button>
                                </div>
                            </li>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><!--[if ENDBLOCK]><![endif]-->
                    </ul>
                    
                    <div class="absolute bottom-0 left-0 right-0 h-16 bg-gradient-to-t from-amber-50 dark:from-gray-800/90 to-transparent pointer-events-none" aria-hidden="true"></div>
                </div>
            </div>
        </div>
    <?php endif; ?><!--[if ENDBLOCK]><![endif]-->
</div>
<?php /**PATH D:\wamp64\www\benchsync\resources\views/livewire/low-stock-dashboard-widget.blade.php ENDPATH**/ ?>