@props([ 'block', 'subscriberCount' => 0, ]) @php /** @var \App\Models\PageBlock $block */ $c = $block->content ?? []; $min = (int) data_get($c, 'min_count', 0); $template = (string) data_get($c, 'template', ''); $style = (string) data_get($c, 'style', 'pill'); $showAnim = filter_var(data_get($c, 'show_animation', true), FILTER_VALIDATE_BOOLEAN); @endphp @if ($subscriberCount >= $min && str_contains($template, '{count}'))
$showAnim]) x-data="{ shown: false }" x-init="setTimeout(() => shown = true, 100)" :class="shown ? 'scale-100 opacity-100' : 'scale-95 opacity-0'"> {{ $text }}