diff --git a/app/Http/Controllers/ClientPortal/QuoteController.php b/app/Http/Controllers/ClientPortal/QuoteController.php index cf73519e12e6..a7d6354eeecc 100644 --- a/app/Http/Controllers/ClientPortal/QuoteController.php +++ b/app/Http/Controllers/ClientPortal/QuoteController.php @@ -76,9 +76,9 @@ class QuoteController extends Controller } if ($quotes->count() == 1) { - return response()->streamDownload(function () use ($invoices) { - echo file_get_contents($invoices->first()->pdf_file_path()); - }, basename($invoices->first()->pdf_file_path()), ['Cache-Control:' => 'no-cache']); + return response()->streamDownload(function () use ($quotes) { + echo file_get_contents($quotes->first()->pdf_file_path()); + }, basename($quotes->first()->pdf_file_path()), ['Cache-Control:' => 'no-cache']); //return response()->download(TempFile::path($invoices->first()->pdf_file_path()), basename($quotes->first()->pdf_file_path())); }