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
52e25770
Commit
52e25770
authored
Dec 01, 2022
by
Azhan Hannan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Log Pia #164 -> ISU: Wirda tak dapat tindakan unuk resubmit
parent
d04f1c6d
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
2 deletions
+26
-2
packages/portal/timesheet/resources/views/dashboard/dashboardpm.blade.php
+0
-0
packages/portal/timesheet/src/Http/Controllers/DashboardController.php
+26
-2
No files found.
packages/portal/timesheet/resources/views/dashboard/dashboardpm.blade.php
View file @
52e25770
This diff is collapsed.
Click to expand it.
packages/portal/timesheet/src/Http/Controllers/DashboardController.php
View file @
52e25770
...
@@ -61,7 +61,7 @@ class DashboardController extends Controller
...
@@ -61,7 +61,7 @@ class DashboardController extends Controller
$verifier
=
Users
::
find
(
Auth
::
id
());
$verifier
=
Users
::
find
(
Auth
::
id
());
$profile
=
VwReviewProfile
::
where
(
'hod_id'
,
$verifier
->
id
)
$profile
=
VwReviewProfile
::
where
(
'hod_id'
,
$verifier
->
id
)
->
where
In
(
'status'
,
[
2
,
3
,
6
]
)
->
where
(
'status'
,
2
)
->
with
(
'overheads'
)
->
with
(
'overheads'
)
->
orderby
(
'tm_year'
,
'desc'
)
->
orderby
(
'tm_year'
,
'desc'
)
->
orderby
(
'tm_month'
,
'desc'
)
->
orderby
(
'tm_month'
,
'desc'
)
...
@@ -160,6 +160,10 @@ class DashboardController extends Controller
...
@@ -160,6 +160,10 @@ class DashboardController extends Controller
if
(
$roleid
==
'8'
)
{
if
(
$roleid
==
'8'
)
{
$staffinfo
=
Staff_info
::
where
(
'id'
,
Auth
::
id
())
->
with
(
'pelulus'
)
->
first
();
$verifier
=
Users
::
find
(
Auth
::
id
());
$verifier
=
Users
::
find
(
Auth
::
id
());
$profile
=
VwChargeableVerification
::
select
(
'tmid'
,
'staff_id'
,
'year'
,
'month'
,
'phase'
,
'status'
,
'submission'
,
'fullname'
,
'roleid'
,
'pmstaffid'
)
$profile
=
VwChargeableVerification
::
select
(
'tmid'
,
'staff_id'
,
'year'
,
'month'
,
'phase'
,
'status'
,
'submission'
,
'fullname'
,
'roleid'
,
'pmstaffid'
)
...
@@ -181,7 +185,27 @@ class DashboardController extends Controller
...
@@ -181,7 +185,27 @@ class DashboardController extends Controller
->
with
(
'pm'
)
->
with
(
'pm'
)
->
get
();
->
get
();
return
view
(
'timesheet::dashboard.dashboardpm'
,
compact
(
'profile'
,
'details'
,
'verifier'
));
//timesheet status
$staffid
=
Users
::
find
(
Auth
::
id
())
->
u_staffID
;
$timesheet
=
Ts_master
::
where
(
'tm_staff_id'
,
$staffid
)
->
where
(
'tm_timesheet_master_sts'
,
'<>'
,
1
)
->
orderby
(
'tm_year'
)
->
orderby
(
'tm_month'
,
'DESC'
)
->
orderby
(
'tm_phase'
,
'DESC'
)
->
get
();
$projects
=
Tproject
::
where
(
'staffid'
,
$staffid
)
->
where
(
'tp_year'
,
date
(
'Y'
))
->
where
(
'tp_timesheet_sts'
,
'<>'
,
1
)
->
with
(
'project'
)
->
with
(
'overhead'
)
->
with
(
'hod'
)
->
with
(
'bod'
)
->
get
();
return
view
(
'timesheet::dashboard.dashboardpm'
,
compact
(
'profile'
,
'details'
,
'verifier'
,
'timesheet'
,
'projects'
,
'staffinfo'
));
}
}
if
(
$roleid
==
'9'
)
{
if
(
$roleid
==
'9'
)
{
...
...
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