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
fa1e374b
Commit
fa1e374b
authored
Dec 01, 2022
by
Azhan Hannan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Log Pia #141 -> → tambah section untuk TINDAKAN - utk case Kak Syamilah
parent
d0053dd4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
224 additions
and
5 deletions
+224
-5
packages/portal/timesheet/resources/views/dashboard/dashboardstaff.blade.php
+201
-3
packages/portal/timesheet/src/Http/Controllers/DashboardController.php
+23
-2
No files found.
packages/portal/timesheet/resources/views/dashboard/dashboardstaff.blade.php
View file @
fa1e374b
This diff is collapsed.
Click to expand it.
packages/portal/timesheet/src/Http/Controllers/DashboardController.php
View file @
fa1e374b
...
@@ -220,6 +220,27 @@ class DashboardController extends Controller
...
@@ -220,6 +220,27 @@ class DashboardController extends Controller
->
get
();
->
get
();
// dd($projects);
// dd($projects);
//verifier section
$verifier
=
Users
::
find
(
Auth
::
id
());
$profile
=
VwReviewProfile
::
where
(
'hod_id'
,
$verifier
->
id
)
->
whereIn
(
'status'
,
[
2
,
3
,
6
])
->
with
(
'overheads'
)
->
orderby
(
'tm_year'
,
'desc'
)
->
orderby
(
'tm_month'
,
'desc'
)
->
orderby
(
'tm_phase'
,
'desc'
)
->
get
();
// dd($profile);
$details
=
Tproject
::
where
(
'tp_project_type'
,
3
)
->
where
(
'tp_timesheet_sts'
,
'<>'
,
1
)
->
where
(
'tp_pm'
,
$verifier
->
id
)
->
with
(
'notes'
)
->
get
();
$checkts
=
Ts_master
::
whereIn
(
'tm_timesheet_master_sts'
,
[
2
,
3
,
6
])
->
with
(
'attachement'
)
->
get
();
$user
=
Users
::
where
(
'name'
,
'like'
,
'%'
.
$keyword
.
'%'
)
$user
=
Users
::
where
(
'name'
,
'like'
,
'%'
.
$keyword
.
'%'
)
->
orWhere
(
->
orWhere
(
function
(
$query
)
use
(
$keyword
)
{
function
(
$query
)
use
(
$keyword
)
{
...
@@ -227,7 +248,7 @@ class DashboardController extends Controller
...
@@ -227,7 +248,7 @@ class DashboardController extends Controller
}
}
)
->
paginate
(
15
);
)
->
paginate
(
15
);
return
view
(
'timesheet::dashboard.dashboardstaff'
,
compact
(
'user'
,
'timesheet'
,
'staffs'
,
'projects'
,
'roleid'
,
'staffinfo'
));
return
view
(
'timesheet::dashboard.dashboardstaff'
,
compact
(
'user'
,
'timesheet'
,
'staffs'
,
'projects'
,
'roleid'
,
'staffinfo'
,
'profile'
,
'details'
,
'checkts'
));
}
if
(
$roleid
==
'3'
)
{
}
if
(
$roleid
==
'3'
)
{
...
@@ -1005,7 +1026,7 @@ class DashboardController extends Controller
...
@@ -1005,7 +1026,7 @@ class DashboardController extends Controller
]);
]);
}
}
// if(data_get($request,'page') == 1){
// if(data_get($request,'page') == 1){
return
redirect
()
->
route
(
'timesheet::dashboard.index'
)
->
with
Error
s
(
'Staff overhead has been rejected'
);
return
redirect
()
->
route
(
'timesheet::dashboard.index'
)
->
with
Succes
s
(
'Staff overhead has been rejected'
);
// }
// }
// return redirect()->route('timesheet::dashboard.timesheetReview', compact('month', 'phase'))->withErrors('Staff overhead has been rejected');
// return redirect()->route('timesheet::dashboard.timesheetReview', compact('month', 'phase'))->withErrors('Staff overhead has been rejected');
}
}
...
...
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