Commit 136993d1 authored by Marcos Albano's avatar Marcos Albano 💬

Ajustes em TituloController

parent 15be784c
......@@ -44,27 +44,21 @@ class TituloController extends Controller
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) {
$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{
} else {
return view('cpfValidoSemTitulo')->with(['cpf' => $this->request->cpf, 'nome' => $tramite->nome]);
}
// }
}
}
}
......
......@@ -11,23 +11,11 @@
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.5.0/js/bootstrap-datepicker.js"></script>
<div class="header_listagem small-box bg-gradient-success">
{{-- @foreach ($documentosPessoa as $documentoPessoa)
@foreach ($lotes as $lote)
<h1>DADOS DO ATENDIMENTO</h1>
<h2>{{ $lote->proprietario }}</h1>
<h3>CPF: {{ $documentoPessoa->cpf }} </h1>
<h3>NÚMERO DO ATENDIMENTO: {{ $agendamentos->id }} </h1>
<h3>DATA DO AGENDAMENTO: {{ date('d/m/Y', strtotime($agendamentos->data)) }} </h1>
@endforeach
@endforeach --}}
</div>
<!-- <h1></h1> -->
<div class="card card-outline card-success">
<div class="card-header">
<h3 class="card-title"><b>Listagem dos Títulos</b></h3>
</div>
<!-- /.card-header -->
<div class="card-body">
<table class="table table-striped">
<thead>
......@@ -37,8 +25,8 @@
<th>LOTE</th>
<th>CPF</th>
<th>STATUS</th>
{{-- <th>DATA</th> --}}
{{-- <th>NÚMERO DO ATENDIMENTO</th> --}}
<th>DATA</th>
<th>NÚMERO DO ATENDIMENTO</th>
<th width="100">AÇÕES</th>
</tr>
</thead>
......@@ -50,19 +38,14 @@
<td>{{ $pessoaLote->lote->numero }}</td>
<td>{{ $documentoPessoa->cpf }}</td>
<td>{{ $tramite->nome }}</td>
<td>{{ date('d/m/Y', strtotime($agendamentos->data)) }}</td>
<td>{{ $agendamentos->id }}</td>
<td><a
href="{{ route('titulos.show', $pessoaLote->lote->id) }}"
class="badge bg-green">DETALHES</a></td>
</tr>
@endforeach
</tbody>
</table>
<div class="container">
<form method="post" action="{{ route('datepicker') }}" enctype="multipart/form-data">
......@@ -82,7 +65,6 @@
autoclose: true,
format: 'dd/mm/yyyy'
});
</script>
</div>
</div>
......
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