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
61fc7105
Commit
61fc7105
authored
Aug 30, 2020
by
Marcos Albano
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Telas de cpfInvalido e cpfValidoSemTitulo funcionando
parent
887986ab
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
80 additions
and
27 deletions
+80
-27
AgendamentoController.php
app/Http/Controllers/AgendamentoController.php
+10
-7
TituloController.php
app/Http/Controllers/TituloController.php
+24
-20
cpfValidoSemTitulo.blade.php
resources/views/cpfValidoSemTitulo.blade.php
+43
-0
web.php
routes/web.php
+3
-0
No files found.
app/Http/Controllers/AgendamentoController.php
View file @
61fc7105
...
...
@@ -35,12 +35,15 @@ class AgendamentoController extends Controller
public
function
index
()
{
$agendamento
=
Agendamento
::
paginate
();
$agendamentos
=
Agendamento
::
get
();
foreach
(
$agendamentos
as
$agendamento
){
return
view
(
'admin.pages.agendamentos.index'
,
[
'agendamentos'
=>
$agendamento
'agendamentos'
=>
$agendamentos
]);
}
}
/**
* Show the form for creating a new resource.
*
...
...
@@ -74,12 +77,12 @@ class AgendamentoController extends Controller
{
// if(!$agendamento = $this->repository->find($id))
// return redirect()->back();
$agendamento
=
DB
::
table
(
'agendamento.agendamentos'
)
->
where
(
'id'
,
$id
)
->
first
(
);
if
(
!
$agendamento
)
$agendamento
s
=
DB
::
table
(
'agendamento.agendamentos'
)
->
find
(
$id
);
if
(
!
$agendamento
s
)
return
redirect
()
->
back
();
return
view
(
'admin.pages.agendamentos.show'
,
[
'agendamentos'
=>
$agendamento
'agendamentos'
=>
$agendamento
s
]);
}
...
...
app/Http/Controllers/TituloController.php
View file @
61fc7105
...
...
@@ -39,12 +39,12 @@ class TituloController extends Controller
->
with
(
'lotesTramites'
,
'municipio'
)
->
get
();
foreach
(
$lotes
as
$lote
)
{
$lotesTramites
=
LoteTramite
::
where
(
'lote_id'
,
$pessoaLote
->
lote_id
)
->
get
();
foreach
(
$lotesTramites
as
$loteTramite
)
{
$tramites
=
Tramite
::
where
(
'id'
,
$loteTramite
->
tramite_id
)
->
where
(
'documento_tipo'
,
'TITULO DO IMOVEL'
)
->
where
(
'id'
,
67
)
->
get
();
$loteTramite
=
LoteTramite
::
where
(
'lote_id'
,
$pessoaLote
->
lote_id
)
->
max
(
'id'
);
$lotesTramites
=
LoteTramite
::
where
(
'id'
,
$loteTramite
)
->
get
();
foreach
(
$lotesTramites
as
$lotTramite
)
{
$tramites
=
Tramite
::
where
(
'id'
,
$lotTramite
->
tramite_id
)
->
get
();
foreach
(
$tramites
as
$tramite
)
{
if
(
$tramite
->
nome
===
"ARQUIVO PRONTO PARA ENTREGA"
)
{
$titulos
=
Titulo
::
where
(
'lote_id'
,
$lote
->
id
)
->
where
(
'flag_cancelamento'
,
'<>'
,
'S'
)
->
get
();
foreach
(
$titulos
as
$titulo
)
{
$agendamentos
=
Agendamento
::
get
()
->
last
();
...
...
@@ -62,7 +62,11 @@ class TituloController extends Controller
);
}
}
}
else
{
return
view
(
'cpfValidoSemTitulo'
)
->
with
([
'cpf'
=>
$this
->
request
->
cpf
]);
}
}
}
}
}
...
...
resources/views/cpfValidoSemTitulo.blade.php
0 → 100644
View file @
61fc7105
@
extends
(
'adminlte::page'
)
@
section
(
'title'
,
'CPF Inválido'
)
@
section
(
'content'
)
<
form
action
=
""
method
=
"post"
enctype
=
"multipart/form-data"
class
=
"form"
>
<
div
class
=
"row"
>
<!--
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"
>
Nenhum
Título
encontrato
o
CPF
:
{{
$cpf
}}
</
h1
>
<
h4
class
=
"titulo2"
>
Caso
tenha
alguma
dúvida
,
entre
em
contato
através
do
telefone
:
85
0000
-
0000
</
h4
>
<!--
general
form
elements
-->
<!--
/.
card
-
header
-->
<!--
form
start
-->
<
button
href
=
"/"
type
=
"button "
style
=
"margin-top:100px"
class
=
"btn btn-block btn-primary btn_pesquisa"
>
Voltar
</
button
>
</
div
>
<!--
/.
card
-->
<!--/.
col
(
left
)
-->
<!--
right
column
-->
<!--/.
col
(
right
)
-->
<
div
class
=
"col-md-3"
>
</
div
>
</
div
>
</
form
>
@
endsection
\ No newline at end of file
routes/web.php
View file @
61fc7105
...
...
@@ -47,6 +47,9 @@ Route::get('/cpfInvalido', function () {
return
view
(
'cpfInvalido'
);
})
->
name
(
'cpfInvalido'
);
Route
::
get
(
'/cpfValidoSemTitulo'
,
function
()
{
return
view
(
'cpfValidoSemTitulo'
);
})
->
name
(
'cpfValidoSemTitulo'
);
...
...
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