@php // defaults; backwards compatibility with Backpack 4.0 widgets $widget['wrapper']['class'] = $widget['wrapper']['class'] ?? $widget['wrapperClass'] ?? 'col-sm-6 col-lg-3'; $accentColor = $widget['accentColor'] ?? 'info'; @endphp @includeWhen(!empty($widget['wrapper']), backpack_view('widgets.inc.wrapper_start'))
@if ($widget['ribbon'] ?? false)
@endif
@if (isset($widget['value']))
{!! $widget['value'] !!}
@endif @if (isset($widget['description']))
{!! $widget['description'] !!}
@endif @if (isset($widget['progress']))
{{ $widget['progress'] }}% Complete
@endif @if (isset($widget['hint']))
{!! $widget['hint'] !!}
@endif
@if (isset($widget['footer_link'])) @endif
@includeWhen(!empty($widget['wrapper']), backpack_view('widgets.inc.wrapper_end'))