master
cody 5 days ago
parent 5681c2db9a
commit 8b5f3f027c

@ -402,7 +402,6 @@ class CommonExport implements FromCollection, WithStyles, WithColumnWidths, With
$moreFileds = array_column($this->data[0]['data'], 'field'); $moreFileds = array_column($this->data[0]['data'], 'field');
} }
} }
dd($moreHeader,$moreFileds);
$newList[] = $header; $newList[] = $header;
foreach ($this->data as $info) { foreach ($this->data as $info) {
@ -423,6 +422,7 @@ class CommonExport implements FromCollection, WithStyles, WithColumnWidths, With
} }
$t2 = []; $t2 = [];
if (empty($clear)) { if (empty($clear)) {
dd($info['data']);
if (isset($info['data']) && $info['data'] && !empty($moreFileds)) { if (isset($info['data']) && $info['data'] && !empty($moreFileds)) {
$dataCollect = collect($info['data']); $dataCollect = collect($info['data']);
foreach ($moreFileds as $moreFiled) { foreach ($moreFileds as $moreFiled) {

Loading…
Cancel
Save