Add machine report excel export

This commit is contained in:
2026-06-15 17:13:21 +03:30
parent c9e779d726
commit 80c4eeaefb
6 changed files with 8 additions and 8 deletions

View File

@@ -85,7 +85,7 @@ class ReportMachineController extends Controller
public function countryMachineTypesActivityExcel(Request $request, ReportMachineService $reportMachineService): BinaryFileResponse
{
$data = $reportMachineService->countryMachineTypesActivity($request);
$name = 'گزارش نوع ماشین آلات'.verta()->now()->format('Y-m-d H-i').'.xlsx';
$name = 'گزارش انوع ماشین'.verta()->now()->format('Y-m-d H-i').'.xlsx';
return Excel::download(new machineTypeReport($data), $name);
}
@@ -125,7 +125,7 @@ class ReportMachineController extends Controller
public function provinceMachineTypesActivityExcel(Request $request, ReportMachineService $reportMachineService): BinaryFileResponse
{
$data = $reportMachineService->provinceMachineTypesActivity($request);
$name = 'گزارش نوع ماشین آلات'.verta()->now()->format('Y-m-d H-i').'.xlsx';
$name = 'گزارش انوع ماشین'.verta()->now()->format('Y-m-d H-i').'.xlsx';
return Excel::download(new machineTypeReport($data), $name);
}