Restore Export PDF button to the UI
This commit is contained in:
@@ -303,13 +303,6 @@ class DailySalePaymentReportModuleController extends Controller
|
||||
$data = $this->getReportData($date);
|
||||
|
||||
$filename = 'Daily_Sale_Payment_Report_' . $date;
|
||||
|
||||
if ($type === 'pdf') {
|
||||
// Use DOMPDF directly for PDF to preserve advanced CSS and layout
|
||||
$pdf = app('dompdf.wrapper')->loadView('dailysalepaymentreportmodule::export', $data);
|
||||
$pdf->setPaper('a4', 'landscape');
|
||||
return $pdf->download($filename . '.pdf');
|
||||
}
|
||||
|
||||
// For Excel and CSV, use Maatwebsite Excel
|
||||
$export = new \Modules\DailySalePaymentReportModule\Exports\DailySalePaymentReportExport($data);
|
||||
|
||||
Reference in New Issue
Block a user