Skip to content

Commit 09da771

Browse files
authored
Add showNumColumn to Excel Report Generator
1 parent bcdc5e7 commit 09da771

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/ReportMedia/ExcelReport.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,14 @@ public function download($filename)
3535
$showHeader = $this->showHeader;
3636
$showMeta = $this->showMeta;
3737
$applyFlush = $this->applyFlush;
38+
$showNumColumn = $this->showNumColumn;
3839

3940
$sheet->setColumnFormat(['A:Z' => '@']);
4041

4142
if ($this->withoutManipulation) {
42-
$sheet->loadView('report-generator-view::without-manipulation-excel-template', compact('headers', 'columns', 'showTotalColumns', 'query', 'limit', 'orientation', 'showHeader', 'showMeta', 'applyFlush'));
43+
$sheet->loadView('report-generator-view::without-manipulation-excel-template', compact('headers', 'columns', 'showTotalColumns', 'query', 'limit', 'orientation', 'showHeader', 'showMeta', 'applyFlush', 'showNumColumn'));
4344
} else {
44-
$sheet->loadView('report-generator-view::general-excel-template', compact('headers', 'columns', 'editColumns', 'showTotalColumns', 'styles', 'query', 'limit', 'groupByArr', 'orientation', 'showHeader', 'showMeta', 'applyFlush'));
45+
$sheet->loadView('report-generator-view::general-excel-template', compact('headers', 'columns', 'editColumns', 'showTotalColumns', 'styles', 'query', 'limit', 'groupByArr', 'orientation', 'showHeader', 'showMeta', 'applyFlush', 'showNumColumn'));
4546
}
4647
});
4748
})->export($this->format);
@@ -143,4 +144,4 @@ private function formatRow($result)
143144

144145
return $rows;
145146
}
146-
}
147+
}

0 commit comments

Comments
 (0)