| Conditions | 1 |
| Paths | 1 |
| Total Lines | 19 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | public function extendWith(Menu $menu) |
||
| 18 | { |
||
| 19 | $menu->group(trans('core::sidebar.content'), function (Group $group) { |
||
| 20 | $group->item(trans('block::blocks.title.blocks'), function (Item $item) { |
||
| 21 | $item->authorize( |
||
| 22 | $this->auth->hasAccess('block.blocks.index') |
||
| 23 | ); |
||
| 24 | $item->icon('fa fa-cube'); |
||
| 25 | $item->weight(config('asgard.block.config.sidebar-position', 15)); |
||
| 26 | $item->append('admin.block.block.create'); |
||
| 27 | $item->route('admin.block.block.index'); |
||
| 28 | $item->authorize( |
||
| 29 | $this->auth->hasAccess('block.blocks.index') |
||
| 30 | ); |
||
| 31 | }); |
||
| 32 | }); |
||
| 33 | |||
| 34 | return $menu; |
||
| 35 | } |
||
| 36 | } |
||
| 37 |