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
efc95cd6
"resources/views/vscode:/vscode.git/clone" did not exist on "f4625df290ed18ede360dda197ee4b8a729be8da"
Commit
efc95cd6
authored
Jul 04, 2022
by
GuilhermeGz
Browse files
Retirada do envio de emails para administradores
parent
a1ef52cb
Changes
2
Show whitespace changes
Inline
Side-by-side
app/Http/Controllers/ArquivoController.php
View file @
efc95cd6
...
@@ -149,21 +149,6 @@ class ArquivoController extends Controller
...
@@ -149,21 +149,6 @@ class ArquivoController extends Controller
$notificacao
->
save
();
$notificacao
->
save
();
Notification
::
send
(
$userTemp
,
new
RelatorioRecebimentoNotification
(
$arquivo
->
trabalho
->
id
,
$userTemp
,
Notification
::
send
(
$userTemp
,
new
RelatorioRecebimentoNotification
(
$arquivo
->
trabalho
->
id
,
$userTemp
,
$arquivo
->
trabalho
->
evento
->
nome
,
$arquivo
->
trabalho
->
titulo
,
'Parcial'
));
$arquivo
->
trabalho
->
evento
->
nome
,
$arquivo
->
trabalho
->
titulo
,
'Parcial'
));
//Admins
$admins
=
Administrador
::
all
();
foreach
(
$admins
as
$admin
)
{
$userTemp
=
User
::
find
(
$admin
->
user_id
);
$notificacao
=
Notificacao
::
create
([
'remetente_id'
=>
Auth
::
user
()
->
id
,
'destinatario_id'
=>
$admin
->
user_id
,
'trabalho_id'
=>
$arquivo
->
trabalho
->
id
,
'lido'
=>
false
,
'tipo'
=>
3
,
]);
$notificacao
->
save
();
Notification
::
send
(
$userTemp
,
new
RelatorioRecebimentoNotification
(
$arquivo
->
trabalho
->
id
,
$userTemp
,
$arquivo
->
trabalho
->
evento
->
nome
,
$arquivo
->
trabalho
->
titulo
,
'Parcial'
));
}
}
}
if
(
$request
->
relatorioFinal
!=
null
)
{
if
(
$request
->
relatorioFinal
!=
null
)
{
...
@@ -180,21 +165,6 @@ class ArquivoController extends Controller
...
@@ -180,21 +165,6 @@ class ArquivoController extends Controller
$notificacao
->
save
();
$notificacao
->
save
();
Notification
::
send
(
$userTemp
,
new
RelatorioRecebimentoNotification
(
$arquivo
->
trabalho
->
id
,
$userTemp
,
Notification
::
send
(
$userTemp
,
new
RelatorioRecebimentoNotification
(
$arquivo
->
trabalho
->
id
,
$userTemp
,
$arquivo
->
trabalho
->
evento
->
nome
,
$arquivo
->
trabalho
->
titulo
,
'Final'
));
$arquivo
->
trabalho
->
evento
->
nome
,
$arquivo
->
trabalho
->
titulo
,
'Final'
));
//Admins
$admins
=
Administrador
::
all
();
foreach
(
$admins
as
$admin
)
{
$userTemp
=
User
::
find
(
$admin
->
user_id
);
$notificacao
=
Notificacao
::
create
([
'remetente_id'
=>
Auth
::
user
()
->
id
,
'destinatario_id'
=>
$admin
->
user_id
,
'trabalho_id'
=>
$arquivo
->
trabalho
->
id
,
'lido'
=>
false
,
'tipo'
=>
4
,
]);
$notificacao
->
save
();
Notification
::
send
(
$userTemp
,
new
RelatorioRecebimentoNotification
(
$arquivo
->
trabalho
->
id
,
$userTemp
,
$arquivo
->
trabalho
->
evento
->
nome
,
$arquivo
->
trabalho
->
titulo
,
'Final'
));
}
}
}
$arquivo
->
save
();
$arquivo
->
save
();
return
redirect
(
route
(
'planos.listar'
,
[
'id'
=>
$request
->
projId
]))
->
with
([
'sucesso'
=>
"Relatório enviado com sucesso"
]);
return
redirect
(
route
(
'planos.listar'
,
[
'id'
=>
$request
->
projId
]))
->
with
([
'sucesso'
=>
"Relatório enviado com sucesso"
]);
...
...
app/Http/Controllers/TrabalhoController.php
View file @
efc95cd6
...
@@ -1122,21 +1122,6 @@ class TrabalhoController extends Controller
...
@@ -1122,21 +1122,6 @@ class TrabalhoController extends Controller
]);
]);
$notificacao
->
save
();
$notificacao
->
save
();
Notification
::
send
(
Auth
::
user
(),
new
SubmissaoNotification
(
$trabalho
->
id
,
$trabalho
->
titulo
));
Notification
::
send
(
Auth
::
user
(),
new
SubmissaoNotification
(
$trabalho
->
id
,
$trabalho
->
titulo
));
//Admins
$admins
=
App\Administrador
::
all
();
foreach
(
$admins
as
$admin
)
{
$userTemp
=
User
::
find
(
$admin
->
user_id
);
$notificacao
=
App\Notificacao
::
create
([
'remetente_id'
=>
Auth
::
user
()
->
id
,
'destinatario_id'
=>
$admin
->
user_id
,
'trabalho_id'
=>
$trabalho
->
id
,
'lido'
=>
false
,
'tipo'
=>
1
,
]);
$notificacao
->
save
();
Notification
::
send
(
$userTemp
,
new
SubmissaoRecebidaNotification
(
$trabalho
->
id
,
$trabalho
->
titulo
,
$userTemp
));
}
return
redirect
(
route
(
'proponente.projetos'
))
->
with
([
'mensagem'
=>
'Proposta submetida!'
]);
return
redirect
(
route
(
'proponente.projetos'
))
->
with
([
'mensagem'
=>
'Proposta submetida!'
]);
...
...
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