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
be9671a5
Commit
be9671a5
authored
Dec 23, 2022
by
Azhan Hannan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wirda submit -> en fairuz verify -> PD/BOD reject -> wirda resubmit --> tk dpat ke en fairuz
parent
1d548e96
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
6 deletions
+3
-6
packages/portal/timesheet/resources/views/dashboard/dashboardpmhod.blade.php
+2
-5
packages/portal/timesheet/src/Http/Controllers/DashboardController.php
+1
-1
No files found.
packages/portal/timesheet/resources/views/dashboard/dashboardpmhod.blade.php
View file @
be9671a5
@
extends
(
'ui::layouts.app'
)
@
extends
(
'ui::layouts.app'
)
@
section
(
'content'
)
@
section
(
'content'
)
<!--
Staff
Timesheet
Section
Start
-->
<!--
Staff
Timesheet
Section
Start
-->
<
div
class
="
ui
segment
">
<
div
class
="
ui
segment
">
<!-- <a class="
ui
blue
left
ribbon
label
">Welcome Back</a>
<!-- <a class="
ui
blue
left
ribbon
label
">Welcome Back</a>
...
@@ -289,8 +288,7 @@
...
@@ -289,8 +288,7 @@
<?php
<?php
$page
= 1;
$page
= 1;
$project
=
$checksts
= 0;
$project
=
$checksts
= 0;
$pmss
=
$profile->where
('dept', 4);
$pmss
=
$profile->where
('dept', 4)->where('staff_id', '<>',
$verifier->u_staffID
);
// dd(
$pmss
);
?>
?>
@if(
$pms
)
@if(
$pms
)
@foreach(
$pmss
as
$key
=>
$staff
)
@foreach(
$pmss
as
$key
=>
$staff
)
...
@@ -339,7 +337,7 @@
...
@@ -339,7 +337,7 @@
$allproject
= count(data_get(
$pmss[$key]
, 'countchargeable'));
$allproject
= count(data_get(
$pmss[$key]
, 'countchargeable'));
?>
?>
@if(
$status
== 1 ||
$status
== null) In Preparation
@if(
$status
== 1 ||
$status
== null) In Preparation
@elseif(
$verified
==
$allproject
) <i class="
green
check
icon
"></i> Verified by PM
@elseif(
$verified
==
$allproject
||
$status
== 3
) <i class="
green
check
icon
"></i> Verified by PM
@elseif(
$status
== 2) <i class="
red
attention
icon
"></i> Submitted
@elseif(
$status
== 2) <i class="
red
attention
icon
"></i> Submitted
@elseif(
$status
== 4) <i class="
green
check
icon
"></i>Verified by PD
@elseif(
$status
== 4) <i class="
green
check
icon
"></i>Verified by PD
@elseif(
$status
== 5) <i class="
red
attention
icon
"></i>Dissaproved by PD
@elseif(
$status
== 5) <i class="
red
attention
icon
"></i>Dissaproved by PD
...
@@ -480,7 +478,6 @@
...
@@ -480,7 +478,6 @@
@endif
@endif
</div>
</div>
@endif
@endif
@endforeach
@endforeach
@else
@else
<!-- <table class="
ui
unstackable
celled
table
">
<!-- <table class="
ui
unstackable
celled
table
">
...
...
packages/portal/timesheet/src/Http/Controllers/DashboardController.php
View file @
be9671a5
...
@@ -228,7 +228,7 @@ class DashboardController extends Controller
...
@@ -228,7 +228,7 @@ class DashboardController extends Controller
$profile
=
VwChargeableVerification
::
select
(
'tmid'
,
'staff_id'
,
'year'
,
'month'
,
'phase'
,
'status'
,
'submission'
,
'fullname'
,
'roleid'
,
'pmstaffid'
,
'dept'
)
$profile
=
VwChargeableVerification
::
select
(
'tmid'
,
'staff_id'
,
'year'
,
'month'
,
'phase'
,
'status'
,
'submission'
,
'fullname'
,
'roleid'
,
'pmstaffid'
,
'dept'
)
->
where
(
'pmstaffid'
,
$verifier
->
u_staffID
)
->
where
(
'pmstaffid'
,
$verifier
->
u_staffID
)
// ->where('status', '<>', 1)
// ->where('status', '<>', 1)
->
whereIn
(
'status'
,
[
2
,
6
])
->
whereIn
(
'status'
,
[
2
,
3
,
5
,
6
])
->
distinct
(
'staff_id'
)
->
distinct
(
'staff_id'
)
->
orderby
(
'roleid'
)
->
orderby
(
'roleid'
)
->
with
(
'countchargeable'
)
->
with
(
'countchargeable'
)
...
...
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