sent_client_date); } /** * Invoice has some tasks * * @param \App\Models\Invoice $model * @return boolean */ protected static function invoiceHasTasks(Invoice $model): bool { return (bool)\count($model->tasks); } }