Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
3
3f-timesheet
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dockers
3f-timesheet
Commits
9116bbbd
Commit
9116bbbd
authored
Feb 22, 2023
by
Azhan Hannan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changes mail notification cron
parent
fce4b6f1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
72 additions
and
0 deletions
+72
-0
app/Console/Commands/Approval.php
+5
-0
resources/views/mail/content/ApprovalNotification.blade.php
+29
-0
resources/views/mail/content/VerificationNotification.blade.php
+38
-0
No files found.
app/Console/Commands/Approval.php
View file @
9116bbbd
...
...
@@ -3,6 +3,11 @@
namespace
App\Console\Commands
;
use
Illuminate\Console\Command
;
use
Portal\Timesheet\Model\Ts_master
;
use
Portal\Timesheet\Model\VwTpStatus
;
use
Portal\Timesheet\Model\VwPelulus
;
use
Mail
;
use
App\Mail\ApprovalNotification
;
class
Approval
extends
Command
{
...
...
resources/views/mail/content/ApprovalNotification.blade.php
0 → 100644
View file @
9116bbbd
@
component
(
'mail::message'
)
# Timesheet Approval
Assalamualaikum
w
.
b
.
t
Mr
/
Mrs
.
{
!!
ucwords
(
strtolower
(
$data_email
[
'name'
]))
!!
},
We
greatly
appreciate
your
help
to
approve
several
timesheets
as
stated
below
.
@
if
(
count
(
$projectstafflist
)
>
0
)
Timesheet
approval
:
<
br
>
@
foreach
(
$projectstafflist
as
$key
=>
$staff
)
-
{{
ucwords
(
strtolower
(
data_get
(
$staff
,
'staffdetails.fullname'
)))
}}
.
<
br
>
@
endforeach
@
endif
Your
cooperation
is
highly
appreciated
.
Thank
you
.
@
component
(
'mail::button'
,
[
'url'
=>
'https://timesheet.3fresources.com/home'
])
Etimesheet
@
endcomponent
---
<
br
>
<
i
>
This
is
an
auto
generated
message
,
please
do
not
reply
.</
i
>
@
endcomponent
resources/views/mail/content/VerificationNotification.blade.php
0 → 100644
View file @
9116bbbd
@
component
(
'mail::message'
)
# Timesheet Verification
Assalamualaikum
w
.
b
.
t
Mr
/
Mrs
.
{
!!
ucwords
(
strtolower
(
$data_email
[
'name'
]))
!!
},
We
greatly
appreciate
your
help
to
verify
several
timesheet
as
stated
below
.
@
if
(
count
(
$projectstafflist
)
>
0
)
Project
verification
:
<
br
>
@
foreach
(
$projectstafflist
as
$key
=>
$staff
)
-
{{
ucwords
(
strtolower
(
data_get
(
$staff
,
'staffdetails.fullname'
)))
}}
.
<
br
>
@
endforeach
@
endif
@
if
(
count
(
$overheadstafflist
)
>
0
)
Overhead
verification
:
<
br
>
@
foreach
(
$overheadstafflist
as
$key
=>
$staff
)
-
{{
ucwords
(
strtolower
(
data_get
(
$staff
,
'staffdetails.fullname'
)))
}}
.
<
br
>
@
endforeach
@
endif
Your
cooperation
is
highly
appreciated
.
Thank
you
.
@
component
(
'mail::button'
,
[
'url'
=>
'https://timesheet.3fresources.com/home'
])
Etimesheet
@
endcomponent
---
<
br
>
<
i
>
This
is
an
auto
generated
message
,
please
do
not
reply
.</
i
>
@
endcomponent
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