Commit 242586de authored by Marcos Albano's avatar Marcos Albano 💬

MOdificacao do show detalhes

parent c93296a3
......@@ -38,7 +38,6 @@ class TituloController extends Controller
$lotes = Lote::where('id', $pessoaLote->lote_id)
->with('lotesTramites', 'municipio', 'situacaoJuridica', 'pessoaLote', 'formasObtencao', 'processos')
->get();
dd($lotes);
foreach ($lotes as $lote) {
$lotesTramites = LoteTramite::where('lote_id', $lote->id)->get();
foreach ($lotesTramites as $loteTramite) {
......@@ -49,7 +48,6 @@ class TituloController extends Controller
$titulos = Titulo::where('lote_id', $lote->id)->where('flag_cancelamento', '<>', 'S')->get();
foreach ($titulos as $titulo) {
$agendamentos = Agendamento::get()->last();
//dd($agendamentos);
if($agendamentos) {
// 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}" .
......
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class EnderecoPessoa extends Model
{
protected $table = 'regularizacaofundiaria.endereco_pessoa';
public function pessoa()
{
return $this->belongsTo(Pessoa::class, 'id', 'pessoa_id');
}
public function municipio()
{
return $this->belongsTo(Municipio::class, 'id', 'municipio_id');
}
}
......@@ -23,10 +23,11 @@
<div class="header_listagem small-box bg-gradient-success">
@foreach ($documentosPessoa as $documentoPessoa)
@foreach ($lotes as $lote)
<h1>DADOS DO DETENTOR</h1>
<h1>DADOS DO ATENDIMENTO</h1>
<h2>{{ $lote->proprietario }}</h1>
<h3>CPF:{{ $documentoPessoa->cpf }} </h1>
<h3>CPF: {{ $documentoPessoa->cpf }} </h1>
<h3>NÚMERO DO ATENDIMENTO: {{ $agendamentos->id }} </h1>
<h3>DATA DO AGENDAMENTO: {{ $agendamentos->data }} </h1>
@endforeach
@endforeach
</div>
......@@ -43,10 +44,10 @@
<th>MUNICÍPIO</th>
<th>PROPRIETÁRIO</th>
<th>CPF</th>
<th>TRAMITE</th>
<th>STATUS</th>
<th>DATA</th>
<th>ID</th>
{{-- <th width="100">AÇÕES</th> --}}
<th>NÚMERO DO ATENDIMENTO</th>
<th width="100">AÇÕES</th>
</tr>
</thead>
<tbody>
......@@ -61,6 +62,9 @@
<td>{{ $tramite->nome }}</td>
<td>{{ $agendamentos->data }}</td>
<td>{{ $agendamentos->id }}</td>
<td>
<a href="{{ route('titulos.show', $lote->id) }}" class="badge bg-green">DETALHES</a>
</td>
</tr>
@endif
@endforeach
......@@ -78,8 +82,7 @@
<strong>Date : </strong>
<input class="date form-control" type="text" id="datepicker" name="data">
<button type="submit" class="btn btn-success">AGENDAR</button>
<a href="{{ route('titulos.show', $ ->id) }}"
class="badge bg-green">DADOS DO ATENDIMENTO</a>
</div>
</div>
</form>
......
......@@ -9,18 +9,17 @@
<!-- left column -->
<div class="col-md-3">
</div>
<div class="col-md-6 tela_cpf_invalido">
<img class="logoidace" src="{{ asset('img/logo-idace.png') }}">
<h1 class="titulo">Dados do atendimento</h1>
<h4 class="titulo2">Detentor: <strong> {{ $lotes->proprietario }}</strong></h4>
<h4 class="titulo2">DETENTOR: <strong> {{ $lotes->proprietario }}</strong></h4>
<h4 class="titulo2">IMÓVEL: <strong>{{ $lotes->nome }}</strong></h4>
<h4 class="titulo2">CPF: <strong>{{ $lotes->cpf }}</strong></h4>
<div class="row">
<div class="col-sm-6" style="text-align:center;font-size:23px;">
<h4 class="titulo2">Data: <strong>02/02/2020</strong></h4>
{{-- <h4 class="titulo2">Data: <strong>02/02/2020</strong></h4> --}}
</div>
<div class="col-sm-6" style="text-align:center;font-size:23px;">
......
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