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
908583fb
Commit
908583fb
authored
Sep 19, 2022
by
hannan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
filter notes data in timesheet review and approval, permission to verify and approve
parent
c8ce83fb
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
packages/portal/timesheet/resources/views/dashboard/timesheetReview.blade.php
+1
-1
packages/portal/timesheet/src/Http/Controllers/DashboardController.php
+8
-2
No files found.
packages/portal/timesheet/resources/views/dashboard/timesheetReview.blade.php
View file @
908583fb
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
@endif
@endif
</th>
</th>
<th class="
right
aligned
">
<th class="
right
aligned
">
@if(
$staff->status
< 3
)
@if(
$staff->status
== 2
)
<button class="
center
aligned
ui
green
icon
button
" onclick="
window
.
location
.
href
=
'{{ route('
timesheet
::
dashboard
.
revaction
', [ '
tmid
'=>$staff->tmid ]) }}'
;
">Verify | Reject</button>
<button class="
center
aligned
ui
green
icon
button
" onclick="
window
.
location
.
href
=
'{{ route('
timesheet
::
dashboard
.
revaction
', [ '
tmid
'=>$staff->tmid ]) }}'
;
">Verify | Reject</button>
@else
@else
<!-- <button class="
center
aligned
ui
green
icon
button
disabled
">Approve | Reject</button> -->
<!-- <button class="
center
aligned
ui
green
icon
button
disabled
">Approve | Reject</button> -->
...
...
packages/portal/timesheet/src/Http/Controllers/DashboardController.php
View file @
908583fb
...
@@ -176,6 +176,8 @@ class DashboardController extends Controller
...
@@ -176,6 +176,8 @@ class DashboardController extends Controller
$profile
=
VwReviewProfile
::
where
(
'bod_id'
,
$approval
->
id
)
$profile
=
VwReviewProfile
::
where
(
'bod_id'
,
$approval
->
id
)
->
where
(
'tm_year'
,
$curryear
)
->
where
(
'tm_year'
,
$curryear
)
->
where
(
'tm_month'
,
$month
)
->
where
(
'tm_phase'
,
$phase
)
->
get
();
->
get
();
$staffs
=
Staff_info
::
where
(
'pelulus'
,
$approval
->
id
)
$staffs
=
Staff_info
::
where
(
'pelulus'
,
$approval
->
id
)
...
@@ -187,6 +189,7 @@ class DashboardController extends Controller
...
@@ -187,6 +189,7 @@ class DashboardController extends Controller
->
where
(
'tm_phase'
,
$request
->
phase
)
->
where
(
'tm_phase'
,
$request
->
phase
)
->
with
(
'attachement'
)
->
with
(
'attachement'
)
->
get
();
->
get
();
// dd($checkts);
$details
=
VwReviewDetails
::
where
(
'year'
,
$curryear
)
$details
=
VwReviewDetails
::
where
(
'year'
,
$curryear
)
->
where
(
'month'
,
$request
->
month
)
->
where
(
'month'
,
$request
->
month
)
...
@@ -198,8 +201,9 @@ class DashboardController extends Controller
...
@@ -198,8 +201,9 @@ class DashboardController extends Controller
->
where
(
'tm_month'
,
$request
->
month
)
->
where
(
'tm_month'
,
$request
->
month
)
->
where
(
'tm_phase'
,
$request
->
phase
)
->
where
(
'tm_phase'
,
$request
->
phase
)
->
where
(
'td_hours'
,
"<>"
,
0
)
->
where
(
'td_hours'
,
"<>"
,
0
)
->
orwhereNotNull
(
'td_overhead_note'
)
//
->orwhereNotNull('td_overhead_note')
->
get
();
->
get
();
// dd($checktd);
return
view
(
'timesheet::dashboard.timesheetApproval'
,
compact
(
'profile'
,
'staffs'
,
'details'
,
'checkts'
,
'checktd'
,
'year'
,
'month'
,
'phase'
));
return
view
(
'timesheet::dashboard.timesheetApproval'
,
compact
(
'profile'
,
'staffs'
,
'details'
,
'checkts'
,
'checktd'
,
'year'
,
'month'
,
'phase'
));
}
}
...
@@ -237,6 +241,8 @@ class DashboardController extends Controller
...
@@ -237,6 +241,8 @@ class DashboardController extends Controller
$profile
=
VwReviewProfile
::
where
(
'hod_id'
,
$verifier
->
id
)
$profile
=
VwReviewProfile
::
where
(
'hod_id'
,
$verifier
->
id
)
->
where
(
'tm_year'
,
$curryear
)
->
where
(
'tm_year'
,
$curryear
)
->
where
(
'tm_month'
,
$month
)
->
where
(
'tm_phase'
,
$phase
)
->
get
();
->
get
();
$staffs
=
Staff_info
::
where
(
'penyokong'
,
$verifier
->
id
)
$staffs
=
Staff_info
::
where
(
'penyokong'
,
$verifier
->
id
)
...
@@ -259,7 +265,7 @@ class DashboardController extends Controller
...
@@ -259,7 +265,7 @@ class DashboardController extends Controller
->
where
(
'tm_month'
,
$request
->
month
)
->
where
(
'tm_month'
,
$request
->
month
)
->
where
(
'tm_phase'
,
$request
->
phase
)
->
where
(
'tm_phase'
,
$request
->
phase
)
->
where
(
'td_hours'
,
"<>"
,
0
)
->
where
(
'td_hours'
,
"<>"
,
0
)
->
orwhereNotNull
(
'td_overhead_note'
)
//
->orwhereNotNull('td_overhead_note')
->
get
();
->
get
();
return
view
(
'timesheet::dashboard.timesheetReview'
,
compact
(
'profile'
,
'staffs'
,
'details'
,
'checkts'
,
'checktd'
,
'year'
,
'month'
,
'phase'
));
return
view
(
'timesheet::dashboard.timesheetReview'
,
compact
(
'profile'
,
'staffs'
,
'details'
,
'checkts'
,
'checktd'
,
'year'
,
'month'
,
'phase'
));
...
...
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