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
9648284d
Commit
9648284d
authored
Sep 01, 2020
by
Marcos Albano
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modificacao na index de titulos.
parent
136993d1
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
12 deletions
+22
-12
DatepickerController.php
app/Http/Controllers/DatepickerController.php
+5
-2
TituloController.php
app/Http/Controllers/TituloController.php
+0
-1
index.blade.php
resources/views/admin/pages/titulos/index.blade.php
+16
-7
dadosAtendimento.blade.php
resources/views/dadosAtendimento.blade.php
+1
-2
No files found.
app/Http/Controllers/DatepickerController.php
View file @
9648284d
...
...
@@ -4,6 +4,7 @@ namespace App\Http\Controllers;
use
App\Models\Datepicker
;
use
Illuminate\Http\Request
;
use
Illuminate\Support\Facades\Redirect
;
class
DatepickerController
extends
Controller
{
...
...
@@ -14,12 +15,14 @@ class DatepickerController extends Controller
public
function
datepicker
(
Request
$request
)
{
$datepicker
=
new
Datepicker
();
$datepicker
->
data
=
$request
->
get
(
'data'
);
// $datepicker->cpf = $request->get('cpf');
$datepicker
->
cpf
=
$request
->
get
(
'cpf'
);
$datepicker
->
detentor
=
$request
->
get
(
'detentor'
);
$datepicker
->
agendado
=
$request
->
get
(
'agendado'
);
$datepicker
->
save
();
return
redirect
()
->
back
();
//return Redirect::route('dadosAtendimento', ['cpf'=>$id,])->with('message', 'State saved correctly!!!');
// return view('dadosAtendimento');
}
}
app/Http/Controllers/TituloController.php
View file @
9648284d
...
...
@@ -98,7 +98,6 @@ class TituloController extends Controller
//guardar data
public
function
store
(
Request
$request
)
{
return
$request
->
name
;
}
...
...
resources/views/admin/pages/titulos/index.blade.php
View file @
9648284d
...
...
@@ -25,8 +25,8 @@
<
th
>
LOTE
</
th
>
<
th
>
CPF
</
th
>
<
th
>
STATUS
</
th
>
<
th
>
DATA
</
th
>
<
th
>
NÚMERO
DO
ATENDIMENTO
</
th
>
{{
--
<
th
>
DATA
</
th
>
--
}}
{{
--
<
th
>
NÚMERO
DO
ATENDIMENTO
</
th
>
--
}}
<
th
width
=
"100"
>
AÇÕES
</
th
>
</
tr
>
</
thead
>
...
...
@@ -38,8 +38,8 @@
<
td
>
{{
$pessoaLote
->
lote
->
numero
}}
</
td
>
<
td
>
{{
$documentoPessoa
->
cpf
}}
</
td
>
<
td
>
{{
$tramite
->
nome
}}
</
td
>
<
td
>
{{
date
(
'd/m/Y'
,
strtotime
(
$agendamentos
->
data
))
}}
</
td
>
<
td
>
{{
$agendamentos
->
id
}}
</
td
>
{{
--
<
td
>
{{
date
(
'd/m/Y'
,
strtotime
(
$agendamentos
->
data
))
}}
</
td
>
--
}}
{{
--
<
td
>
{{
$agendamentos
->
id
}}
</
td
>
--
}}
<
td
><
a
href
=
"{{ route('titulos.show',
$pessoaLote->lote
->id) }}"
class
=
"badge bg-green"
>
DETALHES
</
a
></
td
>
...
...
@@ -53,18 +53,27 @@
<
div
class
=
"row"
>
<
div
class
=
"col-md-4"
></
div
>
<
div
class
=
"form-group col-md-4"
>
<
strong
>
Date
:
</
strong
>
<
input
class
=
"date form-control"
type
=
"text"
id
=
"datepicker"
name
=
"data"
>
<
button
type
=
"submit"
class
=
"btn btn-success"
>
AGENDAR
</
button
>
<
strong
>
DATA
:
</
strong
>
<
input
class
=
"text form-control"
type
=
"text"
id
=
"datepicker"
name
=
"data"
>
<
input
class
=
"text form-control"
type
=
"text"
id
=
"datepicker1"
name
=
"detentor"
value
=
"{{
$pessoaLote->pessoa
->nome }}"
>
<
input
class
=
"date form-control"
type
=
"text"
id
=
"datepicker1"
name
=
"cpf"
value
=
"{{
$documentoPessoa->cpf
}}"
>
{{
--
<
input
class
=
"boolean form-control"
id
=
"datepicker1"
name
=
"agendado"
value
=
"true"
>
--
}}
<
button
type
=
"submit"
class
=
"btn btn-success"
class
=
"badge bg-green"
>
AGENDAR
</
a
></
button
>
</
div
>
</
div
>
</
form
>
</
div
>
{{
--
<
form
action
=
"{{ route('dadosAtendimento') }}"
enctype
=
"multipart/form-data"
>
<
button
type
=
"submit"
class
=
"btn btn-success"
class
=
"badge bg-green"
>
DADOS
ATENDIMENTO
</
a
></
button
>
</
form
>
--
}}
<
script
type
=
"text/javascript"
>
$
(
'#datepicker'
)
.
datepicker
({
autoclose
:
true
,
format
:
'dd/mm/yyyy'
});
$
(
'#datepicker1'
)
.
datepicker
({
autoclose
:
true
,
});
</
script
>
</
div
>
</
div
>
...
...
resources/views/dadosAtendimento.blade.php
View file @
9648284d
...
...
@@ -4,7 +4,7 @@
@
section
(
'content'
)
<
form
action
=
"{{ route('agendamentos.index',
$lote->id
) }}"
method
=
"post"
enctype
=
"multipart/form-data"
class
=
"form"
>
<
form
enctype
=
"multipart/form-data"
class
=
"form"
>
<
div
class
=
"row"
>
<!--
left
column
-->
...
...
@@ -20,7 +20,6 @@
<!--
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
>
...
...
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