user()?->hasRole(UserRole::Admin, UserRole::Rentals); } /** * @return array */ protected function getViewData(): array { return ['items' => WorkList::items()]; } }