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
339efb1a
Commit
339efb1a
authored
Sep 02, 2020
by
Marcos Albano
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
melhorias
parent
337b0416
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
18 deletions
+26
-18
TituloController.php
app/Http/Controllers/TituloController.php
+17
-13
LoteTramite.php
app/Models/LoteTramite.php
+1
-1
index.blade.php
resources/views/admin/pages/titulos/index.blade.php
+6
-2
dadosAtendimento.blade.php
resources/views/dadosAtendimento.blade.php
+2
-2
No files found.
app/Http/Controllers/TituloController.php
View file @
339efb1a
...
...
@@ -40,22 +40,26 @@ class TituloController extends Controller
$loteTramite
=
LoteTramite
::
where
(
'lote_id'
,
$pessoaLote
->
lote_id
)
->
with
(
'tramite'
)
->
max
(
'id'
);
$lotesTramites
=
LoteTramite
::
where
(
'id'
,
$loteTramite
)
->
get
();
foreach
(
$lotesTramites
as
$lotTramite
)
{
$tramites
=
Tramite
::
where
(
'id'
,
$lotTramite
->
tramite_id
)
->
get
();
$tramites
=
Tramite
::
where
(
'id'
,
$lotTramite
->
tramite_id
)
->
where
(
'documento_tipo'
,
'TITULO DO IMOVEL'
)
->
get
();
foreach
(
$tramites
as
$tramite
)
{
if
(
$tramite
)
{
if
(
$tramite
->
id
===
67
)
{
$agendamento
=
Agendamento
::
get
()
->
last
();
return
view
(
'admin.pages.titulos.index'
,
[
'pessoasLote'
=>
$pessoasLote
,
'lotes'
=>
$lotes
,
'documentoPessoa'
=>
$documentoPessoa
,
'lotesTramites'
=>
$lotesTramites
,
'tramite'
=>
$tramite
,
'agendamento'
=>
$agendamento
,
]
);
$titulos
=
Titulo
::
where
(
'lote_id'
,
$lotTramite
->
lote_id
)
->
where
(
'flag_cancelamento'
,
'<>'
,
'S'
)
->
get
();
foreach
(
$titulos
as
$titulo
)
{
$agendamento
=
Agendamento
::
get
()
->
last
();
return
view
(
'admin.pages.titulos.index'
,
[
'pessoasLote'
=>
$pessoasLote
,
'lotes'
=>
$lotes
,
'titulos'
=>
$titulo
,
'documentoPessoa'
=>
$documentoPessoa
,
'lotesTramites'
=>
$lotesTramites
,
'tramite'
=>
$tramite
,
'agendamento'
=>
$agendamento
,
]
);
}
}
else
{
return
view
(
'cpfValidoSemTitulo'
)
->
with
([
'cpf'
=>
$this
->
request
->
cpf
,
'nome'
=>
$tramite
->
nome
]);
}
...
...
app/Models/LoteTramite.php
View file @
339efb1a
...
...
@@ -10,7 +10,7 @@ class LoteTramite extends Model
public
function
tramite
()
{
return
$this
->
belongsTo
(
Tramite
::
class
,
'id'
);
return
$this
->
belongsTo
(
Tramite
::
class
,
'
tramite_
id'
);
}
// public function secUser(){
...
...
resources/views/admin/pages/titulos/index.blade.php
View file @
339efb1a
...
...
@@ -3,7 +3,9 @@
@
section
(
'title'
,
'Pesquisa de Titulos'
)
@
section
(
'content_header'
)
@
endsection
@
section
(
'content'
)
<
link
href
=
"https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"
rel
=
"stylesheet"
>
<
link
href
=
"https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.5.0/css/bootstrap-datepicker.css"
...
...
@@ -12,6 +14,7 @@
<
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"
>
</
div
>
<
div
class
=
"card card-outline card-success"
>
<
div
class
=
"card-header"
>
<
h3
class
=
"card-title"
><
b
>
Listagem
dos
Títulos
</
b
></
h3
>
...
...
@@ -58,8 +61,9 @@
<
div
class
=
"col-md-4"
></
div
>
<
div
class
=
"form-group col-md-4"
>
<
hr
>
<
strong
>
Número
do
Agendamento
:
</
strong
><
br
>
<
input
class
=
"text form-control"
type
=
"text"
id
=
"datepicker1"
name
=
"id"
value
=
"{{
$agendamento->id
}}"
><
br
>
<
strong
><
h4
>
AGENDAMENTO
</
h4
></
strong
>
{{
--
<
strong
>
Número
do
Agendamento
:
</
strong
><
br
>
--
}}
<
input
class
=
"text form-control"
type
=
"hidden"
id
=
"datepicker1"
name
=
"id"
value
=
"{{
$agendamento->id
}}"
>
<
strong
>
Data
:
</
strong
><
br
>
<
input
class
=
"data form-control"
type
=
"text"
id
=
"datepicker"
name
=
"data"
><
br
>
<
strong
>
Detentor
:
</
strong
><
br
>
...
...
resources/views/dadosAtendimento.blade.php
View file @
339efb1a
@
extends
(
'adminlte::page'
)
@
section
(
'title'
,
'
CPF Inválid
o'
)
@
section
(
'title'
,
'
Dados Atendiment
o'
)
@
section
(
'content'
)
<
form
action
=
""
method
=
"post"
enctype
=
"multipart/form-data"
class
=
"form"
>
<
form
enctype
=
"multipart/form-data"
class
=
"form"
>
<
div
class
=
"row"
>
<!--
left
column
-->
...
...
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