src/Http/Handlers/StaffPane.php
public function compose($name = null, $options = array())
    {
        $menu                 = app('antares.widget')->make('menu.acl.staff.pane');
        $acl                  = app('antares.acl')->make('antares/acl');
        $canAdministratorList = $acl->can('admin-list');

        $canRoleList = $acl->can('roles-list');
        if (!$canAdministratorList and ! $canRoleList) {
            return;
        }
        if ($canRoleList) {
            $menu->add('groups')
                    ->link(handles('antares::acl/index/roles'))
                    ->title(trans('Groups'))
                    ->icon('zmdi-accounts-list-alt')
                    ->active(!is_null(from_route('roles')) or request()->segment(4) === 'roles' or request()->segment(3) === 'roles');
        }
        if ($canAdministratorList) {
            $menu->add('users')
                    ->link(handles('antares::acl/index/users'))
                    ->title(trans('Users'))
                    ->icon('zmdi-accounts-list')
                    ->active(!is_null(from_route('user')) or request()->segment(4) === 'users' or request()->segment(3) === 'users');
        }
        $pane = app('antares.widget')->make('pane.left');
        $pane->add('control')->content(view('antares/acl::partial._staff_pane'));
    }
public function compose($name = null, $options = array())
    {
        $menu                 = app('antares.widget')->make('menu.acl.staff.pane');
        $acl                  = app('antares.acl')->make('antares/acl');
        $canAdministratorList = $acl->can('admin-list');

        $canRoleList = $acl->can('roles-list');
        if (!$canAdministratorList and ! $canRoleList) {
            return;
        }
        if ($canRoleList) {
            $menu->add('groups')
                    ->link(handles('antares::acl/index/roles'))
                    ->title(trans('Groups'))
                    ->icon('zmdi-accounts-list-alt')
                    ->active(!is_null(from_route('roles')) or request()->segment(4) === 'roles' or request()->segment(3) === 'roles');
        }
        if ($canAdministratorList) {
            $menu->add('users')
                    ->link(handles('antares::acl/index/users'))
                    ->title(trans('Users'))
                    ->icon('zmdi-accounts-list')
                    ->active(!is_null(from_route('user')) or request()->segment(4) === 'users' or request()->segment(3) === 'users');
        }
        $pane = app('antares.widget')->make('pane.left');
        $pane->add('control')->content(view('antares/acl::partial._staff_pane'));
    }
Handle pane for dashboard page.

@return void