|
|
@@ -1372,23 +1372,10 @@ class Report extends Component
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
- Log::debug(print_r($obj, true));
|
|
|
$this->anag_firstname = @$obj->dettaglioPatenteBaseOutput->anagrafica->nome;
|
|
|
$this->anag_lastname = @$obj->dettaglioPatenteBaseOutput->anagrafica->cognome;
|
|
|
$this->anag_birth_date = @$obj->dettaglioPatenteBaseOutput->anagrafica->dataNascita;
|
|
|
-
|
|
|
$this->anag_residenza_address = @$obj->dettaglioPatenteBaseOutput->datiResidenza->indirizzoResidenza;
|
|
|
- $residenzaTown = LocationTown::where('title', $obj->dettaglioPatenteBaseOutput->datiResidenza->comuneResidenza)
|
|
|
- ->first();
|
|
|
-
|
|
|
- $birthTown = null;
|
|
|
- if (isset($obj->dettaglioPatenteBaseOutput->luogoNascita->luogoItaliano)) {
|
|
|
- $birthTown = LocationTown::where('title', $obj->dettaglioPatenteBaseOutput->luogoNascita->luogoItaliano->descrizioneComunale)
|
|
|
- ->first();
|
|
|
- }
|
|
|
-
|
|
|
- $this->anag_residenza_town_id = $residenzaTown ? $residenzaTown->id : null;
|
|
|
- $this->anag_birth_town_id = $birthTown ? $birthTown->id : null;
|
|
|
$this->anag_documento_scadenza_il = @$obj->dettaglioPatenteBaseOutput->datiPatente->dataScadenza;
|
|
|
$this->anag_documento_rilasciato_il = @$obj->dettaglioPatenteBaseOutput->datiPatente->dataEmissione;
|
|
|
} catch (\SoapFault $fault) {
|