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
1f45dbcd
Unverified
Commit
1f45dbcd
authored
May 05, 2022
by
GuilhermeGz
Committed by
GitHub
May 05, 2022
Browse files
Merge pull request #204 from GuilhermeGz/master
Alterações para ajuste de erro na página de relatórios
parents
fb053722
a12ff40b
Changes
1
Show whitespace changes
Inline
Side-by-side
app/Http/Controllers/ArquivoController.php
View file @
1f45dbcd
...
@@ -4,6 +4,7 @@ namespace App\Http\Controllers;
...
@@ -4,6 +4,7 @@ namespace App\Http\Controllers;
use
App\Arquivo
;
use
App\Arquivo
;
use
App\Notificacao
;
use
App\Notificacao
;
use
App\Trabalho
;
use
App\User
;
use
App\User
;
use
Auth
;
use
Auth
;
use
Illuminate\Support\Facades\Notification
;
use
Illuminate\Support\Facades\Notification
;
...
@@ -104,7 +105,12 @@ class ArquivoController extends Controller
...
@@ -104,7 +105,12 @@ class ArquivoController extends Controller
}
}
public
function
listar
(
$id
){
public
function
listar
(
$id
){
$arquivos
=
Arquivo
::
where
(
'trabalhoId'
,
$id
)
->
get
();
$trabalho
=
Trabalho
::
where
(
'id'
,
$id
)
->
first
();
$participantes
=
$trabalho
->
participantes
;
$arquivos
=
[];
foreach
(
$participantes
as
$participante
){
array_push
(
$arquivos
,
$participante
->
planoTrabalho
);
}
$hoje
=
Carbon
::
today
(
'America/Recife'
);
$hoje
=
Carbon
::
today
(
'America/Recife'
);
$hoje
=
$hoje
->
toDateString
();
$hoje
=
$hoje
->
toDateString
();
return
view
(
'planosTrabalho.listar'
)
->
with
([
'arquivos'
=>
$arquivos
,
'hoje'
=>
$hoje
]);
return
view
(
'planosTrabalho.listar'
)
->
with
([
'arquivos'
=>
$arquivos
,
'hoje'
=>
$hoje
]);
...
...
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