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
7242f654
Commit
7242f654
authored
Jul 20, 2022
by
S-Nathalia
Browse files
Adição de data nos emails enviados para o proponente
parent
f67eb964
Changes
3
Show whitespace changes
Inline
Side-by-side
app/Http/Controllers/TrabalhoController.php
View file @
7242f654
...
@@ -987,8 +987,6 @@ class TrabalhoController extends Controller
...
@@ -987,8 +987,6 @@ class TrabalhoController extends Controller
}
}
}
}
DB
::
commit
();
DB
::
commit
();
if
(
!
$request
->
has
(
'rascunho'
))
{
if
(
!
$request
->
has
(
'rascunho'
))
{
Notification
::
send
(
Auth
::
user
(),
new
SubmissaoNotification
(
$id
,
$trabalho
->
titulo
));
Notification
::
send
(
Auth
::
user
(),
new
SubmissaoNotification
(
$id
,
$trabalho
->
titulo
));
...
@@ -1476,6 +1474,8 @@ class TrabalhoController extends Controller
...
@@ -1476,6 +1474,8 @@ class TrabalhoController extends Controller
}
}
$subject
=
"Participante de Projeto"
;
$subject
=
"Participante de Projeto"
;
$time
=
Carbon
::
today
(
'America/Recife'
);
$time
=
$time
->
isoFormat
(
'às H:mm, dddd, D/M/YYYY'
);
Mail
::
to
(
$email
)
Mail
::
to
(
$email
)
->
send
(
new
SubmissaoTrabalho
(
$userParticipante
,
$subject
,
$edital
,
$projeto
));
->
send
(
new
SubmissaoTrabalho
(
$userParticipante
,
$subject
,
$edital
,
$projeto
));
...
...
app/Notifications/SubmissaoNotification.php
View file @
7242f654
...
@@ -50,7 +50,8 @@ class SubmissaoNotification extends Notification
...
@@ -50,7 +50,8 @@ class SubmissaoNotification extends Notification
return
(
new
MailMessage
)
return
(
new
MailMessage
)
->
subject
(
'Sistema Submeta - Submissão de proposta / projeto'
)
->
subject
(
'Sistema Submeta - Submissão de proposta / projeto'
)
->
greeting
(
"Saudações!"
)
->
greeting
(
"Saudações!"
)
->
line
(
"O sistema Submeta recebeu o envio de sua proposta / projeto intitulada(o)
{
$this
->
titulo
}
."
)
->
line
(
"O sistema Submeta recebeu o envio de sua proposta / projeto intitulada(o)
{
$this
->
titulo
}
\n\n
."
)
->
line
(
"
{
$this
->
data
}
"
)
->
action
(
'Acessar Proposta'
,
$this
->
url
)
->
action
(
'Acessar Proposta'
,
$this
->
url
)
->
markdown
(
'vendor.notifications.email'
);
->
markdown
(
'vendor.notifications.email'
);
}
}
...
...
app/Notifications/SubmissaoRecebidaNotification.php
View file @
7242f654
...
@@ -51,6 +51,7 @@ class SubmissaoRecebidaNotification extends Notification
...
@@ -51,6 +51,7 @@ class SubmissaoRecebidaNotification extends Notification
->
subject
(
'Sistema Submeta - Submissão de proposta / projeto'
)
->
subject
(
'Sistema Submeta - Submissão de proposta / projeto'
)
->
greeting
(
"Saudações!"
)
->
greeting
(
"Saudações!"
)
->
line
(
"O sistema Submeta recebeu o envio de sua proposta / projeto intitulada(o)
{
$this
->
titulo
}
."
)
->
line
(
"O sistema Submeta recebeu o envio de sua proposta / projeto intitulada(o)
{
$this
->
titulo
}
."
)
->
line
(
"
{
$this
->
data
}
"
)
->
action
(
'Acessar Formulário'
,
$this
->
url
)
->
action
(
'Acessar Formulário'
,
$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