company()->get(); } foreach ($invoices as $invoice) { if (! $invoice->isPayable()) { $this->error_msg = 'One or more of these invoices have been paid'; return false; } } return true; } /** * @return string */ public function message() { return $this->error_msg; } }