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
a9ba2973
Commit
a9ba2973
authored
Oct 28, 2022
by
Abraão Barbosa
Browse files
Starting avaluation page
parent
52ec4090
Changes
19
Hide whitespace changes
Inline
Side-by-side
app/Http/Controllers/AvaliadorController.php
View file @
a9ba2973
<?php
namespace
App\Http\Controllers
;
use
App\Http\Controllers\Controller
;
use
App\Models\User
;
use
App\Models\Curso
;
use
App\Models\Util\MenuItemsAvaliador
;
use
Illuminate\Http\Request
;
use
Illuminate\Support\Facades\Hash
;
class
AvaliadorController
extends
Controller
{
...
...
@@ -14,7 +17,20 @@ class AvaliadorController extends Controller
*/
public
function
index
()
{
// $professores = User::where('type', '=', User::->isTypeTeacher())->get();
return
view
(
'pad.avaliacao.index'
,
[
'index_menu'
=>
MenuItemsAvaliador
::
PADs
,
'professores'
=>
null
]);
}
public
function
avaliar
()
{
// $professores = User::where('type', '=', User::->isTypeTeacher())->get();
return
view
(
'pad.avaliacao.dimensao.ensino'
,
[
'index_menu'
=>
MenuItemsAvaliador
::
PADs
,
'user_pad_id'
=>
1
]);
}
/**
...
...
app/Http/Controllers/DashboardController.php
View file @
a9ba2973
...
...
@@ -45,6 +45,17 @@ class DashboardController extends Controller
return
view
(
'dashboard'
,
[
'PADs'
=>
PAD
::
all
(),
'menu_index'
=>
0
]);
}
if
(
$user
->
isTypeEvaluator
())
{
$userPads
=
UserPad
::
initQuery
()
->
whereUser
(
$user
->
id
)
->
wherePadStatus
(
Status
::
ATIVO
)
->
get
();
return
view
(
'dashboard'
,
[
'userPads'
=>
$userPads
,
'menu_index'
=>
MenuItemsTeacher
::
HOME
]);
}
//return redirect()->route('login');
}
}
app/Models/User.php
View file @
a9ba2973
...
...
@@ -137,6 +137,14 @@ class User extends Authenticatable
return
$this
->
perfilSelected
()
->
type
===
UserType
::
COORDINATOR
;
}
/**
* @return bool
*/
public
function
isTypeEvaluator
()
{
return
$this
->
perfilSelected
()
->
type
===
UserType
::
EVALUATOR
;
}
public
static
function
initQuery
()
{
return
new
UserQuery
(
get_called_class
());
...
...
app/Models/UserType.php
View file @
a9ba2973
...
...
@@ -13,6 +13,7 @@ class UserType extends Model
const
TEACHER
=
2
;
// Professor
const
DIRECTOR
=
3
;
// Diretor
const
COORDINATOR
=
4
;
// Coordenador
const
EVALUATOR
=
5
;
// Avaliador
protected
$table
=
'user_type'
;
...
...
@@ -43,11 +44,11 @@ class UserType extends Model
$values
=
[
self
::
ADMIN
=>
'Administrador'
,
self
::
TEACHER
=>
'Professor'
,
self
::
DIRECTOR
=>
'Diretor'
,
self
::
DIRECTOR
=>
'Diretor'
,
self
::
COORDINATOR
=>
'Coordenador'
,
self
::
EVALUATOR
=>
'Evaluator'
,
];
return
$value
!==
null
?
$values
[
$value
]
:
$values
;
}
}
app/Models/Util/MenuItemsAvaliador.php
0 → 100644
View file @
a9ba2973
<?php
namespace
App\Models\Util
;
class
MenuItemsAvaliador
{
const
HOME
=
0
;
const
PADs
=
1
;
}
resources/views/components/buttons/btn-aprovar.blade.php
0 → 100644
View file @
a9ba2973
{{
--
@
include
(
'components.buttons.btn-create'
,
[
'id'
=>
''
,
'route'
=>
''
,
'content'
=>
''
])
--
}}
<
a
class
=
"btn btn-primary"
href
=
"
{
{$route}
}
"
id
=
"
{
{$id}
}
"
>
{{
--
<
i
class
=
"bi bi-plus-circle"
></
i
>
--
}}
{{
$content
}}
</
a
>
resources/views/components/buttons/btn-avaliar.blade.php
0 → 100644
View file @
a9ba2973
{{
--
@
include
(
'components.buttons.btn-create'
,
[
'id'
=>
''
,
'route'
=>
''
,
'content'
=>
''
])
--
}}
<
a
class
=
"btn btn-success"
href
=
"
{
{$route}
}
"
id
=
"
{
{$id}
}
"
>
{{
--
<
i
class
=
"bi bi-plus-circle"
></
i
>
--
}}
{{
$content
}}
</
a
>
resources/views/components/buttons/btn-reprovar.blade.php
0 → 100644
View file @
a9ba2973
{{
--
@
include
(
'components.buttons.btn-create'
,
[
'id'
=>
''
,
'route'
=>
''
,
'content'
=>
''
])
--
}}
<
a
class
=
"btn btn-outline-danger"
href
=
"
{
{$route}
}
"
id
=
"
{
{$id}
}
"
>
{{
--
<
i
class
=
"bi bi-plus-circle"
></
i
>
--
}}
{{
$content
}}
</
a
>
resources/views/dashboard.blade.php
View file @
a9ba2973
...
...
@@ -17,6 +17,10 @@
@if(Auth::user()->isTypeCoordinator())
@include('layouts.user-dashboard.dashboard_coordinator')
@endif
@if(Auth::user()->isTypeEvaluator())
@include('layouts.user-dashboard.dashboard_avaliador', ['user' => Auth::user()])
@endif
</div>
</x-slot>
</x-app-layout>
resources/views/layouts/navigation.blade.php
View file @
a9ba2973
...
...
@@ -33,4 +33,9 @@
@include('layouts.user-navigation.navigation_coordinator')
@endif
<!-- SidebarMenu : Avaliador -->
@if (Auth::user()->isTypeEvaluator())
@include('layouts.user-navigation.navigation_avaliador')
@endif
</nav>
resources/views/layouts/user-dashboard/dashboard_avaliador.blade.php
0 → 100644
View file @
a9ba2973
<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"
>
<h1
class=
"h2"
>
Bem Vindo ao PAD
</h1>
</div>
<div
class=
"d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3"
>
<h3>
<i
class=
"bi bi-exclamation-octagon-fill"
></i>
Atividades pendentes do Avaliador
</h3>
</div>
<div
class=
"d-flex"
>
@foreach($userPads as $userPad)
<div
class=
"card mx-2"
style=
"width: 12rem;"
>
<div
class=
"card-body"
>
<h3
class=
"text-center"
>
<i
class=
"bi bi-book-half"
></i>
</h3>
<h5
class=
"text-center"
>
PAD: {{ $userPad->pad->nome }}
</h4>
<h5
class=
"text-center"
>
Status: {{ $userPad->pad->statusAsString() }}
</h4>
<a
class=
"stretched-link"
href=
"{{ route('pad_view', ['id' => $userPad->id]) }}"
></a>
</div>
</div>
@endforeach
</div>
</div>
<div
class=
"tab-pane"
id=
"pad"
role=
"tabpanel"
aria-labelledby=
"pad-tab"
>
<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"
>
<h1
class=
"h2"
>
Dimenções-PAD
</h1>
</div>
<div
class=
"d-flex justify-content-start "
>
<div
class=
"card text-center"
style=
"width: 18rem;"
>
<div
class=
"card-body"
>
<h5
class=
"card-title"
>
Special title treatment
</h5>
<p
class=
"card-text"
>
With supporting text below as a natural lead-in to additional content.
</p>
<a
href=
"#"
class=
"btn btn-primary"
>
Go somewhere
</a>
</div>
</div>
<div
class=
"card text-center"
style=
"width: 18rem;"
>
<div
class=
"card-body"
>
<h5
class=
"card-title"
>
Special title treatment
</h5>
<p
class=
"card-text"
>
With supporting text below as a natural lead-in to additional content.
</p>
</div>
</div>
<div
class=
"card text-center"
style=
"width: 18rem;"
>
<div
class=
"card-body"
>
<h5
class=
"card-title"
>
Special title treatment
</h5>
<p
class=
"card-text"
>
With supporting text below as a natural lead-in to additional content.
</p>
<a
href=
"#"
class=
"btn btn-primary"
>
Go somewhere
</a>
</div>
</div>
</div>
</div>
resources/views/layouts/user-navigation/navigation_avaliador.blade.php
0 → 100644
View file @
a9ba2973
<!-- Botoes link lista vertical sidebarMenu -->
<ul
class=
"nav flex-column nav-pills"
id=
"myTab"
role=
"tablist"
aria-orientation=
"vertical"
>
<li
class=
"nav-item"
>
<a
class=
"custom-nav-link {{ ((!empty($index_menu) ? $index_menu : 0) == 0? "
active
"
:
"")
}}"
href=
"{{ route('dashboard') }}"
aria-selected=
"true"
>
<svg
xmlns=
"http://www.w3.org/2000/svg"
width=
"16"
height=
"16"
fill=
"currentColor"
class=
"bi bi-house-fill"
viewBox=
"0 0 16 16"
>
<path
fill-rule=
"evenodd"
d=
"m8 3.293 6 6V13.5a1.5 1.5 0 0 1-1.5 1.5h-9A1.5 1.5 0 0 1 2 13.5V9.293l6-6zm5-.793V6l-2-2V2.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5z"
/>
<path
fill-rule=
"evenodd"
d=
"M7.293 1.5a1 1 0 0 1 1.414 0l6.647 6.646a.5.5 0 0 1-.708.708L8 2.207 1.354 8.854a.5.5 0 1 1-.708-.708L7.293 1.5z"
/>
</svg>
Home
</a>
</li>
<li
class=
"nav-item"
>
<a
class=
"custom-nav-link {{ ((!empty($index_menu) ? $index_menu : 0) == 1? "
active
"
:
"")
}}"
id=
"pad-tab"
href=
"{{ route('avaliador_index') }}"
aria-controls=
"pad"
aria-selected=
"false"
>
<svg
xmlns=
"http://www.w3.org/2000/svg"
width=
"16"
height=
"16"
fill=
"currentColor"
class=
"bi bi-book-half"
viewBox=
"0 0 16 16"
>
<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"
/>
</svg>
PADs
</a>
</li>
<li
class=
"nav-item"
>
<a
class=
"custom-nav-link"
id=
"update-perfil-tab"
data-toggle=
"tab"
href=
"#update-perfil"
role=
"tab"
aria-controls=
"update-perfil"
aria-selected=
"true"
>
<!-- Update Perfil - Hidden -->
</a>
</li>
</ul>
resources/views/pad/avaliacao/dimensao/ensino.blade.php
0 → 100644
View file @
a9ba2973
@
extends
(
'layouts.main'
)
@
section
(
'title'
,
'Ensino'
)
@
section
(
'header'
)
@
include
(
'layouts.header'
,
[
'user'
=>
Auth
::
user
(),
])
@
endsection
@
section
(
'nav'
)
@
include
(
'layouts.navigation'
,
[
'index_menu'
=>
$index_menu
,
])
@
endsection
@
section
(
'body'
)
<
div
class
=
"container"
>
<
h3
>
Professor
1
-
Ensino
</
h3
>
<
div
class
=
"card"
>
<
h5
class
=
"card-header"
>
Cód
.
Atividade
-
1
-
A
</
h5
>
<
div
class
=
"card-body"
>
<
span
class
=
"fw-bold "
>
Componente
Curricular
:
</
span
><
span
class
=
"card-text"
>
Programação
II
</
span
><
br
>
<
span
class
=
"fw-bold "
>
Curso
:
</
span
><
span
class
=
"card-text"
>
Computação
</
span
><
br
>
<
span
class
=
"fw-bold "
>
Nível
:
</
span
><
span
class
=
"card-text"
>
Pós
-
graduação
Stricto
Sensu
</
span
><
br
>
<
span
class
=
"fw-bold "
>
Modalidade
:
</
span
><
span
class
=
"card-text"
>
Presencial
</
span
><
br
>
<
span
class
=
"fw-bold "
>
Resolução
:
</
span
><
span
class
=
"card-text"
>
Aula
na
graduação
e
/
ou
pós
-
graduação
stricto
sensu
</
span
><
br
>
<
span
class
=
"fw-bold "
>
CH
.
Semanal
:
</
span
><
span
class
=
"card-text"
>
6
horas
</
span
><
br
>
<
div
style
=
"width: 100%; "
class
=
"btns-avaliar mt-5 d-flex justify-content-end"
>
@
include
(
'components.buttons.btn-reprovar'
,
[
'route'
=>
route
(
'avaliador_avaliar'
),
'class'
=>
''
,
'content'
=>
'Reprovar'
,
'id'
=>
''
,
])
<
span
>&
nbsp
;
&
nbsp
;
</
span
>
@
include
(
'components.buttons.btn-aprovar'
,
[
'route'
=>
route
(
'avaliador_avaliar'
),
'class'
=>
'ml-2'
,
'content'
=>
'Aprovar'
,
'id'
=>
''
,
])
</
div
>
</
div
>
</
div
>
<
div
class
=
"card mt-3"
>
<
h5
class
=
"card-header"
>
Cód
.
Atividade
-
1
-
B
</
h5
>
<
div
class
=
"card-body"
>
<
span
class
=
"fw-bold "
>
Componente
Curricular
:
</
span
><
span
class
=
"card-text"
>
Computação
Gráfica
</
span
><
br
>
<
span
class
=
"fw-bold "
>
Curso
:
</
span
><
span
class
=
"card-text"
>
Computação
</
span
><
br
>
<
span
class
=
"fw-bold "
>
Nível
:
</
span
><
span
class
=
"card-text"
>
Pós
-
graduação
Stricto
Sensu
</
span
><
br
>
<
span
class
=
"fw-bold "
>
Modalidade
:
</
span
><
span
class
=
"card-text"
>
Presencial
</
span
><
br
>
<
span
class
=
"fw-bold "
>
Resolução
:
</
span
><
span
class
=
"card-text"
>
Aula
na
graduação
e
/
ou
pós
-
graduação
stricto
sensu
</
span
><
br
>
<
span
class
=
"fw-bold "
>
CH
.
Semanal
:
</
span
><
span
class
=
"card-text"
>
4
horas
</
span
><
br
>
<
div
style
=
"width: 100%; "
class
=
"btns-avaliar mt-5 d-flex justify-content-end"
>
@
include
(
'components.buttons.btn-reprovar'
,
[
'route'
=>
route
(
'avaliador_avaliar'
),
'class'
=>
''
,
'content'
=>
'Reprovar'
,
'id'
=>
''
,
])
<
span
>&
nbsp
;
&
nbsp
;
</
span
>
@
include
(
'components.buttons.btn-aprovar'
,
[
'route'
=>
route
(
'avaliador_avaliar'
),
'class'
=>
'ml-2'
,
'content'
=>
'Aprovar'
,
'id'
=>
''
,
])
</
div
>
</
div
>
</
div
>
</
div
>
@
endsection
resources/views/pad/avaliacao/dimensao/extensao.blade.php
0 → 100644
View file @
a9ba2973
extensao
\ No newline at end of file
resources/views/pad/avaliacao/dimensao/gestao.blade.php
0 → 100644
View file @
a9ba2973
gestao
\ No newline at end of file
resources/views/pad/avaliacao/dimensao/pesquisa.blade.php
0 → 100644
View file @
a9ba2973
@
extends
(
'layouts.main'
)
@
section
(
'title'
,
'Pesquisa'
)
@
section
(
'header'
)
@
include
(
'layouts.header'
,
[
'user'
=>
Auth
::
user
(),
])
@
endsection
@
section
(
'nav'
)
@
include
(
'layouts.navigation'
,
[
'index_menu'
=>
$index_menu
,
])
@
endsection
@
section
(
'body'
)
<
div
class
=
"container"
>
@
include
(
'pad.components.templates.dropdown-eixo'
,
[
'divs'
=>
$divs
])
@
include
(
'components.alerts'
)
@
include
(
'pad.components.templates.dimensao.pesquisa.coordenacao.form_create'
,
[
'user_pad_id'
=>
$user_pad_id
])
@
include
(
'pad.components.templates.dimensao.pesquisa.lideranca.form_create'
,
[
'user_pad_id'
=>
$user_pad_id
])
@
include
(
'pad.components.templates.dimensao.pesquisa.orientacao.form_create'
,
[
'user_pad_id'
=>
$user_pad_id
])
@
include
(
'components.modal'
,
[
'size'
=>
'modal-lg'
])
</
div
>
@
endsection
@
section
(
'scripts'
)
@
include
(
'pad.components.scripts.dropdown-eixo'
,
[
'divs'
=>
$divs
])
@
include
(
'pad.components.scripts.dimensao.pesquisa.general'
)
@
include
(
'pad.components.scripts.dimensao.pesquisa.coordenacao'
)
@
endsection
resources/views/pad/avaliacao/index.blade.php
View file @
a9ba2973
...
...
@@ -15,12 +15,7 @@
@
include
(
'components.alerts'
)
<
div
class
=
"d-flex justify-content-between align-items-center border-bottom"
>
<
h2
class
=
""
>
PADs
</
h2
>
@
include
(
'components.buttons.btn-create'
,
[
'route'
=>
route
(
'campus_create'
),
'class'
=>
''
,
'content'
=>
'Novo Campus'
,
'id'
=>
''
,
])
</
div
>
<!--
Tabela
-->
...
...
@@ -28,13 +23,223 @@
<
table
class
=
"table table-hover table-striped"
>
<
thead
class
=
"thead-dark"
>
<
tr
>
<
th
scope
=
"col"
>
Nome
</
th
>
<
th
scope
=
"col"
>
Unidade
</
th
>
<
th
scope
=
"col"
>
A
ções
</
th
>
<
th
scope
=
"col"
>
Professor
</
th
>
<
th
scope
=
"col"
>
Dimensão
</
th
>
<
th
scope
=
"col"
>
Op
ções
</
th
>
</
tr
>
</
thead
>
<
tbody
>
<
tr
>
<
td
>
Professor
1
</
td
>
<
td
>
Ensino
</
td
>
<
td
>
@
include
(
'components.buttons.btn-avaliar'
,
[
'route'
=>
route
(
'avaliador_avaliar'
),
'class'
=>
''
,
'content'
=>
'Avaliar'
,
'id'
=>
''
,
])
</
td
>
</
tr
>
<
tr
>
<
td
>
Professor
2
</
td
>
<
td
>
Ensino
</
td
>
<
td
>
@
include
(
'components.buttons.btn-avaliar'
,
[
'route'
=>
route
(
'avaliador_avaliar'
),
'class'
=>
''
,
'content'
=>
'Avaliar'
,
'id'
=>
''
,
])
</
td
>
</
tr
>
<
tr
>
<
td
>
Professor
3
</
td
>
<
td
>
Ensino
</
td
>
<
td
>
@
include
(
'components.buttons.btn-avaliar'
,
[
'route'
=>
route
(
'avaliador_avaliar'
),
'class'
=>
''
,
'content'
=>
'Avaliar'
,
'id'
=>
''
,
])
</
td
>
</
tr
>
<
tr
>
<
td
>
Professor
4
</
td
>
<
td
>
Ensino
</
td
>
<
td
>
@
include
(
'components.buttons.btn-avaliar'
,
[
'route'
=>
route
(
'avaliador_avaliar'
),
'class'
=>
''
,
'content'
=>
'Avaliar'
,
'id'
=>
''
,
])
</
td
>
</
tr
>
<
tr
>
<
td
>
Professor
5
</
td
>
<
td
>
Ensino
</
td
>
<
td
>
@
include
(
'components.buttons.btn-avaliar'
,
[
'route'
=>
route
(
'avaliador_avaliar'
),
'class'
=>
''
,
'content'
=>
'Avaliar'
,
'id'
=>
''
,
])
</
td
>
</
tr
>
<
tr
>
<
td
>
Professor
6
</
td
>
<
td
>
Ensino
</
td
>
<
td
>
@
include
(
'components.buttons.btn-avaliar'
,
[
'route'
=>
route
(
'avaliador_avaliar'
),
'class'
=>
''
,
'content'
=>
'Avaliar'
,
'id'
=>
''
,
])
</
td
>
</
tr
>
<
tr
>
<
td
>
Professor
7
</
td
>
<
td
>
Ensino
</
td
>
<
td
>
@
include
(
'components.buttons.btn-avaliar'
,
[
'route'
=>
route
(
'avaliador_avaliar'
),
'class'
=>
''
,
'content'
=>
'Avaliar'
,
'id'
=>
''
,
])
</
td
>
</
tr
>
<
tr
>
<
td
>
Professor
8
</
td
>
<
td
>
Ensino
</
td
>
<
td
>
@
include
(
'components.buttons.btn-avaliar'
,
[
'route'
=>
route
(
'avaliador_avaliar'
),
'class'
=>
''
,
'content'
=>
'Avaliar'
,
'id'
=>
''
,
])
</
td
>
</
tr
>
<
tr
>
<
td
>
Professor
9
</
td
>
<
td
>
Ensino
</
td
>
<
td
>
@
include
(
'components.buttons.btn-avaliar'
,
[
'route'
=>
route
(
'avaliador_avaliar'
),
'class'
=>
''
,
'content'
=>
'Avaliar'
,
'id'
=>
''
,
])
</
td
>
</
tr
>
<
tr
>
<
td
>
Professor
10
</
td
>
<
td
>
Ensino
</
td
>
<
td
>
@
include
(
'components.buttons.btn-avaliar'
,
[
'route'
=>
route
(
'avaliador_avaliar'
),
'class'
=>
''
,
'content'
=>
'Avaliar'
,
'id'
=>
''
,
])
</
td
>
</
tr
>
<
tr
>
<
td
>
Professor
11
</
td
>
<
td
>
Ensino
</
td
>
<
td
>
@
include
(
'components.buttons.btn-avaliar'
,
[
'route'
=>
route
(
'avaliador_avaliar'
),
'class'
=>
''
,
'content'
=>
'Avaliar'
,
'id'
=>
''
,
])
</
td
>
</
tr
>
<
tr
>
<
td
>
Professor
12
</
td
>
<
td
>
Ensino
</
td
>
<
td
>
@
include
(
'components.buttons.btn-avaliar'
,
[
'route'
=>
route
(
'avaliador_avaliar'
),
'class'
=>
''
,
'content'
=>
'Avaliar'
,
'id'
=>
''
,
])
</
td
>
</
tr
>
<
tr
>
<
td
>
Professor
13
</
td
>
<
td
>
Ensino
</
td
>
<
td
>
@
include
(
'components.buttons.btn-avaliar'
,
[
'route'
=>
route
(
'avaliador_avaliar'
),
'class'
=>
''
,
'content'
=>
'Avaliar'
,
'id'
=>
''
,
])
</
td
>
</
tr
>
<
tr
>
<
td
>
Professor
14
</
td
>
<
td
>
Ensino
</
td
>
<
td
>
@
include
(
'components.buttons.btn-avaliar'
,
[
'route'
=>
route
(
'avaliador_avaliar'
),
'class'
=>
''
,
'content'
=>
'Avaliar'
,
'id'
=>
''
,
])
</
td
>
</
tr
>
<
tr
>
<
td
>
Professor
17
</
td
>
<
td
>
Ensino
</
td
>
<
td
>
@
include
(
'components.buttons.btn-avaliar'
,
[
'route'
=>
route
(
'avaliador_avaliar'
),
'class'
=>
''
,
'content'
=>
'Avaliar'
,
'id'
=>
''
,
])
</
td
>
</
tr
>
{{
--
@
foreach
(
$campus
as
$camp
)
<
tr
>
<
td
>
{{
$camp
->
name
}}
</
td
>
...
...
resources/views/pad/avaliacao/view.blade.php
0 → 100644
View file @
a9ba2973
@
extends
(
'layouts.main'
)
@
php
use
App\Models\Tabelas\Constants
;
@
endphp
@
section
(
'title'
,
'Unidade'
)
@
section
(
'header'
)
@
include
(
'layouts.header'
,
[
'user'
=>
Auth
::
user
(),
])
@
endsection
@
section
(
'nav'
)
@
include
(
'layouts.navigation'
,
[
'index_menu'
=>
$index_menu
,
])
@
endsection
@
section
(
'body'
)
<
div
class
=
"d-flex"
>
<
div
class
=
"card mx-2"
style
=
"width: 10rem;"
>
<
div
class
=
"card-body"
>
<
h2
class
=
"text-center"
>
<
i
class
=
"bi bi-mortarboard-fill"
></
i
>
</
h2
>
<
h3
class
=
"text-center"
>
Ensino
</
h3
>
<
a
class
=
"stretched-link"
href
=
"{{ route('dimensao_ensino', ['user_pad_id' =>
$user_pad_id
]) }}"
class
=
"btn-pad-dimensao"
></
a
>
</
div
>
</
div
>
<
div
class
=
"card mx-2"
style
=
"width: 10rem;"
>
<
div
class
=
"card-body"
>
<
h2
class
=
"text-center"
>
<
i
class
=
"bi bi-search"
></
i
>
</
h2
>
<
h3
class
=
"text-center"
>
Pesquisa
</
h3
>
<
a
class
=
"stretched-link"
href
=
"{{ route('dimensao_pesquisa', ['user_pad_id' =>
$user_pad_id
]) }}"
class
=
"btn-pad-dimensao"
></
a
>
</
div
>
</
div
>
<
div
class
=
"card mx-2"
style
=
"width: 10rem;"
>
<
div
class
=
"card-body"
>
<
h2
class
=
"text-center"
>
<
i
class
=
"bi bi-clipboard-data-fill"
></
i
>
</
h2
>
<
h3
class
=
"text-center"
>
Extensão
</
h3
>
<
a
class
=
"stretched-link"
href
=
"{{ route('dimensao_extensao', ['user_pad_id' =>
$user_pad_id
]) }}"
class
=
"btn-pad-dimensao"
></
a
>
</
div
>
</
div
>
<
div
class
=
"card mx-2"
style
=
"width: 10rem;"
>
<
div
class
=
"card-body"
>
<
h2
class
=
"text-center"
>
<
i
class
=
"bi bi-people-fill"
></
i
>
</
h2
>
<
h3
class
=
"text-center"
>
Gestão
</
h3
>
<
a
class
=
"stretched-link"
href
=
"{{ route('dimensao_gestao', ['user_pad_id' =>
$user_pad_id
]) }}"
class
=
"btn-pad-dimensao"
></
a
>
</
div
>
</
div
>
<
div
class
=
"card mx-2"
style
=
"width: 10rem;"
>
<
div
class
=
"card-body"
>
<
h2
class
=
"text-center"
>
<
i
class
=
"bi bi-file-earmark-text-fill"
></
i
>
</
h2
>
<
h3
class
=
"text-center"
>
Anexo
</
h3
>
<
a
class
=
"stretched-link"
href
=
"{{-- route('') --}}"
class
=
"btn-pad-dimensao"
></
a
>
</
div
>
</
div
>
</
div
>
@
endsection
routes/web.php
View file @
a9ba2973
...
...
@@ -114,6 +114,7 @@ Route::prefix('/professor')->group(function () {
Route
::
prefix
(
'/avaliador'
)
->
group
(
function
()
{
Route
::
get
(
'/index'
,
[
AvaliadorController
::
class
,
'index'
])
->
name
(
'avaliador_index'
);
Route
::
get
(
'/avaliar'
,
[
AvaliadorController
::
class
,
'avaliar'
])
->
name
(
'avaliador_avaliar'
);
Route
::
get
(
'/create'
,
[
AvaliadorController
::
class
,
'create'
])
->
name
(
'avaliador_create'
);
Route
::
post
(
'/store'
,
[
AvaliadorController
::
class
,
'store'
])
->
name
(
'avaliador_store'
);
Route
::
get
(
'/edit/{id}'
,
[
AvaliadorController
::
class
,
'edit'
])
->
name
(
'avaliador_edit'
);
...
...
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