@php // preserve backwards compatibility with Widgets in Backpack 4.0 $widget['wrapper']['class'] = $widget['wrapper']['class'] ?? $widget['wrapperClass'] ?? 'col-sm-6 col-md-4'; @endphp @includeWhen(!empty($widget['wrapper']), backpack_view('widgets.inc.wrapper_start'))
@if (isset($widget['content'])) @if (isset($widget['content']['header']))
{!! $widget['content']['header'] !!}
@endif
{!! $widget['content']['body'] !!}
@endif
@includeWhen(!empty($widget['wrapper']), backpack_view('widgets.inc.wrapper_end'))