@php $urls = $getImageUrls(); $limit = $getLimit(); $visibleUrls = $limit ? array_slice($urls, 0, $limit) : $urls; $remaining = $limit ? max(0, count($urls) - $limit) : 0; $width = $getThumbWidth(); $height = $isSquare() && $width ? $width : $getThumbHeight(); $isStacked = $isStacked(); $stackedOverlap = $getStackedOverlap(); $isSquare = $isSquare(); $isCircle = $isCircle(); $ringWidth = $getRingWidth(); $ringColor = $getRingColor(); $galleryId = 'gallery-col-' . str_replace(['{', '}', '-'], '', (string) \Illuminate\Support\Str::uuid()); // Determine border radius class if ($isCircle) { $borderRadiusClass = 'rounded-full'; } elseif ($isSquare) { $borderRadiusClass = 'rounded-lg'; } else { $borderRadiusClass = 'rounded'; } // Border/Ring styles - only add if ringWidth > 0 $hasRing = $ringWidth > 0; if ($hasRing) { $ringStyle = "border-width: {$ringWidth}px; border-style: solid;"; if ($ringColor) { $ringStyle .= " border-color: {$ringColor};"; $borderColorClass = ''; } else { $borderColorClass = 'border-white dark:border-gray-800'; } } else { $ringStyle = ''; $borderColorClass = ''; } // Stacked spacing - use dynamic -space-x value if ($isStacked) { $stackedClass = "-space-x-{$stackedOverlap} rtl:space-x-reverse"; } else { $stackedClass = 'gap-1'; } // Size styles - only add if width/height specified $sizeStyle = ''; if ($width) { $sizeStyle .= "width: {$width}px; min-width: {$width}px;"; } if ($height) { $sizeStyle .= " height: {$height}px;"; } @endphp