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
15be784c
Commit
15be784c
authored
Sep 01, 2020
by
Marcos Albano
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tela cpfValidoSemTitulo funcionando
parent
f3c8a294
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
19 deletions
+23
-19
TituloController.php
app/Http/Controllers/TituloController.php
+23
-19
No files found.
app/Http/Controllers/TituloController.php
View file @
15be784c
...
...
@@ -42,31 +42,35 @@ class TituloController extends Controller
foreach
(
$lotesTramites
as
$lotTramite
)
{
$tramites
=
Tramite
::
where
(
'id'
,
$lotTramite
->
tramite_id
)
->
get
();
foreach
(
$tramites
as
$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
,
]
);
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
{
return
view
(
'cpfValidoSemTitulo'
)
->
with
([
'cpf'
=>
$this
->
request
->
cpf
,
'nome'
=>
$tramite
->
nome
]);
}
}
//
}
}
}
}
}
}
}
}
else
{
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