public function dueDateLabel() { if ($this->entity->isType(INVOICE_TYPE_STANDARD)) { return trans('texts.due_date'); } else { return trans('texts.valid_until'); } }