$query->whereNeedsPayment()) ->selectRaw('sum(price) AS price') ->first(); $this->amount = number_format((int) $amount->price / 100, 2, ',', '.') . ' €'; $this->members = Member::whereHasPendingPayment()->count(); $this->totalMembers = Member::count(); } public function title(): string { return 'Ausstehende Mitgliedsbeiträge'; } public function render(): string { return <<<'HTML'