diff --git a/src/resources/views/ui/widgets/livewire.blade.php b/src/resources/views/ui/widgets/livewire.blade.php new file mode 100644 index 0000000000..d00b70d4b1 --- /dev/null +++ b/src/resources/views/ui/widgets/livewire.blade.php @@ -0,0 +1,23 @@ +@php + // defaults; backwards compatibility with Backpack 4.0 widgets + $widget['wrapper']['class'] = $widget['wrapper']['class'] ?? $widget['wrapperClass'] ?? 'col-sm-6 col-lg-3'; +@endphp + +@includeWhen(!empty($widget['wrapper']), backpack_view('widgets.inc.wrapper_start')) + +
$value) {{ $key }}="{{ $value }}" @endforeach> + @livewire($widget['content'], $widget['parameters'] ?? []) +
+ +@includeWhen(!empty($widget['wrapper']), backpack_view('widgets.inc.wrapper_end')) + +@if($widget['livewireAssets'] ?? false) + @pushOnce('after_styles') + @livewireStyles + @endPushOnce + + @pushOnce('after_scripts') + @livewireScripts + @endpushOnce +@endif +