Conditions | 2 |
Paths | 2 |
Total Lines | 18 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 5 | ||
Bugs | 0 | Features | 0 |
1 | <?php namespace Modules\Translation\Sidebar; |
||
30 | public function extendWith(Menu $menu) |
||
31 | { |
||
32 | if (false === config('app.translations-gui')) { |
||
33 | return $menu; |
||
34 | } |
||
35 | $menu->group(trans('core::sidebar.content'), function (Group $group) { |
||
36 | $group->item(trans('translation::translations.title.translations'), function (Item $item) { |
||
37 | $item->icon('fa fa-globe'); |
||
38 | $item->weight(10); |
||
39 | $item->route('admin.translation.translation.index'); |
||
40 | $item->authorize( |
||
41 | $this->auth->hasAccess('translation.translations.index') |
||
42 | ); |
||
43 | }); |
||
44 | }); |
||
45 | |||
46 | return $menu; |
||
47 | } |
||
48 | } |
||
49 |