@extends('core::layouts.backend') @section('title', 'Widgets') @push('css_stack') {!! module_style('widget', 'backend/css/index.css') !!} @endpush @section('layout')

Available Widgets

To activate a widget drag it to a sidebar. To deactivate a widget and delete its settings, drag it back.
@foreach(Widget::getWidgets() as $widget)
{{ $widget->getConfig()['name'] }}
{!! $widget->formSetting() !!}
{{ $widget->getConfig()['description'] }}
@endforeach
@foreach(WidgetGroup::getGroups() as $group)

{{ $group->getName() }}

{{ $group->getDescription() }}
@foreach($group->getWidgets() as $item) @if (class_exists($item->widget_id, false)) @php $widget = new $item->widget_id; @endphp
{{ $widget->getConfig()['name'] }}
{!! $widget->formSetting($item->group, $item->position) !!}
{{ $widget->getConfig()['description'] }}
@endif @endforeach
@endforeach
@endsection @push('js_stack') {!! module_script('widget', 'backend/js/index.js') !!} @endpush