make($this->view(), get_object_vars($this)) ->render(); } public function hasContent(string $content): bool { return str_contains($this->renderBody(), $content); } public function filename(): string { return $this->basename().'.tex'; } public function compiledFilename(): string { return $this->basename().'.pdf'; } }