Commit f72899c2 authored by Marcos Albano's avatar Marcos Albano 💬

Centralizacao dos campos

parent 36c5d3c5
...@@ -65,43 +65,40 @@ class TituloController extends Controller ...@@ -65,43 +65,40 @@ class TituloController extends Controller
} }
//------------------FUNCIONANDO---------------------------------- //------------------FUNCIONANDO----------------------------------
// $documentosPessoa = DocumentoPessoa::where('cpf', $this->request->cpf)->with('pessoa')->get(); // $documentosPessoa = DocumentoPessoa::where('cpf', $this->request->cpf)->with('pessoa')->get();
// foreach ($documentosPessoa as $documentoPessoa) { // foreach ($documentosPessoa as $documentoPessoa) {
// //echo "Documento/Pessoa: " . "{$documentoPessoa}<hr>"; // $pessoasLotes = PessoaLote::where('pessoa_id', $documentoPessoa->pessoa_id)->with('lote')->get();
// $pessoasLote = PessoaLote::where('pessoa_id', $documentoPessoa->pessoa_id)->with('lote')->get(); // foreach ($pessoasLotes as $pessoaLote) {
// foreach ($pessoasLote as $pessoaLote) { // $lotes = Lote::where('id', $pessoaLote->lote_id)->with('lotesTramites', 'municipio')->get();
// //echo "Pessoa/Pessoa_Lote: " . "{$pessoaLote}<hr>"; // foreach ($lotes as $lote) {
// $lotes = Lote::where('id', $pessoaLote->lote_id)->with('lotesTramites', 'municipio')->get(); // $lotesTramites = LoteTramite::where('lote_id', $lote->id)->get();
// foreach ($lotes as $lote) { // foreach ($lotesTramites as $loteTramite) {
// $lotesTramites = LoteTramite::where('lote_id', $lote->id)->with('tramites')->get(); // $tramites = Tramite::where('id', $loteTramite->tramite_id)->with('setor')->where('documento_tipo', 'TITULO DO IMOVEL')
// // echo "LOte/Tramite: " . "{$lotesTramites}<hr>"; // ->where('id', 67)
// foreach ($lotesTramites as $loteTramite) { // ->get();
// $tramites = Tramite::where('id', $loteTramite->tramite_id)->where('documento_tipo', 'TITULO DO IMOVEL') // foreach ($tramites as $tramite) {
// ->where('id', 67) // $titulos = Titulo::where('lote_id', $lote->id)->where('flag_cancelamento', '<>', 'S')->get();
// ->get(); // foreach ($titulos as $titulo) {
// foreach ($tramites as $tramite) { // // echo "<b>Município: {$lote->municipio->nome}" . " | Título: {$titulo->numero_titulo}" . " | Proprietário: {$lote->proprietario}" .
// $titulos = Titulo::where('lote_id', $lote->id)->where('flag_cancelamento', '<>', 'S')->get(); // // " | CPF: {$documentoPessoa->cpf}" . " | Tramite Nome: {$tramite->nome}" . " | Localizacao: {$loteTramite->localizacao_nova}" . " | Lote: {$lote->numero}" . " | Cancelado?: {$titulo->flag_cancelamento} </b><hr>";
// echo "Titulo: " . "{$titulos}<hr>"; // //echo "Titulo: " . "{$titulo}<hr>";
// foreach ($titulos as $titulo) { // }
// echo "<b>Município: {$lote->municipio->nome}" . " | Título: {$titulo->numero_titulo}" . " | Proprietário: {$lote->proprietario}" .
// " | CPF: {$documentoPessoa->cpf}" . " | Tramite Nome: {$tramite->nome}" . " | Localizacao: {$loteTramite->localizacao_nova}" . " | Lote: {$lote->numero}" . " | Cancelado?: {$titulo->flag_cancelamento} </b><hr>";
// //echo "Tramite: " . "{$tramites}<hr>";
// return view('admin.pages.titulos.index',
// [
// 'titulos' => $titulos,
// 'lotes' => $lotes,
// 'documentosPessoa' => $documentosPessoa,
// 'lotesTramites' => $lotesTramites,
// 'tramites' => $tramites,
// ]);
// } // }
// } // }
// } // }
// } // }
// return view(
// 'admin.pages.titulos.index',
// [
// 'titulos' => $titulos,
// 'lotes' => $lotes,
// 'documentosPessoa' => $documentosPessoa,
// 'loteTramite' => $loteTramite,
// 'tramite' => $tramite,
// 'pessoasLotes' => $pessoasLotes,
// ]
// );
// } // }
// } // }
/** /**
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
<div class="card-body"> <div class="card-body">
<table class="table table-striped" > <table class="table table-striped" >
<thead> <thead>
<tr > <tr align="center">
<th>MUNICÍPIO</th> <th>MUNICÍPIO</th>
<th>PROPRIETÁRIO</th> <th>PROPRIETÁRIO</th>
<th>NÚMERO TÍTULO</th> <th>NÚMERO TÍTULO</th>
......
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