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
submeta
Commits
7b97025b
Commit
7b97025b
authored
Jun 08, 2020
by
Gabriel-31415
Browse files
contador de projetos de avaliador
parent
113509a2
Changes
3
Hide whitespace changes
Inline
Side-by-side
app/Http/Controllers/TrabalhoController.php
View file @
7b97025b
...
...
@@ -79,7 +79,7 @@ class TrabalhoController extends Controller
//Relaciona o projeto criado com o proponente que criou o projeto
$proponente
=
Proponente
::
where
(
'user_id'
,
Auth
::
user
()
->
id
)
->
first
();
//$trabalho->proponentes()->save($proponente);
//dd($coordenador
->id
);
//dd($coordenador);
$trabalho
=
"trabalho"
;
if
(
$evento
->
inicioSubmissao
>
$mytime
){
if
(
$mytime
>=
$evento
->
fimSubmissao
){
...
...
resources/views/administrador/projetos.blade.php
View file @
7b97025b
...
...
@@ -25,7 +25,7 @@
</
h2
>
</
div
>
<
div
id
=
"collapseOne{{
$trabalho->id
}}"
class
=
"collapse "
aria
-
labelledby
=
"headingOne"
data
-
parent
=
"#accordionExample"
>
<
div
id
=
"collapseOne{{
$trabalho->id
}}"
class
=
"collapse
@if(
$trabalhos->first
() ==
$trabalho
) show @endif
"
aria
-
labelledby
=
"headingOne"
data
-
parent
=
"#accordionExample"
>
<
div
class
=
"card-body"
>
<
table
class
=
"table table-bordered"
>
<
thead
>
...
...
resources/views/administrador/selecionarProjetos.blade.php
View file @
7b97025b
...
...
@@ -101,7 +101,7 @@
<
tbody
>
@
foreach
(
$avaliadores
as
$avaliador
)
@
php
$contador
=
0
;
@
endphp
@
foreach
(
$avaliador
->
trabalhos
as
$trabalho
)
@
foreach
(
$avaliador
->
trabalhos
->
where
(
'evento_id'
,
$evento
->
id
)
as
$trabalho
)
@
if
(
$trabalho
->
pivot
->
status
==
true
)
@
php
$contador
++
;
@
endphp
@
endif
...
...
@@ -109,7 +109,7 @@
<
tr
>
<
td
>
{{
$avaliador
->
user
->
name
}}
</
td
>
<
td
>
{{
$avaliador
->
user
->
email
}}
</
td
>
<
td
>
{{
$contador
}}
/
{{
$avaliador
->
trabalhos
->
count
()
}}
</
td
>
<
td
>
{{
$contador
}}
/
{{
$avaliador
->
trabalhos
->
where
(
'evento_id'
,
$evento
->
id
)
->
count
()
}}
</
td
>
<
td
style
=
"text-align:center"
>
...
</
td
>
</
tr
>
@
endforeach
...
...
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