File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 55 $getOffset = $getOffset ();
66 $getPopOverMaxWidth = $getPopOverMaxWidth ();
77 $getContent = $getContent ();
8+ $getIcon = $getIcon ($getState );
89@endphp
910<x-dynamic-component
1011 :component =" $getFieldWrapperView()"
@@ -34,7 +35,14 @@ class="text-sm relative w-full fi-popover-trigger cursor-pointer flex items-cent
3435 @click =" $refs.panel.toggle"
3536 @endif
3637 >
37- {{ $getState } }
38+ {{ $getState ?? ' ' } }
39+
40+ @if ($getIcon )
41+ <x-filament::icon
42+ :icon =" $getIcon"
43+ class =" h-4 w-4 text-gray-500 dark:text-gray-400"
44+ />
45+ @endif
3846 </div >
3947
4048 <div class =" z-50 fi-popover-content w-[{{ $getPopOverMaxWidth } } px] ring-1 ring-gray-950/5 dark:ring-white/10 rounded-lg shadow-lg bg-white dark:bg-gray-800"
Original file line number Diff line number Diff line change 33namespace LaraZeus \Popover \Form ;
44
55use Filament \Forms \Components \Placeholder ;
6+ use Filament \Support \Concerns \HasIcon ;
67use LaraZeus \Popover \Concerns \HasPopover ;
78
89class PopoverForm extends Placeholder
910{
1011 use HasPopover;
12+ use HasIcon;
1113
1214 protected string $ view = 'zeus-popover::popover-form ' ;
1315}
You can’t perform that action at this time.
0 commit comments