$this->id, 'version_number' => $this->version_number, 'version_notes' => $this->version_notes, 'is_current' => (bool) $this->is_current, 'original_filename' => $this->original_filename, 'mime_type' => $this->mime_type, 'file_extension' => $this->getFileExtension(), 'file_size' => $this->file_size, 'file_size_human' => $this->getFileSizeHuman(), 'file_hash' => $this->file_hash, 'uploaded_by' => $this->uploadedBy?->name, 'uploaded_at' => $this->uploaded_at?->toIso8601String(), 'download_url' => route('documents.public.download-version', [ 'uuid' => $this->document->public_uuid, 'version' => $this->id, ]), ]; } }