master
cody 5 days ago
parent 8b5f3f027c
commit 45c2e5430a

@ -422,11 +422,11 @@ class CommonExport implements FromCollection, WithStyles, WithColumnWidths, With
}
$t2 = [];
if (empty($clear)) {
dd($info['data']);
if (isset($info['data']) && $info['data'] && !empty($moreFileds)) {
$dataCollect = collect($info['data']);
foreach ($moreFileds as $moreFiled) {
$value = ($dataCollect->where('field', $moreFiled)->first()['value']) ?? '';
dd($value);
if (str_contains($moreFiled, 'idcard')) {
$t2[$moreFiled] = ' ' . $value;
} else {

Loading…
Cancel
Save