@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