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
9ade3445
Commit
9ade3445
authored
Dec 20, 2022
by
Azhan Hannan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changes
parent
7b789b9d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
3 deletions
+18
-3
packages/portal/timesheet/resources/views/form/rejected.blade.php
+7
-0
packages/portal/timesheet/src/Http/Controllers/DashboardController.php
+2
-0
packages/portal/timesheet/src/Http/Controllers/FormController.php
+9
-3
No files found.
packages/portal/timesheet/resources/views/form/rejected.blade.php
View file @
9ade3445
...
@@ -4,6 +4,12 @@
...
@@ -4,6 +4,12 @@
<div
class=
"ui segment"
>
<div
class=
"ui segment"
>
<a
class=
"ui blue left ribbon label"
>
Rejected Project
</a>
<a
class=
"ui blue left ribbon label"
>
Rejected Project
</a>
<?php
// dd($profile);
?>
<a
class=
"ui right floated center compact aligned right orange button"
href=
"{{ route('timesheet::dashboard.timesheetViewer', [ 'user'=>data_get($profile,'staffid') ,'phase' => data_get($profile,'tp_phase'), 'month' => data_get($profile,'tp_month'), 'year' => data_get($profile,'tp_year')]) }}"
target=
"_blank"
>
View Timesheet
</a>
<div
class=
"ui right floated center compact aligned basic right button"
>
<div
class=
"ui right floated center compact aligned basic right button"
>
<div
class=
"header item"
style=
"color: #000000;"
>
<div
class=
"header item"
style=
"color: #000000;"
>
<strong>
<strong>
...
@@ -12,6 +18,7 @@
...
@@ -12,6 +18,7 @@
</div>
</div>
</div>
</div>
<br>
<br>
<br>
<br>
...
...
packages/portal/timesheet/src/Http/Controllers/DashboardController.php
View file @
9ade3445
...
@@ -1375,6 +1375,8 @@ class DashboardController extends Controller
...
@@ -1375,6 +1375,8 @@ class DashboardController extends Controller
public
function
timesheetViewer
(
Request
$request
)
public
function
timesheetViewer
(
Request
$request
)
{
{
// dd($request->month);
$curruser
=
$user
=
Staff_info
::
where
(
'fk_users'
,
Auth
::
id
())
$curruser
=
$user
=
Staff_info
::
where
(
'fk_users'
,
Auth
::
id
())
->
first
();
->
first
();
...
...
packages/portal/timesheet/src/Http/Controllers/FormController.php
View file @
9ade3445
...
@@ -2392,6 +2392,7 @@ class FormController extends Controller
...
@@ -2392,6 +2392,7 @@ class FormController extends Controller
Ts_master
::
where
(
'id'
,
$tmasterid
)
Ts_master
::
where
(
'id'
,
$tmasterid
)
->
update
([
->
update
([
'tm_timesheet_master_sts'
=>
3
,
'tm_timesheet_master_sts'
=>
3
,
'tm_verified_at'
=>
today
()
->
toDateString
(),
]);
]);
}
}
return
redirect
()
->
route
(
'timesheet::dashboard.index'
)
->
withSuccess
(
'Timesheet project has been resubmit. Waiting for Project Director approval.'
);
return
redirect
()
->
route
(
'timesheet::dashboard.index'
)
->
withSuccess
(
'Timesheet project has been resubmit. Waiting for Project Director approval.'
);
...
@@ -2792,20 +2793,25 @@ class FormController extends Controller
...
@@ -2792,20 +2793,25 @@ class FormController extends Controller
->
update
([
->
update
([
'tp_timesheet_sts'
=>
3
,
'tp_timesheet_sts'
=>
3
,
'verifier_remark'
=>
'Verified'
,
'verifier_remark'
=>
'Verified'
,
'tp_verified_at'
=>
today
()
->
toDateString
()
]
);
]
);
}
}
else
else
{
{
Ts_master
::
where
(
'id'
,
$request
->
fk_tm_id
)
Ts_master
::
where
(
'id'
,
$request
->
fk_tm_id
)
->
update
([
'tm_timesheet_master_sts'
=>
3
]);
->
update
([
'tm_timesheet_master_sts'
=>
3
,
'tm_verified_at'
=>
today
()
->
toDateString
(),
]);
Ts_detail
::
where
(
'fk_tm_id'
,
$request
->
fk_tm_id
)
Ts_detail
::
where
(
'fk_tm_id'
,
$request
->
fk_tm_id
)
->
update
([
'td_timesheet_sts'
=>
3
]);
->
update
([
'td_timesheet_sts'
=>
3
]);
Tproject
::
where
(
'fk_tm_id'
,
$request
->
fk_tm_id
)
Tproject
::
where
(
'fk_tm_id'
,
$request
->
fk_tm_id
)
->
update
([
->
update
([
'tp_timesheet_sts'
=>
3
,
'tp_timesheet_sts'
=>
3
,
'verifier_remark'
=>
'Verified'
,
'verifier_remark'
=>
'Auto-verified'
,
'tp_verified_at'
=>
today
()
->
toDateString
()
]
);
]
);
}
}
...
...
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