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

MOdificacao do show detalhes

parent c93296a3
...@@ -38,7 +38,6 @@ class TituloController extends Controller ...@@ -38,7 +38,6 @@ class TituloController extends Controller
$lotes = Lote::where('id', $pessoaLote->lote_id) $lotes = Lote::where('id', $pessoaLote->lote_id)
->with('lotesTramites', 'municipio', 'situacaoJuridica', 'pessoaLote', 'formasObtencao', 'processos') ->with('lotesTramites', 'municipio', 'situacaoJuridica', 'pessoaLote', 'formasObtencao', 'processos')
->get(); ->get();
dd($lotes);
foreach ($lotes as $lote) { foreach ($lotes as $lote) {
$lotesTramites = LoteTramite::where('lote_id', $lote->id)->get(); $lotesTramites = LoteTramite::where('lote_id', $lote->id)->get();
foreach ($lotesTramites as $loteTramite) { foreach ($lotesTramites as $loteTramite) {
...@@ -49,7 +48,6 @@ class TituloController extends Controller ...@@ -49,7 +48,6 @@ class TituloController extends Controller
$titulos = Titulo::where('lote_id', $lote->id)->where('flag_cancelamento', '<>', 'S')->get(); $titulos = Titulo::where('lote_id', $lote->id)->where('flag_cancelamento', '<>', 'S')->get();
foreach ($titulos as $titulo) { foreach ($titulos as $titulo) {
$agendamentos = Agendamento::get()->last(); $agendamentos = Agendamento::get()->last();
//dd($agendamentos);
if($agendamentos) { if($agendamentos) {
// echo "<b>Município: {$lote->municipio->nome}" . " | Título: {$titulo->numero_titulo}" . " | Proprietário: {$lote->proprietario}" . // 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}" . // " | 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 @@ ...@@ -23,10 +23,11 @@
<div class="header_listagem small-box bg-gradient-success"> <div class="header_listagem small-box bg-gradient-success">
@foreach ($documentosPessoa as $documentoPessoa) @foreach ($documentosPessoa as $documentoPessoa)
@foreach ($lotes as $lote) @foreach ($lotes as $lote)
<h1>DADOS DO ATENDIMENTO</h1>
<h1>DADOS DO DETENTOR</h1>
<h2>{{ $lote->proprietario }}</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
@endforeach @endforeach
</div> </div>
...@@ -43,10 +44,10 @@ ...@@ -43,10 +44,10 @@
<th>MUNICÍPIO</th> <th>MUNICÍPIO</th>
<th>PROPRIETÁRIO</th> <th>PROPRIETÁRIO</th>
<th>CPF</th> <th>CPF</th>
<th>TRAMITE</th> <th>STATUS</th>
<th>DATA</th> <th>DATA</th>
<th>ID</th> <th>NÚMERO DO ATENDIMENTO</th>
{{-- <th width="100">AÇÕES</th> --}} <th width="100">AÇÕES</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
...@@ -61,6 +62,9 @@ ...@@ -61,6 +62,9 @@
<td>{{ $tramite->nome }}</td> <td>{{ $tramite->nome }}</td>
<td>{{ $agendamentos->data }}</td> <td>{{ $agendamentos->data }}</td>
<td>{{ $agendamentos->id }}</td> <td>{{ $agendamentos->id }}</td>
<td>
<a href="{{ route('titulos.show', $lote->id) }}" class="badge bg-green">DETALHES</a>
</td>
</tr> </tr>
@endif @endif
@endforeach @endforeach
...@@ -78,8 +82,7 @@ ...@@ -78,8 +82,7 @@
<strong>Date : </strong> <strong>Date : </strong>
<input class="date form-control" type="text" id="datepicker" name="data"> <input class="date form-control" type="text" id="datepicker" name="data">
<button type="submit" class="btn btn-success">AGENDAR</button> <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>
</div> </div>
</form> </form>
......
...@@ -9,18 +9,17 @@ ...@@ -9,18 +9,17 @@
<!-- left column --> <!-- left column -->
<div class="col-md-3"> <div class="col-md-3">
</div> </div>
<div class="col-md-6 tela_cpf_invalido"> <div class="col-md-6 tela_cpf_invalido">
<img class="logoidace" src="{{ asset('img/logo-idace.png') }}"> <img class="logoidace" src="{{ asset('img/logo-idace.png') }}">
<h1 class="titulo">Dados do atendimento</h1> <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> <h4 class="titulo2">CPF: <strong>{{ $lotes->cpf }}</strong></h4>
<div class="row"> <div class="row">
<div class="col-sm-6" style="text-align:center;font-size:23px;"> <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>
<div class="col-sm-6" style="text-align:center;font-size:23px;"> <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