public function attachmentsAsRows()
    {
        $rows = [];

        if ($this->hasAttachments()) {
            $rows = array_chunk($this->attachments()->values(), $this->numColumns);

            /** Map row content with useful front-end properties. */
            array_walk($rows, function(&$value, $key) {
                $value = [
                    'columns' => $value,
                    'isFirst' => $key === 0
                ];
            });
        }

        return $rows;
    }