@set('current_page', preg_replace([ '/^.*\//', '/\/.*/' ], [ '', '' ], Request::url()))
{{ env('APP_NAME') }} Dashboard
@if (Auth::guest())
- Login
@if(env('REGISTRATION', false))
- Register
@endif
@else
@foreach(App\Dashboard::$menu as $menu_item)
@if(array_key_exists('submenu', $menu_item))
@set('dropdown_id', preg_replace([ '/\ \ */', '/[^a-z\-]/' ], [ '-', '' ], strtolower($menu_item['title'])))
-
@else
-
@endif
@endforeach
-
{{ Auth::user()->name }}
@endif