filename(); $filepath = ReportStorage::customFilepath($this->study, $filename); if (ReportStorage::exists($this->study, $filename)) { return $filepath; } $title = 'View Report'; $html = Blade::render('staff.reports.viewer.html-report', ['report' => $this->report, 'title' => $title]); file_put_contents(ReportStorage::abspath($filepath), $html); return $filepath; } protected function getExtension(): string { return ExportFormat::Html->value; } }