@props(['text', 'textOnly', 'icon' => 'sad']) @php $textOnly = $textOnly ?? false; if ($icon == 'happy') { $icon = ':)'; } if ($icon == 'sad') { $icon = ':('; } if ($icon == 'custom') { $icon = $attributes['iconCustom']; } if (!isset($text) || empty($text)) { $text = __('Nothing to show'); } @endphp @if ($textOnly) merge(['class' => 'empty-content text-only select-none cursor-default']) }}>{{ $text }} @else
merge(['class' => 'empty-content-wrapper flex flex-col space-y-4 items-center justify-center py-8 text-gray-400 select-none cursor-default']) }}> {{ $icon }} {{ $text }}
@endif