Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
agendamento
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Marcos Albano
agendamento
Commits
242586de
Commit
242586de
authored
Aug 29, 2020
by
Marcos Albano
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MOdificacao do show detalhes
parent
c93296a3
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
34 additions
and
14 deletions
+34
-14
TituloController.php
app/Http/Controllers/TituloController.php
+0
-2
EnderecoPessoa.php
app/Models/EnderecoPessoa.php
+20
-0
index.blade.php
resources/views/admin/pages/titulos/index.blade.php
+11
-8
show.blade.php
resources/views/admin/pages/titulos/show.blade.php
+3
-4
No files found.
app/Http/Controllers/TituloController.php
View file @
242586de
...
...
@@ -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}" .
...
...
app/Models/EnderecoPessoa.php
0 → 100644
View file @
242586de
<?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'
);
}
}
resources/views/admin/pages/titulos/index.blade.php
View file @
242586de
...
...
@@ -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
>
...
...
resources/views/admin/pages/titulos/show.blade.php
View file @
242586de
...
...
@@ -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;"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment