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
65ee201a
Commit
65ee201a
authored
Feb 16, 2023
by
Lucas Henrique
Browse files
Modificando Notificação de atribuição de avaliador externo
parent
9e516a3d
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/Notifications/AtribuicaoAvaliadorExternoNotification.php
View file @
65ee201a
...
@@ -18,7 +18,7 @@ class AtribuicaoAvaliadorExternoNotification extends Notification
...
@@ -18,7 +18,7 @@ class AtribuicaoAvaliadorExternoNotification extends Notification
*
*
* @return void
* @return void
*/
*/
public
function
__construct
(
$usuario
,
$trabalho
,
$arquivo
,
$tipoAval
)
public
function
__construct
(
$usuario
,
$trabalho
,
$arquivo
,
$tipoAval
,
$avaliacao
)
{
{
$this
->
data
=
date
(
'd/m/Y \à\s H:i\h'
,
strtotime
(
now
()));
$this
->
data
=
date
(
'd/m/Y \à\s H:i\h'
,
strtotime
(
now
()));
$url
=
'/avaliador/editais'
;
$url
=
'/avaliador/editais'
;
...
@@ -28,6 +28,7 @@ class AtribuicaoAvaliadorExternoNotification extends Notification
...
@@ -28,6 +28,7 @@ class AtribuicaoAvaliadorExternoNotification extends Notification
$this
->
trabalho
=
$trabalho
;
$this
->
trabalho
=
$trabalho
;
$this
->
arquivo
=
$arquivo
;
$this
->
arquivo
=
$arquivo
;
$this
->
tipoAval
=
$tipoAval
;
$this
->
tipoAval
=
$tipoAval
;
$this
->
avaliacao
=
$avaliacao
;
}
}
/**
/**
...
@@ -50,13 +51,12 @@ class AtribuicaoAvaliadorExternoNotification extends Notification
...
@@ -50,13 +51,12 @@ class AtribuicaoAvaliadorExternoNotification extends Notification
* @return \Illuminate\Notifications\Messages\MailMessage
* @return \Illuminate\Notifications\Messages\MailMessage
*/
*/
public
function
toMail
(
$notifiable
)
public
function
toMail
(
$notifiable
)
{
{
if
(
$this
->
tipoAval
==
2
)
{
if
(
$this
->
tipoAval
==
2
||
$this
->
avaliacao
!=
"form"
)
{
return
(
new
MailMessage
())
return
(
new
MailMessage
())
->
subject
(
'Convite para avaliar proposta de projeto - Sistema Submeta'
)
->
subject
(
'Convite para avaliar proposta de projeto - Sistema Submeta'
)
->
greeting
(
'Saudações!'
)
->
greeting
(
'Saudações!'
)
->
line
(
"Prezado/a avaliador/a, você foi convidado/a a avaliar a proposta de projeto intitulada
{
$this
->
titulo
}
."
)
->
line
(
"Prezado/a avaliador/a, você foi convidado/a a avaliar a proposta de projeto intitulada
{
$this
->
titulo
}
."
)
->
line
(
'Aproveitamos para enviar, em anexo, o formulário de avaliação que deverá ser anexado ao sistema Submeta com o seu parecer.'
)
// ->line("Seção de Editais e Apoios a Projetos - PREC/UFAPE")
// ->line("Seção de Editais e Apoios a Projetos - PREC/UFAPE")
->
action
(
'Acessar'
,
$this
->
url
)
->
action
(
'Acessar'
,
$this
->
url
)
->
markdown
(
'vendor.notifications.email'
);
->
markdown
(
'vendor.notifications.email'
);
...
...
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