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
247dba46
"resources/views/vscode:/vscode.git/clone" did not exist on "2b4b2c0e725becf5fd6d838caff488ec5a114835"
Commit
247dba46
authored
May 05, 2022
by
Guilherme Silva
Browse files
Ajuste na passagem de dados para página de relatório
parent
a1491dc6
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/Http/Controllers/ArquivoController.php
View file @
247dba46
...
@@ -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