File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed
src/resources/views/ui/widgets Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change 1+ @php
2+ // defaults; backwards compatibility with Backpack 4.0 widgets
3+ $widget [' wrapper' ][' class' ] = $widget [' wrapper' ][' class' ] ?? $widget [' wrapperClass' ] ?? ' col-sm-6 col-lg-3' ;
4+ @endphp
5+
6+ @includeWhen (! empty ($widget [' wrapper' ]), backpack_view (' widgets.inc.wrapper_start' ) )
7+
8+ <div class =" {{ $widget [' class' ] ?? ' card' } }" @foreach ($widget [' attributes' ] ?? [] as $key => $value ) {{ $key } } =" {{ $value } }" @endforeach >
9+ @livewire ($widget [' content' ], $widget [' parameters' ] ?? [] )
10+ </div >
11+
12+ @includeWhen (! empty ($widget [' wrapper' ]), backpack_view (' widgets.inc.wrapper_end' ) )
13+
14+ @if ($widget [' livewireAssets' ] ?? false )
15+ @pushOnce (' after_styles' )
16+ @livewireStyles
17+ @endPushOnce
18+
19+ @pushOnce (' after_scripts' )
20+ @livewireScripts
21+ @endpushOnce
22+ @endif
23+
You can’t perform that action at this time.
0 commit comments