Skip to content

Commit

Permalink
Merge pull request #72 from FilosoDev/issue54
Browse files Browse the repository at this point in the history
Fix #54
  • Loading branch information
masakik authored Aug 30, 2020
2 parents ddbad6a + edad8f9 commit 29e720a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/Pessoa.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,11 @@ public function replicado(){
return [
'nompes' => $dump['nompes'],
'numcpf' => $dump['numcpf'],
'sexpes' => $dump['sexpes'],
'telefones' => PessoaReplicado::telefones($this->codpes),
'emails' => PessoaReplicado::emails($this->codpes),
'vinculos' => PessoaReplicado::vinculos($this->codpes),
'endereco' => $endereco,
];
}
}
}
13 changes: 13 additions & 0 deletions resources/views/pessoas/partials/show/replicado.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,19 @@
<li class='list-group-item py-1'>{{ $pessoa->codpes }}</li>
</ul>
<br />
<div class="font-weight-bold"> Gênero</div>
<ul class="list-group">
<li class='list-group-item py-1'>
@if ($pessoa->replicado()['sexpes'] === "M")
Masculino
@elseif ($pessoa->replicado()['sexpes'] === "F")
Feminino
@else
Não informado
@endif
</li>
</ul>
<br />
<div class="font-weight-bold"> Documentos</div>
<ul class="list-group">
<li class='list-group-item py-1'>CPF: {{ $pessoa->replicado()['numcpf']}}</li>
Expand Down

0 comments on commit 29e720a

Please sign in to comment.