@props([ 'size' => 'small', 'show_dot' => true, 'showDot' => true, 'animate_dot' => false, 'animateDot' => false, 'invert' => false, 'color' => 'blue', 'sizing' => [ 'small' => [ 'bell' => 6, 'dot' => 2 ], 'big' => [ 'bell' => 10, 'dot' => 4 ], ], 'coloring' => [ 'bg' => [ 'red' => 'bg-red-500', 'yellow' => 'bg-yellow-500', 'green' => 'bg-emerald-500', 'blue' => 'bg-blue-500', 'orange' => 'bg-orange-500', 'purple' => 'bg-purple-500', 'cyan' => 'bg-cyan-500', 'pink' => 'bg-pink-500', 'black' => 'bg-black', ], 'ring' => [ 'red' => 'ring-red-500', 'yellow' => 'ring-yellow-500', 'green' => 'ring-emerald-500', 'blue' => 'ring-blue-500', 'orange' => 'ring-orange-500', 'purple' => 'ring-purple-500', 'cyan' => 'ring-cyan-500', 'pink' => 'ring-pink-500', 'black' => 'ring-black', ] ] ]) @php // reset variables for Laravel 8 support $show_dot = filter_var($show_dot, FILTER_VALIDATE_BOOLEAN); $showDot = filter_var($showDot, FILTER_VALIDATE_BOOLEAN); $animate_dot = filter_var($animate_dot, FILTER_VALIDATE_BOOLEAN); $animateDot = filter_var($animateDot, FILTER_VALIDATE_BOOLEAN); $invert = filter_var($invert, FILTER_VALIDATE_BOOLEAN); if( !$showDot ) $show_dot = $showDot; if( $animateDot ) $animate_dot = $animateDot; if(! in_array($size, ['small','big'])) $size = 'small'; if(! in_array($color, ['blue','red','yellow','green','blue','orange','purple','cyan','pink', 'black'])) $color = 'blue'; @endphp
merge(['class' => "bw-bell relative inline-block"]) }}> @if($show_dot)
@endif