-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathblank.blade.php
33 lines (27 loc) · 1.13 KB
/
blank.blade.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
@extends(backpack_view('layouts.top_left'))
@php
// Merge widgets that were fluently declared with widgets declared without the fluent syntax:
// - $data['widgets']['before_content']
// - $data['widgets']['after_content']
if (isset($widgets)) {
foreach ($widgets as $section => $widgetSection) {
foreach ($widgetSection as $key => $widget) {
\Backpack\CRUD\app\Library\Widget::add($widget)->section($section);
}
}
}
@endphp
@section('before_breadcrumbs_widgets')
@include(backpack_view('inc.widgets'), [ 'widgets' => app('widgets')->where('section', 'before_breadcrumbs')->toArray() ])
@endsection
@section('after_breadcrumbs_widgets')
@include(backpack_view('inc.widgets'), [ 'widgets' => app('widgets')->where('section', 'after_breadcrumbs')->toArray() ])
@endsection
@section('before_content_widgets')
@include(backpack_view('inc.widgets'), [ 'widgets' => app('widgets')->where('section', 'before_content')->toArray() ])
@endsection
@section('content')
@endsection
@section('after_content_widgets')
@include(backpack_view('inc.widgets'), [ 'widgets' => app('widgets')->where('section', 'after_content')->toArray() ])
@endsection