/** * @inheritdoc */ public function run() { // Only visible for admins if (!$this->space->isAdmin()) { return; } $applicants = $this->space->getApplicants()->limit($this->maxApplicants)->all(); // No applicants if (count($applicants) === 0) { return; } return $this->render('pendingApprovals', ['applicants' => $applicants, 'space' => $this->space]); }