update emel dari file
This commit is contained in:
@@ -109,6 +109,15 @@ class ParticipantImportService
|
|||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// Kemaskini emel, telefon dan agensi jika peserta sedia ada dan CSV ada data
|
||||||
|
if (! $participant->wasRecentlyCreated) {
|
||||||
|
$updates = [];
|
||||||
|
if (! empty($data['email'])) $updates['email'] = $data['email'];
|
||||||
|
if (! empty($data['phone'])) $updates['phone'] = $data['phone'];
|
||||||
|
if (! empty($data['agency'])) $updates['agency'] = $data['agency'];
|
||||||
|
if ($updates) $participant->update($updates);
|
||||||
|
}
|
||||||
|
|
||||||
$pp = $program->programParticipants()
|
$pp = $program->programParticipants()
|
||||||
->where('participant_id', $participant->id)
|
->where('participant_id', $participant->id)
|
||||||
->first();
|
->first();
|
||||||
|
|||||||
Reference in New Issue
Block a user