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
dcfc483c
Commit
dcfc483c
authored
Oct 12, 2022
by
Azhan Hannan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
put hod name in dashboard staff
parent
5c217edb
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
46 additions
and
17 deletions
+46
-17
packages/portal/timesheet/resources/views/dashboard/dashboardstaff.blade.php
+45
-17
packages/portal/timesheet/src/Http/Controllers/DashboardController.php
+1
-0
No files found.
packages/portal/timesheet/resources/views/dashboard/dashboardstaff.blade.php
View file @
dcfc483c
...
@@ -117,10 +117,11 @@
...
@@ -117,10 +117,11 @@
<table class="
ui
unstackable
celled
table
">
<table class="
ui
unstackable
celled
table
">
<thead>
<thead>
<tr>
<tr>
<th style="
width
:
10
%
;
">Project Code</th>
<th style="
width
:
7
%
;
" class="
text
-
center
">Project Code</th>
<th style="
width
:
15
;
">Project Name</th>
<th style="
width
:
13
;
">Project Name</th>
<th style="
width
:
5
%
;
" class="
center
aligned
">Total Hours</th>
<th style="
width
:
15
;
">Project Manager</th>
<th style="
width
:
5
%
;
" class="
center
aligned
">Total Days</th>
<!-- <th style="
width
:
5
%
;
" class="
center
aligned
">Total Hours</th>
<th style="
width
:
5
%
;
" class="
center
aligned
">Total Days</th> -->
<th style="
width
:
20
%
">PM Remarks</th>
<th style="
width
:
20
%
">PM Remarks</th>
<th style="
width
:
20
%
">PD Remarks</th>
<th style="
width
:
20
%
">PD Remarks</th>
<th style="
width
:
13
%
" class="
text
-
center
">Status</th>
<th style="
width
:
13
%
" class="
text
-
center
">Status</th>
...
@@ -129,20 +130,33 @@
...
@@ -129,20 +130,33 @@
</thead>
</thead>
@if(count(
$chargeable
) == '0')
@if(count(
$chargeable
) == '0')
<tr>
<tr>
<td class="
text
-
center
" colspan="
7
">No Project Submitted</td>
<td class="
text
-
center
" colspan="
5
">No Project Submitted</td>
</tr>
</tr>
@else
@else
@foreach(
$chargeable
as
$key
=>
$tpcharge
)
@foreach(
$chargeable
as
$key
=>
$tpcharge
)
<tr>
<tr>
<td style="
width
:
10
%
;
">
{
{data_get($tpcharge,'project.p_project_code')}
}
</td>
<td style="
width
:
7
%
;
" class="
text
-
center
">
{
{data_get($tpcharge,'project.p_project_code')}
}
</td>
<td style="
width
:
15
;
">
{
{data_get($tpcharge,'project.p_project_description')}
}
</td>
<td style="
width
:
13
;
">
{
{data_get($tpcharge,'project.p_project_description')}
}
</td>
<td style="
width
:
5
%
;
" class="
center
aligned
">
{
{data_get($tpcharge,'tp_hours')}
}
</td>
<td style="
width
:
15
;
">
{
{data_get($tpcharge,'project.projectManager.fullname')}
}
</td>
<td style="
width
:
5
%
;
" class="
center
aligned
">
{
{data_get($tpcharge,'tp_hours')/8}
}
</td>
<!-- <td style="
width
:
5
%
;
" class="
center
aligned
">
{
{data_get($tpcharge,'tp_hours')}
}
</td>
<td style="
width
:
5
%
;
" class="
center
aligned
">
{
{data_get($tpcharge,'tp_hours')/8}
}
</td> -->
<td style="
width
:
20
%
">
{
{data_get($tpcharge,'verifier_remark')}
}
</td>
<td style="
width
:
20
%
">
{
{data_get($tpcharge,'verifier_remark')}
}
</td>
<td style="
width
:
20
%
">
{
{data_get($tpcharge,'approver_remark')}
}
</td>
<td style="
width
:
20
%
">
{
{data_get($tpcharge,'approver_remark')}
}
</td>
<td style="
width
:
13
%
" class="
text
-
center
">
{
{data_get($tpcharge,'tp_timesheet_sts')}
}
</td>
<td style="
width
:
13
%
" class="
text
-
center
">
@if(data_get(
$tpcharge
,'tp_timesheet_sts') == 1) Draft
@elseif(data_get(
$tpcharge
,'tp_timesheet_sts') == 2) Submitted
@elseif(data_get(
$tpcharge
,'tp_timesheet_sts') == 3) Verified by PM
@elseif(data_get(
$tpcharge
,'tp_timesheet_sts') == 4) Approved by PD
@elseif(data_get(
$tpcharge
,'tp_timesheet_sts') == 5) Rejected by PD
@elseif(data_get(
$tpcharge
,'tp_timesheet_sts') == 6) Rejected by PM
@endif
</td>
<td style="
width
:
12
%
;
" class="
text
-
center
">
<td style="
width
:
12
%
;
" class="
text
-
center
">
@if(data_get(
$tpcharge
,'tp_timesheet_sts') == 5||6)
<button class="
center
aligned
ui
green
icon
button
">Resubmit</button>
<button class="
center
aligned
ui
green
icon
button
">Resubmit</button>
@else
<button class="
center
aligned
ui
green
icon
button
disabled
">Resubmit</button>
@endif
</td>
</td>
</tr>
</tr>
@endforeach
@endforeach
...
@@ -153,9 +167,10 @@
...
@@ -153,9 +167,10 @@
<table class="
ui
unstackable
celled
table
">
<table class="
ui
unstackable
celled
table
">
<thead>
<thead>
<tr>
<tr>
<th style="
width
:
25
%
;
">Overhead</th>
<th style="
width
:
17
%
;
">Overhead</th>
<th style="
width
:
5
%
;
" class="
center
aligned
">Total Hours</th>
<th style="
width
:
15
%
;
">Verifier</th>
<th style="
width
:
5
%
;
" class="
center
aligned
">Total Days</th>
<!-- <th style="
width
:
5
%
;
" class="
center
aligned
">Total Hours</th>
<th style="
width
:
5
%
;
" class="
center
aligned
">Total Days</th> -->
<th style="
width
:
20
%
;
">Hod Remarks</th>
<th style="
width
:
20
%
;
">Hod Remarks</th>
<th style="
width
:
20
%
;
">Bod Remarks</th>
<th style="
width
:
20
%
;
">Bod Remarks</th>
<th style="
width
:
13
%
;
" class="
text
-
center
">Status</th>
<th style="
width
:
13
%
;
" class="
text
-
center
">Status</th>
...
@@ -165,14 +180,27 @@
...
@@ -165,14 +180,27 @@
@if(
$overhead
)
@if(
$overhead
)
@foreach(
$overhead
as
$key
=>
$tpoverhead
)
@foreach(
$overhead
as
$key
=>
$tpoverhead
)
<tr>
<tr>
<td style="
width
:
25
;
">
{
{data_get($tpoverhead,'tp_project_name')}
}
</td>
<td style="
width
:
15
;
">
{
{data_get($tpoverhead,'tp_project_name')}
}
</td>
<td style="
width
:
5
%
;
" class="
center
aligned
">
{
{data_get($tpoverhead,'tp_hours')}
}
</td>
<td style="
width
:
15
;
" class="
single
line
">
{
{data_get($tpoverhead,'hod.fullname')}
}
</td>
<td style="
width
:
5
%
;
" class="
center
aligned
">
{
{data_get($tpoverhead,'tp_hours')/8}
}
</td>
<!-- <td style="
width
:
5
%
;
" class="
center
aligned
">
{
{data_get($tpoverhead,'tp_hours')}
}
</td>
<td style="
width
:
5
%
;
" class="
center
aligned
">
{
{data_get($tpoverhead,'tp_hours')/8}
}
</td> -->
<td style="
width
:
20
%
;
">
{
{data_get($tpoverhead,'verifier_remark')}
}
</td>
<td style="
width
:
20
%
;
">
{
{data_get($tpoverhead,'verifier_remark')}
}
</td>
<td style="
width
:
20
%
;
">
{
{data_get($tpoverhead,'approver_remark')}
}
</td>
<td style="
width
:
20
%
;
">
{
{data_get($tpoverhead,'approver_remark')}
}
</td>
<td style="
width
:
13
%
;
" class="
text
-
center
">
{
{data_get($tpoverhead,'tp_timesheet_sts')}
}
</td>
<td style="
width
:
13
%
;
" class="
text
-
center
">
@if(data_get(
$tpoverhead
,'tp_timesheet_sts') == 1) Draft
@elseif(data_get(
$tpoverhead
,'tp_timesheet_sts') == 2) Submitted
@elseif(data_get(
$tpoverhead
,'tp_timesheet_sts') == 3) Verified by HOD
@elseif(data_get(
$tpoverhead
,'tp_timesheet_sts') == 4) Approved by BOD
@elseif(data_get(
$tpoverhead
,'tp_timesheet_sts') == 5) Rejected by BOD
@elseif(data_get(
$tpoverhead
,'tp_timesheet_sts') == 6) Rejected by HOD
@endif
</td>
<td style="
width
:
12
%
;
" class="
text
-
center
">
<td style="
width
:
12
%
;
" class="
text
-
center
">
@if(data_get(
$tpoverhead
,'tp_timesheet_sts') == 5||6)
<button class="
center
aligned
ui
green
icon
button
">Resubmit</button>
<button class="
center
aligned
ui
green
icon
button
">Resubmit</button>
@else
<button class="
center
aligned
ui
green
icon
button
disabled
">Resubmit</button>
@endif
</td>
</td>
</tr>
</tr>
@endforeach
@endforeach
...
...
packages/portal/timesheet/src/Http/Controllers/DashboardController.php
View file @
dcfc483c
...
@@ -186,6 +186,7 @@ class DashboardController extends Controller
...
@@ -186,6 +186,7 @@ class DashboardController extends Controller
->
where
(
'tp_year'
,
date
(
'Y'
))
->
where
(
'tp_year'
,
date
(
'Y'
))
->
with
(
'project'
)
->
with
(
'project'
)
->
with
(
'overhead'
)
->
with
(
'overhead'
)
->
with
(
'hod'
)
->
get
();
->
get
();
// dd($projects);
// dd($projects);
...
...
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