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
fe4aa415
Commit
fe4aa415
authored
Jun 04, 2020
by
Gabriel-31415
Browse files
ajuste em parecer
parent
415f066b
Changes
2
Show whitespace changes
Inline
Side-by-side
app/Http/Controllers/AvaliadorController.php
View file @
fe4aa415
...
@@ -36,11 +36,20 @@ class AvaliadorController extends Controller
...
@@ -36,11 +36,20 @@ class AvaliadorController extends Controller
$trabalhos
=
Auth
::
user
()
->
avaliadors
->
first
()
->
trabalhos
;
$trabalhos
=
Auth
::
user
()
->
avaliadors
->
first
()
->
trabalhos
;
$avaliador
=
Auth
::
user
()
->
avaliadors
->
first
();
$avaliador
=
Auth
::
user
()
->
avaliadors
->
first
();
$trabalho
=
$avaliador
->
trabalhos
->
find
(
1
);
$trabalho
=
$avaliador
->
trabalhos
->
find
(
$request
->
trabalho_id
);
$avaliador
->
trabalhos
()
->
updateExistingPivot
(
$trabalho
->
id
,
if
(
$request
->
anexoParecer
==
''
){
[
'status'
=>
1
,
$avaliador
->
trabalhos
()
->
updateExistingPivot
(
$trabalho
->
id
,[
'status'
=>
1
,
'parecer'
=>
$request
->
textParecer
]);
}
else
{
$avaliador
->
trabalhos
()
->
updateExistingPivot
(
$trabalho
->
id
,[
'status'
=>
1
,
'parecer'
=>
$request
->
textParecer
,
'parecer'
=>
$request
->
textParecer
,
'AnexoParecer'
=>
$request
->
anexoParecer
]);
'AnexoParecer'
=>
$request
->
anexoParecer
]);
}
// dd($trabalho);
// dd($trabalho);
...
...
resources/views/avaliador/parecer.blade.php
View file @
fe4aa415
...
@@ -23,14 +23,14 @@
...
@@ -23,14 +23,14 @@
<
input
type
=
"file"
class
=
"form-control-file"
id
=
"exampleFormControlFile1"
name
=
"anexoParecer"
>
<
input
type
=
"file"
class
=
"form-control-file"
id
=
"exampleFormControlFile1"
name
=
"anexoParecer"
>
@
else
@
else
<
label
for
=
"exampleFormControlFile1"
>
Atualizar
arquivo
do
Parece
r
?</
label
>
<
br
>
<
label
for
=
"exampleFormControlFile1"
>
Já
existe
um
arquivo
,
quer
atualiza
r
?</
label
>
<
br
>
<
label
for
=
"exampleFormControlFile1"
>
Arquivo
:
{{
$trabalho
->
pivot
->
AnexoParecer
}}
</
label
>
<
input
type
=
"file"
class
=
"form-control-file"
id
=
"exampleFormControlFile1"
name
=
"anexoParecer"
>
<
input
type
=
"file"
class
=
"form-control-file"
id
=
"exampleFormControlFile1"
name
=
"anexoParecer"
>
@
endif
@
endif
</
div
>
</
div
>
<
button
type
=
"submit"
class
=
"btn btn-primary"
>
Enviar
</
button
>
<
button
type
=
"submit"
class
=
"btn btn-primary"
>
Enviar
</
button
>
<
a
href
=
"
{
{
url()->previous()
}
}
"
class
=
"btn btn-danger"
>
Cancelar
</
a
>
<
a
href
=
"{{
route('avaliador.visualizarTrabalho')
}}"
class
=
"btn btn-danger"
>
Cancelar
</
a
>
</
form
>
</
form
>
</
div
>
</
div
>
...
...
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