Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sisage
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
sisage
Commits
151fad0b
Commit
151fad0b
authored
Jan 26, 2021
by
Marcos Albano
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adicionada pagina de resposta
parent
bd73aca5
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
38 deletions
+25
-38
AgendamentoController.php
app/Http/Controllers/Admin/AgendamentoController.php
+3
-2
pesquisaTitulo.blade.php
resources/views/admin/agendamentos/pesquisaTitulo.blade.php
+21
-15
web.php
routes/web.php
+1
-21
No files found.
app/Http/Controllers/Admin/AgendamentoController.php
View file @
151fad0b
...
...
@@ -223,7 +223,7 @@ class AgendamentoController extends Controller
return
redirect
()
->
route
(
$routeName
.
'.index'
);
}
public
function
pesquisa
Agendament
o
(
Request
$request
)
public
function
pesquisa
Titul
o
(
Request
$request
)
{
$columnList
=
[
'id'
=>
'#'
,
'municipio'
=>
trans
(
'agendamento.municipio'
),
'detentor'
=>
trans
(
'agendamento.name'
),
'cpf'
=>
trans
(
'agendamento.cpf'
),
'titulo'
=>
trans
(
'agendamento.titulo'
),
'nome_mae'
=>
trans
(
'agendamento.nome_mae'
),
...
...
@@ -242,7 +242,8 @@ class AgendamentoController extends Controller
return
view
(
'admin.'
.
$routeName
.
'.resultadoPesquisa'
,
[
'page'
=>
$page
,
'columnList'
=>
$columnList
,
'routeName'
=>
$routeName
,
return
view
(
'admin.'
.
$routeName
.
'.pesquisaTitulo'
,
[
'page'
=>
$page
,
'columnList'
=>
$columnList
,
'routeName'
=>
$routeName
,
'list'
=>
$list
,
'breadcrumb'
=>
$breadcrumb
]);
}
...
...
resources/views/admin/agendamentos/pesquisaTitulo.blade.php
View file @
151fad0b
...
...
@@ -10,24 +10,30 @@
@
breadcrumb
([
'page'
=>
$page
,
'items'
=>
$breadcrumb
??
[]])
@
endbreadcrumb
@
form
([
'action'
=>
route
(
'resultadoPesquisa'
),
'method'
=>
'POST'
])
@
csrf
<
h4
>
<
p
class
=
"text-center"
><
b
>
Pesquisa
de
Títulos
</
b
></
p
>
</
h4
>
{{
--
<
h3
class
=
"titulo"
>
Pesquisa
de
Títulos
</
h3
>
--
}}
<
div
class
=
"row"
>
<
div
class
=
"form-group"
>
<
input
type
=
"text"
class
=
"form-control label_cpf"
data
-
mask
=
"000.000.000-00"
name
=
"cpf"
placeholder
=
"000.000.000-00"
>
<
button
type
=
"submit"
class
=
"btn btn-block btn-primary btn_pesquisa"
>
Pesquisar
</
button
>
<
p
>
Selecione
o
nome
da
sua
mãe
</
p
>
<
fieldset
class
=
"fielAgendamentoTitulo"
>
@
form
([
'action'
=>
route
(
'agendamentoTituloEntrega'
),
'method'
=>
'POST'
])
<
div
id
=
"btn_tituloEvento-1"
>
<
button
class
=
"button_tituloEvento-1"
onclick
=
"window.location = '
{
{route('agendamentoTituloEntrega')}
}
'"
>
Nome
mãe
</
button
>
</
div
>
@
endform
@
form
([
'action'
=>
route
(
'agendamentoTituloSede'
),
'method'
=>
'POST'
])
<
div
id
=
"btn_tituloSede-1"
>
<
button
class
=
"button_tituloSede-1"
onclick
=
"window.location = '
{
{route('agendamentoTituloSede')}
}
'"
>
Nome
mãe
</
button
>
</
div
>
@
endform
@
form
([
'action'
=>
route
(
'agendamentoTituloSede'
),
'method'
=>
'POST'
])
<
div
id
=
"btn_tituloSede-1"
>
<
button
class
=
"button_tituloSede-1"
onclick
=
"window.location = '
{
{route('agendamentoTituloSede')}
}
'"
>
Nome
mãe
</
button
>
</
div
>
@
endform
</
fieldset
>
@
endpage
<
div
class
=
"imaLogosCadastro"
>
<
img
src
=
"{!! asset('img/logo-idace.png') !!}"
>
</
div
>
@
endpage
@
endsection
routes/web.php
View file @
151fad0b
...
...
@@ -44,6 +44,7 @@ Route::prefix('admin')->namespace('Admin')->group(function () {
Route
::
resource
(
'/agendamentos'
,
'AgendamentoController'
);
});
//Rotas de Agendamento
Route
::
any
(
'/agendamentoTituloSede'
,
function
()
{
$routeName
=
'agendamentos'
;
$page
=
trans
(
'agendamento.agendamento_list'
);
...
...
@@ -134,25 +135,4 @@ Route::any('/pesquisaTitulo', function () {
})
->
name
(
'pesquisaTitulo'
);
Route
::
any
(
'/resultadoPesquisa'
,
function
()
{
$columnList
=
[
'id'
=>
'#'
,
'municipio'
=>
trans
(
'agendamento.municipio'
),
'detentor'
=>
trans
(
'agendamento.name'
),
'cpf'
=>
trans
(
'agendamento.cpf'
),
'titulo'
=>
trans
(
'agendamento.titulo'
),
'nome_mae'
=>
trans
(
'agendamento.nome_mae'
),
'data'
=>
trans
(
'agendamento.data'
),
'hora'
=>
trans
(
'agendamento.hora'
),
'escritorio'
=>
trans
(
'agendamento.escritorio'
)];
$routeName
=
'agendamentos'
;
$page
=
trans
(
'agendamento.agendamento_list'
);
$page_create
=
trans
(
'agendamento.agendamento'
);
$list
=
[];
$breadcrumb
=
[
(
object
)
[
'url'
=>
route
(
'home'
),
'title'
=>
trans
(
'agendamento.home'
)],
(
object
)
[
'url'
=>
route
(
$routeName
.
'.index'
),
'title'
=>
trans
(
'agendamento.list'
,
[
'page'
=>
$page
])],
(
object
)
[
'url'
=>
''
,
'title'
=>
trans
(
'agendamento.create_crud'
,
[
'page'
=>
$page_create
])],
];
return
view
(
'admin.'
.
$routeName
.
'.resultadoPesquisa'
,
[
'page'
=>
$page
,
'columnList'
=>
$columnList
,
'list'
=>
$list
,
'page_create'
=>
$page_create
,
'routeName'
=>
$routeName
,
'breadcrumb'
=>
$breadcrumb
]);
})
->
name
(
'resultadoPesquisa'
);
//->middleware('auth')
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