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

Tela cpfValidoSemTitulo funcionando

parent f3c8a294
......@@ -42,31 +42,35 @@ class TituloController extends Controller
foreach ($lotesTramites as $lotTramite) {
$tramites = Tramite::where('id', $lotTramite->tramite_id)->get();
foreach ($tramites as $tramite) {
if ($tramite->id === 67) {
$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(
'admin.pages.titulos.index',
[
'pessoasLote' => $pessoasLote,
'lotes' => $lotes,
'documentoPessoa' => $documentoPessoa,
'titulos' => $titulo,
'lotesTramites' => $lotesTramites,
'tramite' => $tramite,
'agendamentos' => $agendamentos,
]
);
if ($tramite) {
if ($tramite->id === 67) {
// $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(
'admin.pages.titulos.index',
[
'pessoasLote' => $pessoasLote,
'lotes' => $lotes,
'documentoPessoa' => $documentoPessoa,
// 'titulos' => $titulo,
'lotesTramites' => $lotesTramites,
'tramite' => $tramite,
'agendamentos' => $agendamentos,
]
);
}
}else{
return view('cpfValidoSemTitulo')->with(['cpf' => $this->request->cpf, 'nome' => $tramite->nome]);
}
}
// }
}
}
}
}
}
}
} else {
return view('cpfInvalido')->with(['cpf' => $this->request->cpf]);
......
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