company()->get(); } foreach ($invoices as $invoice) { if (! $invoice->isPayable()) { $this->error_msg = ctrans('texts.one_or_more_invoices_paid'); return false; } } return true; } /** * @return string */ public function message() { return $this->error_msg; } }