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
a3fabee3
Commit
a3fabee3
authored
Jan 10, 2023
by
Azhan Hannan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
edit project -> mail ke bod
parent
9202bc15
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
17 deletions
+26
-17
packages/portal/timesheet/src/Http/Controllers/MaintenanceController.php
+26
-17
No files found.
packages/portal/timesheet/src/Http/Controllers/MaintenanceController.php
View file @
a3fabee3
...
...
@@ -328,8 +328,8 @@ class MaintenanceController extends Controller
'status'
=>
data_get
(
$project
,
'p_project_sts'
),
'editor'
=>
ucwords
(
data_get
(
$project
,
'editor.fullname'
)),
];
//
Mail::to($mailTo)->send(new EditProject($data_email, $old_data));
return
new
EditProject
(
$data_email
,
$old_data
);
Mail
::
to
(
$mailTo
)
->
send
(
new
EditProject
(
$data_email
,
$old_data
));
//
return new EditProject($data_email, $old_data);
// email end
...
...
@@ -775,6 +775,11 @@ class MaintenanceController extends Controller
->
with
(
'editor'
)
->
first
();
$project
=
Project
::
where
(
'id'
,
$pid
)
->
with
(
'projectDirector'
)
->
first
();
// dd(data_get($project,'projectDirector.email'));
if
(
env
(
'EMAIL_ENV'
)
==
'local'
)
{
$mailTo
=
'143hannan@gmail.com'
;
...
...
@@ -800,7 +805,6 @@ class MaintenanceController extends Controller
'role'
=>
data_get
(
$team
,
'toRole.role'
),
'teamstatus'
=>
data_get
(
$team
,
'pt_project_task_sts'
),
'editor'
=>
data_get
(
$team
,
'editor.fullname'
),
];
// dd($mailTo);
...
...
@@ -1166,21 +1170,26 @@ class MaintenanceController extends Controller
// $currmonth = 1;
// $curryear = 2022;
if
(
$currday
>
15
)
{
$checkphase
=
1
;
$checkyear
=
$curryear
;
$checkmonth
=
$currmonth
;
}
else
{
$checkphase
=
2
;
$checkmonth
=
$currmonth
-
1
;
$checkyear
=
$curryear
;
if
(
$currmonth
==
1
&&
$checkphase
==
1
)
{
$checkmonth
=
12
;
$checkyear
=
$curryear
-
1
;
if
(
$currday
>
15
)
{
$checkphase
=
1
;
$checkyear
=
$curryear
;
$checkmonth
=
$currmonth
;
}
else
{
$checkphase
=
2
;
if
(
$currmonth
==
1
)
{
$checkmonth
=
12
;
$checkyear
=
$curryear
-
1
;
}
else
{
$checkmonth
=
$currmonth
-
1
;
$checkyear
=
$curryear
;
}
}
}
$timesheets
=
Ts_master
::
select
(
'tm_staff_id'
)
->
where
(
'tm_year'
,
$checkyear
)
...
...
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