Export Excel Invoice & Imporve Invoice

This commit is contained in:
ivan-sim
2025-12-18 09:53:01 +07:00
parent 9976e8e438
commit e178682fcf
13 changed files with 622 additions and 80 deletions

View File

@@ -0,0 +1,14 @@
<?php
namespace App\Services;
use App\Exports\ReportExport;
use Maatwebsite\Excel\Facades\Excel;
class ExportExcelService
{
public function exportReport(array $filters = [], string $filename = 'report.xlsx')
{
return Excel::download(new ReportExport($filters), $filename);
}
}