master
cody 5 days ago
parent 45c2e5430a
commit 64723bac4d

@ -426,7 +426,6 @@ class CommonExport implements FromCollection, WithStyles, WithColumnWidths, With
$dataCollect = collect($info['data']); $dataCollect = collect($info['data']);
foreach ($moreFileds as $moreFiled) { foreach ($moreFileds as $moreFiled) {
$value = ($dataCollect->where('field', $moreFiled)->first()['value']) ?? ''; $value = ($dataCollect->where('field', $moreFiled)->first()['value']) ?? '';
dd($value);
if (str_contains($moreFiled, 'idcard')) { if (str_contains($moreFiled, 'idcard')) {
$t2[$moreFiled] = ' ' . $value; $t2[$moreFiled] = ' ' . $value;
} else { } else {
@ -436,6 +435,7 @@ class CommonExport implements FromCollection, WithStyles, WithColumnWidths, With
} }
} }
$newList[] = array_values($temp + $t2); $newList[] = array_values($temp + $t2);
dd($newList);
} }
} }

Loading…
Cancel
Save