@props([ 'variant' => 'default', 'icon' => null, 'title' => null, 'text' => null, 'actionUrl' => null, 'actionLabel' => null, 'actionIcon' => null, 'actionVariant' => 'primary', 'size' => 'md', ]) @php $variant = in_array($variant, ['default', 'search', 'error'], true) ? $variant : 'default'; $size = in_array($size, ['sm', 'md', 'lg'], true) ? $size : 'md'; $actionVariant = in_array($actionVariant, ['primary', 'secondary', 'danger'], true) ? $actionVariant : 'primary'; $icon = $icon ?: match ($variant) { 'search' => 'search', 'error' => 'alert', default => 'portfolio', }; $buttonClass = match ($actionVariant) { 'secondary' => 'btn-secondary', 'danger' => 'btn-danger', default => 'btn-primary inline', }; @endphp
class(['ui-empty-state', 'ui-empty-state--'.$variant, 'ui-empty-state--'.$size]) }}> @if ($title) {{ $title }} @endif @if ($text)

{{ $text }}

@endif @if ($actionUrl && $actionLabel) @if ($actionIcon) @endif {{ $actionLabel }} @elseif ($actionLabel) @endif {{ $slot }}