Commit 15be784c authored by Marcos Albano's avatar Marcos Albano 💬

Tela cpfValidoSemTitulo funcionando

parent f3c8a294
......@@ -42,9 +42,10 @@ class TituloController extends Controller
foreach ($lotesTramites as $lotTramite) {
$tramites = Tramite::where('id', $lotTramite->tramite_id)->get();
foreach ($tramites as $tramite) {
if ($tramite) {
if ($tramite->id === 67) {
$titulos = Titulo::where('lote_id', $pessoaLote->lote_id)->where('flag_cancelamento', '<>', 'S')->get();
foreach ($titulos as $titulo) {
// $titulos = Titulo::where('lote_id', $pessoaLote->lote_id)->where('flag_cancelamento', '<>', 'S')->get();
// foreach ($titulos as $titulo) {
$agendamentos = Agendamento::get()->last();
if ($agendamentos) {
return view(
......@@ -53,14 +54,17 @@ class TituloController extends Controller
'pessoasLote' => $pessoasLote,
'lotes' => $lotes,
'documentoPessoa' => $documentoPessoa,
'titulos' => $titulo,
// 'titulos' => $titulo,
'lotesTramites' => $lotesTramites,
'tramite' => $tramite,
'agendamentos' => $agendamentos,
]
);
}
}else{
return view('cpfValidoSemTitulo')->with(['cpf' => $this->request->cpf, 'nome' => $tramite->nome]);
}
// }
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment