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
8f726ed6
Commit
8f726ed6
authored
Dec 01, 2022
by
Azhan Hannan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Log Pia #163 -> ISU: EN fairuz tak dapat tindakan unuk resubmit
parent
52e25770
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
4 deletions
+29
-4
packages/portal/timesheet/resources/views/dashboard/dashboardpmhod.blade.php
+0
-0
packages/portal/timesheet/src/Http/Controllers/DashboardController.php
+29
-4
No files found.
packages/portal/timesheet/resources/views/dashboard/dashboardpmhod.blade.php
View file @
8f726ed6
This diff is collapsed.
Click to expand it.
packages/portal/timesheet/src/Http/Controllers/DashboardController.php
View file @
8f726ed6
...
...
@@ -160,9 +160,6 @@ class DashboardController extends Controller
if
(
$roleid
==
'8'
)
{
$staffinfo
=
Staff_info
::
where
(
'id'
,
Auth
::
id
())
->
with
(
'pelulus'
)
->
first
();
$verifier
=
Users
::
find
(
Auth
::
id
());
...
...
@@ -186,6 +183,10 @@ class DashboardController extends Controller
->
get
();
//timesheet status
$staffinfo
=
Staff_info
::
where
(
'id'
,
Auth
::
id
())
->
with
(
'pelulus'
)
->
first
();
$staffid
=
Users
::
find
(
Auth
::
id
())
->
u_staffID
;
...
...
@@ -235,7 +236,31 @@ class DashboardController extends Controller
->
get
();
// dd($overheads);
return
view
(
'timesheet::dashboard.dashboardpmhod'
,
compact
(
'profile'
,
'details'
,
'verifier'
,
'overheads'
));
//timesheet status
$staffinfo
=
Staff_info
::
where
(
'id'
,
Auth
::
id
())
->
with
(
'pelulus'
)
->
first
();
$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.dashboardpmhod'
,
compact
(
'profile'
,
'details'
,
'verifier'
,
'overheads'
,
'staffinfo'
,
'timesheet'
,
'projects'
));
}
if
((
$roleid
==
(
'5'
||
'6'
)))
{
...
...
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