$this->encodePrimaryKey($invitation->id), 'key' => $invitation->getName(), 'link' => $invitation->getLink(), 'sent_date' => $invitation->sent_date ?: '', 'viewed_date' => $invitation->sent_date ?: '', 'opened_date' => $invitation->opened_date ?: '', ]; } }