@php $iconExists = false; if($getState()){ try { app(\BladeUI\Icons\Factory::class)->svg($getState()); $iconExists = true; }catch (\Exception $e){} } @endphp @if($iconExists)
@php $checkIconExists = \TomatoPHP\FilamentIcons\Models\Icon::where('name', $getState())->first() @endphp @if($checkIconExists) @endif
@endif