Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Walter Felipe
pad-upe
Commits
f8605b4d
Commit
f8605b4d
authored
Mar 12, 2024
by
alissonalbuquerque
Browse files
Merge branch 'main' into feat_task_time
parents
92bb9a49
f49e28fd
Changes
44
Show whitespace changes
Inline
Side-by-side
resources/views/layouts/user-dashboard/dashboard_coordinator.blade.php
View file @
f8605b4d
...
@@ -14,8 +14,8 @@
...
@@ -14,8 +14,8 @@
</div>
</div>
<div
class=
"d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-top"
>
<div
class=
"d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-top"
>
<ul
class=
"inf-list"
>
<ul
class=
"inf-list"
>
<li><a
href=
""
rel=
"noopener"
target=
"_blank"
>
Cronograma de atividades P
A
D 202
2
</a></li>
<li><a
href=
""
rel=
"noopener"
target=
"_blank"
>
Cronograma de atividades PD
A
202
3
</a></li>
<li><a
href=
""
rel=
"noopener"
target=
"_blank"
>
Informações sobre o processo P
A
D 202
2
</a></li>
<li><a
href=
""
rel=
"noopener"
target=
"_blank"
>
Informações sobre o processo PD
A
202
3
</a></li>
</ul>
</ul>
</div>
</div>
</div>
</div>
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
<div
class=
"tab-pane"
id=
"pad"
role=
"tabpanel"
aria-labelledby=
"pad-tab"
>
<div
class=
"tab-pane"
id=
"pad"
role=
"tabpanel"
aria-labelledby=
"pad-tab"
>
<div
<div
class=
"d-flex flex-column justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom"
>
class=
"d-flex flex-column justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom"
>
<h1
class=
"h2"
>
Dimenções-P
A
D
</h1>
<h1
class=
"h2"
>
Dimenções-PD
A
</h1>
</div>
</div>
<div
class=
"d-flex justify-content-start "
>
<div
class=
"d-flex justify-content-start "
>
<div
class=
"card text-center"
style=
"width: 18rem;"
>
<div
class=
"card text-center"
style=
"width: 18rem;"
>
...
...
resources/views/layouts/user-dashboard/dashboard_teacher.blade.php
View file @
f8605b4d
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
<
span
class
=
"badge bg-primary"
>
{{
$userPad
->
pad
->
statusAsString
()
}}
</
span
>
<
span
class
=
"badge bg-primary"
>
{{
$userPad
->
pad
->
statusAsString
()
}}
</
span
>
</
div
>
</
div
>
<
h1
class
=
"text-center"
>
<
i
class
=
"bi bi-book-half"
></
i
>
</
h1
>
<
h1
class
=
"text-center"
>
<
i
class
=
"bi bi-book-half"
></
i
>
</
h1
>
<
h5
class
=
"text-center"
>
P
A
D
:
{{
$userPad
->
pad
->
nome
}}
</
h4
>
<
h5
class
=
"text-center"
>
PD
A
:
{{
$userPad
->
pad
->
nome
}}
</
h4
>
<
div
class
=
"text-center"
>
<
div
class
=
"text-center"
>
<
h4
class
=
"h5"
>
<
span
class
=
"badge bg-primary"
>
Horas
:
{{
$userPad
->
totalHoras
()
}}
</
span
>
</
h4
>
<
h4
class
=
"h5"
>
<
span
class
=
"badge bg-primary"
>
Horas
:
{{
$userPad
->
totalHoras
()
}}
</
span
>
</
h4
>
</
div
>
</
div
>
...
...
resources/views/layouts/user-navigation/navigation_teacher.blade.php
View file @
f8605b4d
...
@@ -7,6 +7,7 @@
...
@@ -7,6 +7,7 @@
$home_active
=
$menu
==
Menu
::
HOME
?
'active'
:
''
;
$home_active
=
$menu
==
Menu
::
HOME
?
'active'
:
''
;
$pads_active
=
$menu
==
Menu
::
PADS
?
'active'
:
''
;
$pads_active
=
$menu
==
Menu
::
PADS
?
'active'
:
''
;
$download_active
=
$menu
==
Menu
::
FILES
?
'active'
:
''
;
@
endphp
@
endphp
<!--
SidebarMenu
:
Vertical
Options
-->
<!--
SidebarMenu
:
Vertical
Options
-->
...
@@ -23,4 +24,10 @@
...
@@ -23,4 +24,10 @@
PDAs
PDAs
</
a
>
</
a
>
</
li
>
</
li
>
<
li
class
=
"nav-item"
>
<
a
href
=
"{{ route('download_index') }}"
class
=
"custom-nav-link {{
$download_active
}}"
>
<
i
class
=
"bi bi-file-earmark-arrow-down-fill"
></
i
>
Arquivos
</
a
>
</
li
>
</
ul
>
</
ul
>
resources/views/pad/admin/create.blade.php
View file @
f8605b4d
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
<
div
>
<
div
>
<
ul
class
=
"nav nav-tabs"
>
<
ul
class
=
"nav nav-tabs"
>
<
li
class
=
"nav-item"
role
=
"presentation"
>
<
li
class
=
"nav-item"
role
=
"presentation"
>
<
button
class
=
"nav-link active"
id
=
"pad-tab"
data
-
bs
-
toggle
=
"tab"
data
-
bs
-
target
=
"#pad-container"
type
=
"button"
role
=
"tab"
aria
-
controls
=
"pad-container"
arial
-
selected
=
"true"
>
P
A
D
</
button
>
<
button
class
=
"nav-link active"
id
=
"pad-tab"
data
-
bs
-
toggle
=
"tab"
data
-
bs
-
target
=
"#pad-container"
type
=
"button"
role
=
"tab"
aria
-
controls
=
"pad-container"
arial
-
selected
=
"true"
>
PD
A
</
button
>
</
li
>
</
li
>
</
ul
>
</
ul
>
</
div
>
</
div
>
...
...
resources/views/pad/admin/edit.blade.php
View file @
f8605b4d
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
<
div
>
<
div
>
<
ul
class
=
"nav nav-tabs"
>
<
ul
class
=
"nav nav-tabs"
>
<
li
class
=
"nav-item"
role
=
"presentation"
>
<
li
class
=
"nav-item"
role
=
"presentation"
>
<
button
class
=
"nav-link active"
id
=
"pad-tab"
data
-
bs
-
toggle
=
"tab"
data
-
bs
-
target
=
"#pad-container"
type
=
"button"
role
=
"tab"
aria
-
controls
=
"pad-container"
arial
-
selected
=
"true"
>
P
A
D
</
button
>
<
button
class
=
"nav-link active"
id
=
"pad-tab"
data
-
bs
-
toggle
=
"tab"
data
-
bs
-
target
=
"#pad-container"
type
=
"button"
role
=
"tab"
aria
-
controls
=
"pad-container"
arial
-
selected
=
"true"
>
PD
A
</
button
>
</
li
>
</
li
>
<
li
class
=
"nav-item"
role
=
"presentation"
>
<
li
class
=
"nav-item"
role
=
"presentation"
>
<
button
class
=
"nav-link"
id
=
"user_pad-tab"
data
-
bs
-
toggle
=
"tab"
data
-
bs
-
target
=
"#user_pad-container"
type
=
"button"
role
=
"tab"
aria
-
controls
=
"user_pad-container"
arial
-
selected
=
"false"
>
Professores
</
button
>
<
button
class
=
"nav-link"
id
=
"user_pad-tab"
data
-
bs
-
toggle
=
"tab"
data
-
bs
-
target
=
"#user_pad-container"
type
=
"button"
role
=
"tab"
aria
-
controls
=
"user_pad-container"
arial
-
selected
=
"false"
>
Professores
</
button
>
...
@@ -121,7 +121,7 @@
...
@@ -121,7 +121,7 @@
<thead>
<thead>
<tr>
<tr>
<th scope="
col
"> Professor </th>
<th scope="
col
"> Professor </th>
<th scope="
col
"> P
A
D </th>
<th scope="
col
"> PD
A
</th>
<th scope="
col
"> C.H </th>
<th scope="
col
"> C.H </th>
<th scope="
col
"> Opções </th>
<th scope="
col
"> Opções </th>
</tr>
</tr>
...
@@ -169,7 +169,7 @@
...
@@ -169,7 +169,7 @@
<
thead
>
<
thead
>
<
tr
>
<
tr
>
<
th
scope
=
"col"
>
Avaliador
</
th
>
<
th
scope
=
"col"
>
Avaliador
</
th
>
<
th
scope
=
"col"
>
P
A
D
</
th
>
<
th
scope
=
"col"
>
PD
A
</
th
>
<
th
scope
=
"col"
>
Dimensão
</
th
>
<
th
scope
=
"col"
>
Dimensão
</
th
>
<
th
scope
=
"col"
>
Opções
</
th
>
<
th
scope
=
"col"
>
Opções
</
th
>
</
tr
>
</
tr
>
...
...
resources/views/pad/anexo.blade.php
View file @
f8605b4d
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
@
section
(
'body'
)
@
section
(
'body'
)
<
div
class
=
"content"
>
<
div
class
=
"content"
>
<
div
class
=
"header"
id
=
"bordcab"
>
<
div
class
=
"header"
id
=
"bordcab"
>
<
h1
class
=
"titulo pt-4 pb-4 mb-3 border-bottom"
>
PLANO
DE
ATIVIDADES
DOCENTES
(
P
A
D
)
</
h1
>
<
h1
class
=
"titulo pt-4 pb-4 mb-3 border-bottom"
>
PLANO
DE
ATIVIDADES
DOCENTES
(
PD
A
)
</
h1
>
<
p
class
=
"pb-4 mb-3 text-center text-muted align-items-center"
>
ANEXO
B
</
p
>
<
p
class
=
"pb-4 mb-3 text-center text-muted align-items-center"
>
ANEXO
B
</
p
>
<
p
class
=
"pb-4 mb-3 text-center text-muted align-items-center"
>
<
p
class
=
"pb-4 mb-3 text-center text-muted align-items-center"
>
Insira
os
dados
correspondentes
nos
campos
exibidos
abaixo
Insira
os
dados
correspondentes
nos
campos
exibidos
abaixo
...
...
resources/views/pad/avaliacao/index.blade.php
View file @
f8605b4d
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
@
section
(
'body'
)
@
section
(
'body'
)
@
include
(
'components.alerts'
)
@
include
(
'components.alerts'
)
<
div
class
=
"d-flex justify-content-between align-items-center border-bottom"
>
<
div
class
=
"d-flex justify-content-between align-items-center border-bottom"
>
<
h2
class
=
""
>
P
A
Ds
</
h2
>
<
h2
class
=
""
>
PD
A
s
</
h2
>
</
div
>
</
div
>
<!--
Tabela
-->
<!--
Tabela
-->
...
...
resources/views/pad/components/confirm_save.blade.php
View file @
f8605b4d
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
<button
class=
"btn btn-l btn-success"
<button
class=
"btn btn-l btn-success"
onclick=
"location.href='{{route('user-pad_pdf', ['user_pad_id' => $user_pad_id])}}'"
onclick=
"location.href='{{route('user-pad_pdf', ['user_pad_id' => $user_pad_id])}}'"
data-bs-dismiss=
"modal"
>
data-bs-dismiss=
"modal"
>
Sim, salvar P
A
D
Sim, salvar PD
A
</button>
</button>
</div>
</div>
...
...
resources/views/pad/relatorio/index.blade.php
View file @
f8605b4d
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
<
div
class
=
"d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3"
>
<
div
class
=
"d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3"
>
<
h3
>
<
h3
>
<
i
class
=
"bi bi-exclamation-octagon-fill"
></
i
>
<
i
class
=
"bi bi-exclamation-octagon-fill"
></
i
>
P
A
Ds
com
Relatórios
Disponíveis
PD
A
s
com
Relatórios
Disponíveis
</
h3
>
</
h3
>
</
div
>
</
div
>
<
div
class
=
"d-flex"
>
<
div
class
=
"d-flex"
>
...
...
resources/views/pad/relatorio/relatorio.blade.php
View file @
f8605b4d
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
</
div
>
</
div
>
<
div
class
=
"card d-flex"
>
<
div
class
=
"card d-flex"
>
<
div
class
=
"card-head d-flex justify-content-center"
style
=
"background-color:#dfdfdf; padding-top:10px;"
>
<
div
class
=
"card-head d-flex justify-content-center"
style
=
"background-color:#dfdfdf; padding-top:10px;"
>
<
h6
class
=
"card-title"
style
=
"font-weight:bold;"
>
PROFESSORES
QUE
NÃO
ENVIARAM
O
P
A
D
</
h6
>
<
h6
class
=
"card-title"
style
=
"font-weight:bold;"
>
PROFESSORES
QUE
NÃO
ENVIARAM
O
PD
A
</
h6
>
</
div
>
</
div
>
<
div
class
=
"card-body"
>
<
div
class
=
"card-body"
>
...
@@ -66,7 +66,7 @@
...
@@ -66,7 +66,7 @@
<
div
class
=
"card d-flex"
style
=
'margin-top:20px;'
>
<
div
class
=
"card d-flex"
style
=
'margin-top:20px;'
>
<
div
class
=
"card-head d-flex justify-content-center"
style
=
"background-color:#dfdfdf; padding-top:10px;"
>
<
div
class
=
"card-head d-flex justify-content-center"
style
=
"background-color:#dfdfdf; padding-top:10px;"
>
<
h6
class
=
"card-title"
style
=
"font-weight:bold;"
>
RELAÇÃO
DOS
PROFESSORES
QUE
ENVIARAM
O
P
A
D
</
h6
>
<
h6
class
=
"card-title"
style
=
"font-weight:bold;"
>
RELAÇÃO
DOS
PROFESSORES
QUE
ENVIARAM
O
PD
A
</
h6
>
</
div
>
</
div
>
<
div
class
=
"card-body"
>
<
div
class
=
"card-body"
>
...
...
resources/views/pad/teacher/index.blade.php
View file @
f8605b4d
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
use
App\Models\Util\Status
;
use
App\Models\Util\Status
;
@
endphp
@
endphp
@
section
(
'title'
,
'P
A
Ds'
)
@
section
(
'title'
,
'PD
A
s'
)
@
section
(
'header'
)
@
section
(
'header'
)
@
include
(
'layouts.header'
,
[
@
include
(
'layouts.header'
,
[
...
...
resources/views/pad/teacher/report_pdf.blade.php
View file @
f8605b4d
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
</div>
</div>
<div
style=
"display: flex; flex-direction: column"
>
<div
style=
"display: flex; flex-direction: column"
>
<p
style=
"margin: 1.1mm"
><span>
Autor do P
A
D: {{$data['user']['nome']}}
</span></p>
<p
style=
"margin: 1.1mm"
><span>
Autor do PD
A
: {{$data['user']['nome']}}
</span></p>
<p
style=
"margin: 1.1mm"
><span>
E-mail do Autor: {{$data['user']['email']}}
</span></p>
<p
style=
"margin: 1.1mm"
><span>
E-mail do Autor: {{$data['user']['email']}}
</span></p>
<p
style=
"margin: 1.1mm"
><span>
PDF gerado em: {{$data['date']}}
</span></p>
<p
style=
"margin: 1.1mm"
><span>
PDF gerado em: {{$data['date']}}
</span></p>
</div>
</div>
...
...
resources/views/pad/teacher/view.blade.php
View file @
f8605b4d
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
<
h3
class
=
"h3"
>
DIMENSÕES
</
h3
>
<
h3
class
=
"h3"
>
DIMENSÕES
</
h3
>
<
button
class
=
"btn btn-outline-success btn-m btn-save_pad"
style
=
"margin-right: 1.2rem"
>
<
button
class
=
"btn btn-outline-success btn-m btn-save_pad"
style
=
"margin-right: 1.2rem"
>
<
i
class
=
"bi bi-check-square"
></
i
>
<
i
class
=
"bi bi-check-square"
></
i
>
Enviar
P
A
D
Enviar
PD
A
</
button
>
</
button
>
</
div
>
</
div
>
...
@@ -75,7 +75,7 @@
...
@@ -75,7 +75,7 @@
<
div
class
=
"card-body"
>
<
div
class
=
"card-body"
>
<
h2
class
=
"text-center"
>
<
i
class
=
"bi bi-clock"
></
i
>
</
h2
>
<
h2
class
=
"text-center"
>
<
i
class
=
"bi bi-clock"
></
i
>
</
h2
>
<
h3
class
=
"text-center"
>
Horário
</
h3
>
<
h3
class
=
"text-center"
>
Horário
</
h3
>
<
a
class
=
"stretched-link btn-pad-horario"
href
=
"{{ route('
T
ask
T
ime
I
ndex', ['user_pad_id' =>
$user_pad_id
]) }}"
></
a
>
<
a
class
=
"stretched-link btn-pad-horario"
href
=
"{{ route('
t
ask
_t
ime
_i
ndex', ['user_pad_id' =>
$user_pad_id
]) }}"
></
a
>
</
div
>
</
div
>
</
div
>
</
div
>
...
@@ -100,7 +100,7 @@
...
@@ -100,7 +100,7 @@
<
div
class
=
"card mx-2"
style
=
"width: 10rem;"
>
<
div
class
=
"card mx-2"
style
=
"width: 10rem;"
>
<
div
class
=
"card-body bg-primary"
>
<
div
class
=
"card-body bg-primary"
>
<
h1
class
=
"text-center"
>
<
i
class
=
"bi bi-cloud-arrow-down-fill"
style
=
"color: #F1F1F1"
></
i
>
</
h1
>
<
h1
class
=
"text-center"
>
<
i
class
=
"bi bi-cloud-arrow-down-fill"
style
=
"color: #F1F1F1"
></
i
>
</
h1
>
<
h5
class
=
"text-center text-white"
>
Baixar
P
A
D
</
h4
>
<
h5
class
=
"text-center text-white"
>
Baixar
PD
A
</
h4
>
<
div
class
=
"text-center"
>
<
div
class
=
"text-center"
>
<
h4
class
=
"h5"
>
<
span
class
=
"badge"
style
=
"color: #32415c;background-color: #fd9d0d"
>
Horas
:
{{
$ensinoTotalHoras
+
$gestaoTotalHoras
+
$pesquisaTotalHoras
+
$extensaoTotalHoras
}}
</
span
>
</
h4
>
<
h4
class
=
"h5"
>
<
span
class
=
"badge"
style
=
"color: #32415c;background-color: #fd9d0d"
>
Horas
:
{{
$ensinoTotalHoras
+
$gestaoTotalHoras
+
$pesquisaTotalHoras
+
$extensaoTotalHoras
}}
</
span
>
</
h4
>
</
div
>
</
div
>
...
@@ -111,7 +111,7 @@
...
@@ -111,7 +111,7 @@
@
include
(
'components.modal'
,
[
@
include
(
'components.modal'
,
[
'size'
=>
'modal-lg'
,
'size'
=>
'modal-lg'
,
'header'
=>
'Salvar P
A
D?'
'header'
=>
'Salvar PD
A
?'
])
])
@
endsection
@
endsection
...
...
resources/views/task-time/create.blade.php
View file @
f8605b4d
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
use
App\Models\TaskTime
;
use
App\Models\TaskTime
;
@
endphp
@
endphp
<
form
id
=
"task-time-form"
action
=
"{{ route('
T
ask
T
ime
S
ave') }}"
method
=
"post"
>
<
form
id
=
"task-time-form"
action
=
"{{ route('
t
ask
_t
ime
_s
ave') }}"
method
=
"post"
>
@
csrf
@
csrf
@
method
(
'POST'
)
@
method
(
'POST'
)
...
@@ -94,7 +94,7 @@
...
@@ -94,7 +94,7 @@
@include('pad.components.scripts.ajaxValidation', [
@include('pad.components.scripts.ajaxValidation', [
'btn_submit_id' => 'btn_submit',
'btn_submit_id' => 'btn_submit',
'form_id' => 'task-time-form',
'form_id' => 'task-time-form',
'route' => route('
T
ask
T
ime
V
alidation'),
'route' => route('
t
ask
_t
ime
_v
alidation'),
'form_type' => 'create',
'form_type' => 'create',
])
])
...
@@ -117,7 +117,7 @@
...
@@ -117,7 +117,7 @@
}
}
},
},
ajax: {
ajax: {
url: '{{ route("
T
ask
S
earch
") }}',
url: '{{ route("
t
ask
_s
earch
") }}',
data: function(params) {
data: function(params) {
return {
return {
q: params.term,
q: params.term,
...
@@ -150,7 +150,7 @@
...
@@ -150,7 +150,7 @@
tarefa_id.val(_tarefa_id)
tarefa_id.val(_tarefa_id)
$.ajax({
$.ajax({
url: '{{ route("
T
ask
T
ime
S
earch
Task
") }}',
url: '{{ route("
t
ask
_t
ime
_s
earch
") }}',
type: 'GET',
type: 'GET',
data: {
data: {
tarefa_id: _tarefa_id,
tarefa_id: _tarefa_id,
...
...
resources/views/task-time/index.blade.php
View file @
f8605b4d
...
@@ -27,50 +27,29 @@
...
@@ -27,50 +27,29 @@
@
php
@
php
use
App\Models\TaskTime
;
use
App\Models\TaskTime
;
// $hours = ['07:30', '08:20', '09:10', '10:00', '10:50', '11:40', '12:30', '13:30', '14:30', '15:30', '16:30', '17:30', '19:00', '19:45', '20:30', '21:15'];
$rangeHours
=
[
[
'07:30'
,
'08:20'
],
[
'08:20'
,
'09:10'
],
[
'09:10'
,
'10:00'
],
[
'10:00'
,
'10:50'
],
[
'10:50'
,
'11:40'
],
[
'11:40'
,
'12:30'
],
[
'12:30'
,
'13:30'
],
[
'13:30'
,
'14:30'
],
[
'14:30'
,
'15:30'
],
[
'15:30'
,
'16:30'
],
[
'16:30'
,
'17:30'
],
[
'17:30'
,
'19:00'
],
[
'19:00'
,
'19:45'
],
[
'19:45'
,
'20:30'
],
[
'20:30'
,
'21:15'
],
[
'21:15'
,
'21:15'
],
];
$calendar
=
[];
$calendar
=
[];
$row
=
[];
$weekColumns
=
[];
foreach
(
$rangeHours
as
$rangeHour
)
{
$start_time
=
$rangeHour
[
0
];
$end_time
=
$rangeHour
[
1
];
$row
[
0
]
=
$start_time
;
$max_len_column
=
0
;
foreach
(
array_keys
(
TaskTime
::
listWeekDays
())
as
$weekday
)
{
foreach
(
array_keys
(
TaskTime
::
listWeekDays
())
as
$weekday
)
$weekColumns
[
$weekday
]
=
{
TaskTime
::
whereWeekday
(
$weekday
)
$row
[
$weekday
]
=
->
orderBy
(
'start_time'
,
'ASC'
)
TaskTime
::
where
(
'user_pad_id'
,
'='
,
$user_pad_id
)
->
get
();
->
where
(
'weekday'
,
'='
,
$weekday
)
->
where
(
function
(
$query
)
use
(
$rangeHour
)
{
$query
->
orWhereBetween
(
'start_time'
,
$rangeHour
)
->
orWhereBetween
(
'end_time'
,
$rangeHour
);
})
->
first
();
$row
[
$weekday
]
=
$row
[
$weekday
]
?
$row
[
$weekday
]
:
''
;
if
(
count
(
$weekColumns
[
$weekday
])
>
$max_len_column
)
{
$max_len_column
=
count
(
$weekColumns
[
$weekday
]);
}
}
}
foreach
(
range
(
0
,
$max_len_column
-
1
)
as
$i
)
{
$row
=
[];
foreach
(
array_keys
(
TaskTime
::
listWeekDays
())
as
$weekday
)
{
isset
(
$weekColumns
[
$weekday
][
$i
])
?
array_push
(
$row
,
$weekColumns
[
$weekday
][
$i
])
:
array_push
(
$row
,
null
);
}
$calendar
[]
=
$row
;
$calendar
[]
=
$row
;
}
}
@
endphp
@
endphp
...
@@ -80,25 +59,33 @@
...
@@ -80,25 +59,33 @@
<
table
class
=
"table table-hover"
>
<
table
class
=
"table table-hover"
>
<
thead
>
<
thead
>
<
tr
>
<
tr
>
@
foreach
(
TaskTime
::
listWeekDays
Table
()
as
$key
=>
$weekday
)
@
foreach
(
TaskTime
::
listWeekDays
()
as
$key
=>
$weekday
)
<
th
scope
=
"col"
>
{{
$weekday
}}
</
th
>
<
th
scope
=
"col"
class
=
"text-center"
>
{{
$weekday
}}
</
th
>
@
endforeach
@
endforeach
</
tr
>
</
tr
>
</
thead
>
</
thead
>
<
tbody
>
<
tbody
>
@
foreach
(
$calendar
as
$row
Hour
)
@
foreach
(
$calendar
as
$row
)
<
tr
>
<
tr
>
@
foreach
(
$rowHour
as
$model
)
@
foreach
(
$row
as
$model
)
@
if
(
gettype
(
$model
)
==
'string'
)
<
th
scope
=
"col"
>
{{
$model
}}
</
th
>
@
endif
@
if
(
gettype
(
$model
)
==
'object'
)
@
if
(
$model
!
==
null
)
<
td
>
<
td
>
<
div
class
=
"card"
>
<
div
class
=
"card-header"
>
<
p
class
=
"text-center"
>
<
i
class
=
"bi bi-clock"
></
i
>
{{
$model
->
formatStartTime
()
}}
</
p
>
</
div
>
<
div
class
=
"card-body"
>
<
div
class
=
"text-center"
>
<
a
href
=
"#modal"
class
=
"btn btn-edit_task"
id
=
"{{
$model->id
}}"
>
<
a
href
=
"#modal"
class
=
"btn btn-edit_task"
id
=
"{{
$model->id
}}"
>
{{
"
{
$model
->
getCode
()
}
:
{
$model
->
getName
()
}
"
}}
{{
"
{
$model
->
getCode
()
}
:
{
$model
->
getName
()
}
"
}}
<
i
class
=
"bi bi-pencil"
></
i
>
</
a
>
</
a
>
</
div
>
</
div
>
<
div
class
=
"card-header"
>
<
p
class
=
"text-center"
>
<
i
class
=
"bi bi-clock-fill"
></
i
>
{{
$model
->
formatEndTime
()
}}
</
p
>
</
div
>
</
div
>
</
td
>
</
td
>
@
endif
@
endif
...
@@ -119,39 +106,14 @@
...
@@ -119,39 +106,14 @@
@
include
(
'pad.components.scripts.dimensao.ensino.show_modal'
,
[
@
include
(
'pad.components.scripts.dimensao.ensino.show_modal'
,
[
'modal_id'
=>
'modal'
,
'modal_id'
=>
'modal'
,
'route'
=>
route
(
'
T
ask
T
ime
C
reate'
,
[
'user_pad_id'
=>
$user_pad_id
]),
'route'
=>
route
(
'
t
ask
_t
ime
_c
reate'
,
[
'user_pad_id'
=>
$user_pad_id
]),
'btn_class'
=>
'task-time-create'
,
'btn_class'
=>
'task-time-create'
,
])
])
@
include
(
'pad.components.scripts.dimensao.ensino.show_modal'
,
[
@
include
(
'pad.components.scripts.dimensao.ensino.show_modal'
,
[
'modal_id'
=>
'modal'
,
'modal_id'
=>
'modal'
,
'route'
=>
route
(
'
T
ask
T
ime
E
dit'
),
'route'
=>
route
(
'
t
ask
_t
ime
_e
dit'
),
'btn_class'
=>
'btn-edit_task'
,
'btn_class'
=>
'btn-edit_task'
,
])
])
@
endsection
@
endsection
\ No newline at end of file
{{
--
@
include
(
'components.buttons.btn-edit'
,
[
'route'
=>
route
(
'TaskTimeEdit'
,
[
'id'
=>
$model
->
id
])
])
@
include
(
'components.buttons.btn-delete'
,
[
'id'
=>
$model
->
id
,
'route'
=>
route
(
'TaskTimeDelete'
,
[
'id'
=>
$model
->
id
])
])
--
}}
{{
--
@
foreach
(
$listTaskTime
as
$key
=>
$taskTimes
)
<
tr
>
@
foreach
(
$taskTimes
as
$model
)
@
if
(
gettype
(
$model
)
==
'string'
)
<
th
>
{{
$model
}}
</
th
>
@
endif
@
if
(
gettype
(
$model
)
==
'object'
)
@
endif
@
endforeach
</
tr
>
@
endforeach
--
}}
\ No newline at end of file
resources/views/task-time/update.blade.php
View file @
f8605b4d
...
@@ -6,12 +6,12 @@
...
@@ -6,12 +6,12 @@
*/
*/
@
endphp
@
endphp
<
form
id
=
"form-delete-
{
{$model->id}
}
"
action
=
"{{ route('
T
ask
T
ime
D
elete', ['id' =>
$model->id
]) }}"
method
=
"post"
>
<
form
id
=
"form-delete-
{
{$model->id}
}
"
action
=
"{{ route('
t
ask
_t
ime
_d
elete', ['id' =>
$model->id
]) }}"
method
=
"post"
>
@
method
(
'DELETE'
)
@
method
(
'DELETE'
)
@
csrf
@
csrf
</
form
>
</
form
>
<
form
id
=
"task-time-update-form"
action
=
"{{ route('
T
ask
T
ime
U
pdate', ['id' =>
$model->id
]) }}"
method
=
"post"
>
<
form
id
=
"task-time-update-form"
action
=
"{{ route('
t
ask
_t
ime
_u
pdate', ['id' =>
$model->id
]) }}"
method
=
"post"
>
@
csrf
@
csrf
@
method
(
'POST'
)
@
method
(
'POST'
)
...
@@ -115,7 +115,7 @@
...
@@ -115,7 +115,7 @@
@include('pad.components.scripts.ajaxValidation', [
@include('pad.components.scripts.ajaxValidation', [
'btn_submit_id' => 'btn_submit',
'btn_submit_id' => 'btn_submit',
'form_id' => 'task-time-update-form',
'form_id' => 'task-time-update-form',
'route' => route('
T
ask
T
ime
V
alidation'),
'route' => route('
t
ask
_t
ime
_v
alidation'),
'form_type' => 'update',
'form_type' => 'update',
])
])
...
@@ -138,7 +138,7 @@
...
@@ -138,7 +138,7 @@
}
}
},
},
ajax: {
ajax: {
url: '{{ route("
T
ask
S
earch
") }}',
url: '{{ route("
t
ask
_s
earch
") }}',
data: function(params) {
data: function(params) {
return {
return {
q: params.term,
q: params.term,
...
@@ -171,7 +171,7 @@
...
@@ -171,7 +171,7 @@
tarefa_id.val(_tarefa_id)
tarefa_id.val(_tarefa_id)
$.ajax({
$.ajax({
url: '{{ route("
T
ask
T
ime
S
earch
Task
") }}',
url: '{{ route("
t
ask
_t
ime
_s
earch
") }}',
type: 'GET',
type: 'GET',
data: {
data: {
tarefa_id: _tarefa_id,
tarefa_id: _tarefa_id,
...
...
resources/views/user-pad/create.blade.php
View file @
f8605b4d
<div
class=
"mb-3"
>
<div
class=
"mb-3"
>
<h3
class=
"h3"
>
Cadastrar Professor (P
A
D)
</h3>
<h3
class=
"h3"
>
Cadastrar Professor (PD
A
)
</h3>
</div>
</div>
<form
id=
"form-user_pad"
action=
"{{ route('user-pad_store') }}"
method=
"post"
>
<form
id=
"form-user_pad"
action=
"{{ route('user-pad_store') }}"
method=
"post"
>
...
...
routes/Task.php
View file @
f8605b4d
...
@@ -4,6 +4,6 @@ use App\Http\Controllers\TaskController;
...
@@ -4,6 +4,6 @@ use App\Http\Controllers\TaskController;
use
Illuminate\Support\Facades\Route
;
use
Illuminate\Support\Facades\Route
;
Route
::
prefix
(
'/tarefa/geral'
)
->
group
(
function
()
{
Route
::
prefix
(
'/tarefa/geral'
)
->
group
(
function
()
{
Route
::
get
(
'/search'
,
[
TaskController
::
class
,
'search'
])
->
name
(
'
T
ask
S
earch'
);
Route
::
get
(
'/search'
,
[
TaskController
::
class
,
'search'
])
->
name
(
'
t
ask
_s
earch'
);
Route
::
get
(
'/search-by-id'
,
[
TaskController
::
class
,
'searchById'
])
->
name
(
'
T
ask
S
earch
ByI
d'
);
Route
::
get
(
'/search-by-id'
,
[
TaskController
::
class
,
'searchById'
])
->
name
(
'
t
ask
_s
earch
_by_i
d'
);
});
});
\ No newline at end of file
routes/
T
ask
T
ime.php
→
routes/
t
ask
_t
ime.php
View file @
f8605b4d
...
@@ -4,12 +4,12 @@ use App\Http\Controllers\TaskTimeController;
...
@@ -4,12 +4,12 @@ use App\Http\Controllers\TaskTimeController;
use
Illuminate\Support\Facades\Route
;
use
Illuminate\Support\Facades\Route
;
Route
::
prefix
(
'/tarefa/horario'
)
->
group
(
function
()
{
Route
::
prefix
(
'/tarefa/horario'
)
->
group
(
function
()
{
Route
::
get
(
'/index/{user_pad_id}'
,
[
TaskTimeController
::
class
,
'index'
])
->
name
(
'
T
ask
T
ime
I
ndex'
);
Route
::
get
(
'/index/{user_pad_id}'
,
[
TaskTimeController
::
class
,
'index'
])
->
name
(
'
t
ask
_t
ime
_i
ndex'
);
Route
::
get
(
'/create/{user_pad_id}'
,
[
TaskTimeController
::
class
,
'create'
])
->
name
(
'
T
ask
T
ime
C
reate'
);
Route
::
get
(
'/create/{user_pad_id}'
,
[
TaskTimeController
::
class
,
'create'
])
->
name
(
'
t
ask
_t
ime
_c
reate'
);
Route
::
post
(
'/save'
,
[
TaskTimeController
::
class
,
'save'
])
->
name
(
'
T
ask
T
ime
S
ave'
);
Route
::
post
(
'/save'
,
[
TaskTimeController
::
class
,
'save'
])
->
name
(
'
t
ask
_t
ime
_s
ave'
);
Route
::
get
(
'/edit/{id?}'
,
[
TaskTimeController
::
class
,
'edit'
])
->
name
(
'
T
ask
T
ime
E
dit'
);
Route
::
get
(
'/edit/{id?}'
,
[
TaskTimeController
::
class
,
'edit'
])
->
name
(
'
t
ask
_t
ime
_e
dit'
);
Route
::
post
(
'/update/{id}'
,
[
TaskTimeController
::
class
,
'update'
])
->
name
(
'
T
ask
T
ime
U
pdate'
);
Route
::
post
(
'/update/{id}'
,
[
TaskTimeController
::
class
,
'update'
])
->
name
(
'
t
ask
_t
ime
_u
pdate'
);
Route
::
delete
(
'/delete/{id}'
,
[
TaskTimeController
::
class
,
'delete'
])
->
name
(
'
T
ask
T
ime
D
elete'
);
Route
::
delete
(
'/delete/{id}'
,
[
TaskTimeController
::
class
,
'delete'
])
->
name
(
'
t
ask
_t
ime
_d
elete'
);
Route
::
get
(
'/search-task'
,
[
TaskTimeController
::
class
,
'searchTask'
])
->
name
(
'
T
ask
T
ime
S
earch
Task
'
);
Route
::
get
(
'/search-task'
,
[
TaskTimeController
::
class
,
'searchTask'
])
->
name
(
'
t
ask
_t
ime
_s
earch'
);
Route
::
post
(
'/validation'
,
[
TaskTimeController
::
class
,
'ajaxValidation'
])
->
name
(
'
T
ask
T
ime
V
alidation'
);
Route
::
post
(
'/validation'
,
[
TaskTimeController
::
class
,
'ajaxValidation'
])
->
name
(
'
t
ask
_t
ime
_v
alidation'
);
});
});
routes/web.php
View file @
f8605b4d
...
@@ -7,10 +7,11 @@ use App\Http\Controllers\CoordenadorController;
...
@@ -7,10 +7,11 @@ use App\Http\Controllers\CoordenadorController;
use
App\Http\Controllers\DiretorController
;
use
App\Http\Controllers\DiretorController
;
use
App\Http\Controllers\ProfessorController
;
use
App\Http\Controllers\ProfessorController
;
use
App\Http\Controllers\AvaliadorController
;
use
App\Http\Controllers\AvaliadorController
;
use
App\Http\Controllers\DownloadFileController
;
use
App\Http\Controllers\PadController
;
use
App\Http\Controllers\PadController
;
use
App\Http\Controllers\PDFController
;
use
App\Http\Controllers\PDFController
;
use
FontLib\Table\Type\name
;
use
Illuminate\Support\Facades\Route
;
use
Illuminate\Support\Facades\Route
;
/*
/*
...
@@ -48,7 +49,7 @@ require __DIR__ . '/user_type.php';
...
@@ -48,7 +49,7 @@ require __DIR__ . '/user_type.php';
require
__DIR__
.
'/Task.php'
;
require
__DIR__
.
'/Task.php'
;
require
__DIR__
.
'/
T
ask
T
ime.php'
;
require
__DIR__
.
'/
t
ask
_t
ime.php'
;
require
__DIR__
.
'/dimensao/dimensao.php'
;
require
__DIR__
.
'/dimensao/dimensao.php'
;
...
@@ -107,5 +108,11 @@ Route::prefix('/user')->group(function () {
...
@@ -107,5 +108,11 @@ Route::prefix('/user')->group(function () {
Route
::
post
(
'/update/password'
,
[
UserController
::
class
,
'updatePassword'
])
->
name
(
'update_password'
);
Route
::
post
(
'/update/password'
,
[
UserController
::
class
,
'updatePassword'
])
->
name
(
'update_password'
);
});
});
Route
::
prefix
(
'/download'
)
->
group
(
function
()
{
Route
::
get
(
'/index'
,
[
DownloadFileController
::
class
,
'index'
])
->
name
(
'download_index'
);
Route
::
get
(
'/grade-horario'
,
[
DownloadFileController
::
class
,
'degreeSchedule'
])
->
name
(
'download_grade_horario'
);
Route
::
get
(
'/manual'
,
[
DownloadFileController
::
class
,
'manual'
])
->
name
(
'download_manual'
);
});
// Simple concept test of creating a LOREM IPSUM With Barryvdh-DomPDF
// Simple concept test of creating a LOREM IPSUM With Barryvdh-DomPDF
Route
::
get
(
'generate-pdf'
,[
PDFController
::
class
,
'generatePDF'
]);
Route
::
get
(
'generate-pdf'
,[
PDFController
::
class
,
'generatePDF'
]);
Prev
1
2
3
Next
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