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
e2d88b48
Commit
e2d88b48
authored
Sep 07, 2020
by
Marcos Albano
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ajuste na consulta de titulos
parent
ebc27d36
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
TituloController.php
app/Http/Controllers/TituloController.php
+5
-1
No files found.
app/Http/Controllers/TituloController.php
View file @
e2d88b48
...
@@ -30,6 +30,7 @@ class TituloController extends Controller
...
@@ -30,6 +30,7 @@ class TituloController extends Controller
public
function
index
()
public
function
index
()
{
{
$documentoPessoa
=
DocumentoPessoa
::
where
(
'cpf'
,
$this
->
request
->
cpf
)
->
with
(
'pessoa'
)
->
first
();
$documentoPessoa
=
DocumentoPessoa
::
where
(
'cpf'
,
$this
->
request
->
cpf
)
->
with
(
'pessoa'
)
->
first
();
$docPessoa
=
Lote
::
where
(
'cpf'
,
$this
->
request
->
cpf
)
->
first
();
if
(
$documentoPessoa
)
{
if
(
$documentoPessoa
)
{
$pessoas
=
Pessoa
::
where
(
'id'
,
$documentoPessoa
->
pessoa_id
)
->
with
(
'documentoPessoa'
,
'pessoaLote'
)
->
get
();
$pessoas
=
Pessoa
::
where
(
'id'
,
$documentoPessoa
->
pessoa_id
)
->
with
(
'documentoPessoa'
,
'pessoaLote'
)
->
get
();
foreach
(
$pessoas
as
$pessoa
)
{
foreach
(
$pessoas
as
$pessoa
)
{
...
@@ -94,7 +95,10 @@ class TituloController extends Controller
...
@@ -94,7 +95,10 @@ class TituloController extends Controller
]
]
);
);
}
}
}
else
{
}
else
if
(
$docPessoa
){
return
view
(
'cpfSemPessoa'
)
->
with
([
'cpf'
=>
$this
->
request
->
cpf
]);
}
else
{
return
view
(
'cpfInvalido'
)
->
with
([
'cpf'
=>
$this
->
request
->
cpf
]);
return
view
(
'cpfInvalido'
)
->
with
([
'cpf'
=>
$this
->
request
->
cpf
]);
}
}
}
}
...
...
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