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
5bbc4c29
Commit
5bbc4c29
authored
Oct 25, 2023
by
alisson
Browse files
update PAD -> PDA
parent
40ac23f1
Changes
12
Hide whitespace changes
Inline
Side-by-side
app/Http/Controllers/TaskTimeController.php
0 → 100644
View file @
5bbc4c29
<?php
namespace
App\Http\Controllers
;
use
Illuminate\Http\Request
;
class
TaskTimeController
extends
Controller
{
public
function
index
()
{
}
public
function
createView
()
{
}
public
function
create
()
{
}
public
function
updateView
()
{
}
public
function
update
()
{
}
public
function
delete
()
{
}
}
app/Models/TaskTime.php
0 → 100644
View file @
5bbc4c29
<?php
namespace
App\Models
;
use
Illuminate\Database\Eloquent\Model
;
class
TaskTime
extends
Model
{
const
STATUS_REPROVADO
=
6
;
const
STATUS_APROVADO
=
7
;
const
STATUS_PENDENTE
=
3
;
const
STATUS_EM_REVISAO
=
8
;
const
TYPE_ENSINO_AULA
=
1
;
const
TYPE_ENSINO_COORDENACAO_REGENCIA
=
2
;
const
TYPE_ENSINO_ORIENTACAO
=
3
;
const
TYPE_ENSINO_SUPERVISAO
=
4
;
const
TYPE_ENSINO_ATENDIMENTO_DISCENTE
=
5
;
const
TYPE_ENSINO_PROJETO
=
6
;
const
TYPE_ENSINO_PARTICIPACAO
=
7
;
const
TYPE_ENSINO_MEMBRO_DOCENTE
=
8
;
const
TYPE_ENSINO_OUTROS
=
9
;
const
TYPE_PESQUISA_COORDENACAO
=
10
;
const
TYPE_PESQUISA_ORIENTACAO
=
11
;
const
TYPE_PESQUISA_LIDERANCA
=
12
;
const
TYPE_PESQUISA_OUTROS
=
13
;
const
TYPE_EXTENSAO_COORDENACAO
=
14
;
const
TYPE_EXTENSAO_ORIENTACAO
=
15
;
const
TYPE_EXTENSAO_OUTROS
=
16
;
CONST
TYPE_GESTAO_COORDENACAO_LABORATORIOS_DIDATICOS
=
17
;
CONST
TYPE_GESTAO_MEMBRO_CONSELHO
=
18
;
CONST
TYPE_GESTAO_COORDENACAO_PROGRAMA_INSTITUCIONAL
=
19
;
CONST
TYPE_GESTAO_MEMBRO_TITULAR_CONSELHO
=
20
;
CONST
TYPE_GESTAO_MEMBRO_CAMARAS
=
21
;
CONST
TYPE_GESTAO_REPRESENTANTE_UNIDADE_EDUCACAO
=
22
;
CONST
TYPE_GESTAO_MEMBRO_COMISSAO
=
23
;
CONST
TYPE_GESTAO_OUTROS
=
24
;
CONST
WEEK_DAY_SUNDAY
=
1
;
CONST
WEEK_DAY_MONDAY
=
2
;
CONST
WEEK_DAY_TUESDAY
=
3
;
CONST
WEEK_DAY_WEDNESDAY
=
4
;
CONST
WEEK_DAY_THURSDAY
=
5
;
CONST
WEEK_DAY_FRIDAY
=
6
;
CONST
WEEK_DAY_SATURDAY
=
7
;
protected
$table
=
'task_time'
;
protected
$fillable
=
[
'user_pad_upe'
,
'tarefa_id'
,
'type'
,
'weekday'
,
'start_time'
,
'end_time'
];
public
function
tarefa
()
{
// Return Ensino Models
// - - - - - - - - - -
if
(
$this
->
type
===
self
::
TYPE_ENSINO_ATENDIMENTO_DISCENTE
)
{
return
$this
->
hasOne
(
EnsinoAtendimentoDiscente
::
class
,
'id'
,
'tarefa_id'
);
}
if
(
$this
->
type
===
self
::
TYPE_ENSINO_AULA
)
{
return
$this
->
hasOne
(
EnsinoAula
::
class
,
'id'
,
'tarefa_id'
);
}
if
(
$this
->
type
===
self
::
TYPE_ENSINO_COORDENACAO_REGENCIA
)
{
return
$this
->
hasOne
(
EnsinoCoordenacaoRegencia
::
class
,
'id'
,
'tarefa_id'
);
}
if
(
$this
->
type
===
self
::
TYPE_ENSINO_MEMBRO_DOCENTE
)
{
return
$this
->
hasOne
(
EnsinoMembroDocente
::
class
,
'id'
,
'tarefa_id'
);
}
if
(
$this
->
type
===
self
::
TYPE_ENSINO_ORIENTACAO
)
{
return
$this
->
hasOne
(
EnsinoOrientacao
::
class
,
'id'
,
'tarefa_id'
);
}
if
(
$this
->
type
===
self
::
TYPE_ENSINO_OUTROS
)
{
return
$this
->
hasOne
(
EnsinoOutros
::
class
,
'id'
,
'tarefa_id'
);
}
if
(
$this
->
type
===
self
::
TYPE_ENSINO_PARTICIPACAO
)
{
return
$this
->
hasOne
(
EnsinoParticipacao
::
class
,
'id'
,
'tarefa_id'
);
}
if
(
$this
->
type
===
self
::
TYPE_ENSINO_PROJETO
)
{
return
$this
->
hasOne
(
EnsinoProjeto
::
class
,
'id'
,
'tarefa_id'
);
}
if
(
$this
->
type
===
self
::
TYPE_ENSINO_SUPERVISAO
)
{
return
$this
->
hasOne
(
EnsinoSupervisao
::
class
,
'id'
,
'tarefa_id'
);
}
// - - - - - - - - - -
// Return Pesquisa Models
// - - - - - - - - - -
if
(
$this
->
type
===
self
::
TYPE_PESQUISA_COORDENACAO
)
{
return
$this
->
hasOne
(
PesquisaCoordenacao
::
class
,
'id'
,
'tarefa_id'
);
}
if
(
$this
->
type
===
self
::
TYPE_PESQUISA_LIDERANCA
)
{
return
$this
->
hasOne
(
PesquisaLideranca
::
class
,
'id'
,
'tarefa_id'
);
}
if
(
$this
->
type
===
self
::
TYPE_PESQUISA_ORIENTACAO
)
{
return
$this
->
hasOne
(
PesquisaOrientacao
::
class
,
'id'
,
'tarefa_id'
);
}
if
(
$this
->
type
===
self
::
TYPE_PESQUISA_OUTROS
)
{
return
$this
->
hasOne
(
PesquisaOutros
::
class
,
'id'
,
'tarefa_id'
);
}
// - - - - - - - - - -
// Return Extensao Models
// - - - - - - - - - -
if
(
$this
->
type
===
self
::
TYPE_EXTENSAO_COORDENACAO
)
{
return
$this
->
hasOne
(
ExtensaoCoordenacao
::
class
,
'id'
,
'tarefa_id'
);
}
if
(
$this
->
type
===
self
::
TYPE_EXTENSAO_ORIENTACAO
)
{
return
$this
->
hasOne
(
ExtensaoOrientacao
::
class
,
'id'
,
'tarefa_id'
);
}
if
(
$this
->
type
===
self
::
TYPE_EXTENSAO_OUTROS
)
{
return
$this
->
hasOne
(
ExtensaoOutros
::
class
,
'id'
,
'tarefa_id'
);
}
// - - - - - - - - - -
// Return Gestao Models
// - - - - - - - - - -
if
(
$this
->
type
===
self
::
TYPE_GESTAO_COORDENACAO_LABORATORIOS_DIDATICOS
)
{
return
$this
->
hasOne
(
GestaoCoordenacaoLaboratoriosDidaticos
::
class
,
'id'
,
'tarefa_id'
);
}
if
(
$this
->
type
===
self
::
TYPE_GESTAO_COORDENACAO_PROGRAMA_INSTITUCIONAL
)
{
return
$this
->
hasOne
(
GestaoCoordenacaoProgramaInstitucional
::
class
,
'id'
,
'tarefa_id'
);
}
if
(
$this
->
type
===
self
::
TYPE_GESTAO_MEMBRO_CAMARAS
)
{
return
$this
->
hasOne
(
GestaoMembroCamaras
::
class
,
'id'
,
'tarefa_id'
);
}
if
(
$this
->
type
===
self
::
TYPE_GESTAO_MEMBRO_COMISSAO
)
{
return
$this
->
hasOne
(
GestaoMembroComissao
::
class
,
'id'
,
'tarefa_id'
);
}
if
(
$this
->
type
===
self
::
TYPE_GESTAO_MEMBRO_CONSELHO
)
{
return
$this
->
hasOne
(
GestaoMembroConselho
::
class
,
'id'
,
'tarefa_id'
);
}
if
(
$this
->
type
===
self
::
TYPE_GESTAO_MEMBRO_TITULAR_CONSELHO
)
{
return
$this
->
hasOne
(
GestaoMembroTitularConselho
::
class
,
'id'
,
'tarefa_id'
);
}
if
(
$this
->
type
===
self
::
TYPE_GESTAO_OUTROS
)
{
return
$this
->
hasOne
(
GestaoOutros
::
class
,
'id'
,
'tarefa_id'
);
}
if
(
$this
->
type
===
self
::
TYPE_GESTAO_REPRESENTANTE_UNIDADE_EDUCACAO
)
{
return
$this
->
hasOne
(
GestaoRepresentanteUnidadeEducacao
::
class
,
'id'
,
'tarefa_id'
);
}
// - - - - - - - - - -
}
public
function
userPad
()
{
return
$this
->
hasOne
(
UserPad
::
class
,
'id'
,
'user_pad_id'
);
}
public
static
function
listWeekDays
(
$value
)
{
$values
=
[
self
::
WEEK_DAY_SUNDAY
=>
"DOMINGO"
,
self
::
WEEK_DAY_MONDAY
=>
"SEGUNDA-FEIRA"
,
self
::
WEEK_DAY_TUESDAY
=>
"TERÇA-FEIRA"
,
self
::
WEEK_DAY_WEDNESDAY
=>
"QUARTA-FEIRA"
,
self
::
WEEK_DAY_THURSDAY
=>
"QUINTA-FEIRA"
,
self
::
WEEK_DAY_FRIDAY
=>
"SEXTA-FEIRA"
,
self
::
WEEK_DAY_SATURDAY
=>
"SÁBADO"
,
];
return
$value
!=
null
?
$values
[
$value
]
:
$values
;
}
}
database/migrations/2023_10_17_022047_create_task_time_table.php
0 → 100644
View file @
5bbc4c29
<?php
use
Illuminate\Database\Migrations\Migration
;
use
Illuminate\Database\Schema\Blueprint
;
use
Illuminate\Support\Facades\Schema
;
class
CreateTaskTimeTable
extends
Migration
{
/**
* Run the migrations.
*
* @return void
*/
public
function
up
()
{
Schema
::
create
(
'task_time'
,
function
(
Blueprint
$table
)
{
$table
->
id
();
$table
->
integer
(
'user_pad_id'
);
$table
->
integer
(
'tarefa_id'
);
$table
->
tinyInteger
(
'type'
);
$table
->
tinyInteger
(
'weekday'
);
$table
->
time
(
'start_time'
);
$table
->
time
(
'end_time'
);
$table
->
timestamps
();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public
function
down
()
{
Schema
::
dropIfExists
(
'task_time'
);
}
}
resources/views/auth/login.blade.php
View file @
5bbc4c29
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
<
div
class
=
"w-100"
>
<
div
class
=
"w-100"
>
<
h4
class
=
"mb-4"
>
Informações
</
h4
>
<
h4
class
=
"mb-4"
>
Informações
</
h4
>
</
div
>
</
div
>
<
p
class
=
"w-100 text-center"
>
Bem
-
Vindo
(
a
)
ao
P
A
D
</
p
>
<
p
class
=
"w-100 text-center"
>
Bem
-
Vindo
(
a
)
ao
PD
A
</
p
>
<!--
<
p
class
=
"w-100 text-center text-danger"
>
Serviço
em
ajuste
.
Em
breve
,
será
novamente
liberado
</
p
>
-->
<!--
<
p
class
=
"w-100 text-center text-danger"
>
Serviço
em
ajuste
.
Em
breve
,
será
novamente
liberado
</
p
>
-->
<
p
class
=
"w-100 text-center"
>
O
primeiro
acesso
deve
ser
realizado
utilizando
o
seu
e
-
mail
institucional
como
login
e
parte
local
do
email
como
senha
.
</
p
>
<
p
class
=
"w-100 text-center"
>
O
primeiro
acesso
deve
ser
realizado
utilizando
o
seu
e
-
mail
institucional
como
login
e
parte
local
do
email
como
senha
.
</
p
>
<
p
class
=
"w-100 font-weight-bold"
>
Exemplo
:
</
p
>
<
p
class
=
"w-100 font-weight-bold"
>
Exemplo
:
</
p
>
...
...
resources/views/auth/main.blade.php
View file @
5bbc4c29
...
@@ -30,7 +30,7 @@
...
@@ -30,7 +30,7 @@
<div
class=
"stylo p-3 n-flex"
>
<div
class=
"stylo p-3 n-flex"
>
<h2>
Portal de acesso ao
</h2>
<h2>
Portal de acesso ao
</h2>
<h3>
Plano de Atividades
Docentes - PAD
</h3>
<h3>
Plano
Docente
de Atividades
- PDA
</h3>
</div>
</div>
<div
class=
"container"
>
<div
class=
"container"
>
...
...
resources/views/layouts/user-dashboard/dashboard_admin.blade.php
View file @
5bbc4c29
<div
class=
"tab-pane active"
id=
"home"
role=
"tabpanel"
aria-labelledby=
"home-tab"
>
<div
class=
"tab-pane active"
id=
"home"
role=
"tabpanel"
aria-labelledby=
"home-tab"
>
<div
<div
class=
"d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom"
>
class=
"d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom"
>
<h1
class=
"h2"
>
Bem Vindo ao P
A
D
</h1>
<h1
class=
"h2"
>
Bem Vindo ao PD
A
</h1>
</div>
</div>
</div>
</div>
\ No newline at end of file
resources/views/layouts/user-dashboard/dashboard_avaliador.blade.php
View file @
5bbc4c29
<div
class=
"tab-pane active"
id=
"home"
role=
"tabpanel"
aria-labelledby=
"home-tab"
>
<div
class=
"tab-pane active"
id=
"home"
role=
"tabpanel"
aria-labelledby=
"home-tab"
>
<div
class=
"d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom"
>
<div
class=
"d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom"
>
<h1
class=
"h2"
>
Bem Vindo ao P
A
D
</h1>
<h1
class=
"h2"
>
Bem Vindo ao PD
A
</h1>
</div>
</div>
<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>
...
...
resources/views/layouts/user-dashboard/dashboard_coordinator.blade.php
View file @
5bbc4c29
<div
class=
"tab-pane active"
id=
"home"
role=
"tabpanel"
aria-labelledby=
"home-tab"
>
<div
class=
"tab-pane active"
id=
"home"
role=
"tabpanel"
aria-labelledby=
"home-tab"
>
<div
class=
"d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom"
>
<div
class=
"d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom"
>
<h1
class=
"h2"
>
Bem Vindo ao P
A
D
</h1>
<h1
class=
"h2"
>
Bem Vindo ao PD
A
</h1>
</div>
</div>
<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"
>
<h2
class=
"h3"
>
<h2
class=
"h3"
>
...
...
resources/views/layouts/user-dashboard/dashboard_teacher.blade.php
View file @
5bbc4c29
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<
div
class
=
"tab-pane active"
id
=
"home"
role
=
"tabpanel"
aria
-
labelledby
=
"home-tab"
>
<
div
class
=
"tab-pane active"
id
=
"home"
role
=
"tabpanel"
aria
-
labelledby
=
"home-tab"
>
<
div
class
=
"d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom"
>
<
div
class
=
"d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom"
>
<
h1
class
=
"h2"
>
Bem
Vindo
ao
P
A
D
</
h1
>
<
h1
class
=
"h2"
>
Bem
Vindo
ao
PD
A
</
h1
>
</
div
>
</
div
>
<
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
>
...
...
resources/views/layouts/user-navigation/navigation_admin.blade.php
View file @
5bbc4c29
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
<
li
class
=
"nav-item"
>
<
li
class
=
"nav-item"
>
<
a
href
=
"{{ route('pad_index') }}"
class
=
"custom-nav-link {{
$pads_active
}}"
>
<
a
href
=
"{{ route('pad_index') }}"
class
=
"custom-nav-link {{
$pads_active
}}"
>
<
i
class
=
"bi bi-book-half"
></
i
>
<
i
class
=
"bi bi-book-half"
></
i
>
P
A
Ds
PD
A
s
</
a
>
</
a
>
</
li
>
</
li
>
<
li
class
=
"nav-item"
>
<
li
class
=
"nav-item"
>
...
...
resources/views/layouts/user-navigation/navigation_coordinator.blade.php
View file @
5bbc4c29
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
<path
<path
d=
"M8.5 2.687c.654-.689 1.782-.886 3.112-.752 1.234.124 2.503.523 3.388.893v9.923c-.918-.35-2.107-.692-3.287-.81-1.094-.111-2.278-.039-3.213.492V2.687zM8 1.783C7.015.936 5.587.81 4.287.94c-1.514.153-3.042.672-3.994 1.105A.5.5 0 0 0 0 2.5v11a.5.5 0 0 0 .707.455c.882-.4 2.303-.881 3.68-1.02 1.409-.142 2.59.087 3.223.877a.5.5 0 0 0 .78 0c.633-.79 1.814-1.019 3.222-.877 1.378.139 2.8.62 3.681 1.02A.5.5 0 0 0 16 13.5v-11a.5.5 0 0 0-.293-.455c-.952-.433-2.48-.952-3.994-1.105C10.413.809 8.985.936 8 1.783z"
/>
d=
"M8.5 2.687c.654-.689 1.782-.886 3.112-.752 1.234.124 2.503.523 3.388.893v9.923c-.918-.35-2.107-.692-3.287-.81-1.094-.111-2.278-.039-3.213.492V2.687zM8 1.783C7.015.936 5.587.81 4.287.94c-1.514.153-3.042.672-3.994 1.105A.5.5 0 0 0 0 2.5v11a.5.5 0 0 0 .707.455c.882-.4 2.303-.881 3.68-1.02 1.409-.142 2.59.087 3.223.877a.5.5 0 0 0 .78 0c.633-.79 1.814-1.019 3.222-.877 1.378.139 2.8.62 3.681 1.02A.5.5 0 0 0 16 13.5v-11a.5.5 0 0 0-.293-.455c-.952-.433-2.48-.952-3.994-1.105C10.413.809 8.985.936 8 1.783z"
/>
</svg>
</svg>
P
A
D
PD
A
</a>
</a>
</li>
</li>
...
...
resources/views/layouts/user-navigation/navigation_teacher.blade.php
View file @
5bbc4c29
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
<
li
class
=
"nav-item"
>
<
li
class
=
"nav-item"
>
<
a
href
=
"{{ route('pad_index') }}"
class
=
"custom-nav-link {{
$pads_active
}}"
>
<
a
href
=
"{{ route('pad_index') }}"
class
=
"custom-nav-link {{
$pads_active
}}"
>
<
i
class
=
"bi bi-book-half"
></
i
>
<
i
class
=
"bi bi-book-half"
></
i
>
P
A
Ds
PD
A
s
</
a
>
</
a
>
</
li
>
</
li
>
</
ul
>
</
ul
>
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