|
|
|
@ -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) {
|
|
|
|
|