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
442728a4
Commit
442728a4
authored
Dec 02, 2022
by
Azhan Hannan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changes
parent
cea3469d
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
9 deletions
+35
-9
packages/portal/timesheet/resources/views/dashboard/dashboardpm.blade.php
+11
-4
packages/portal/timesheet/resources/views/dashboard/dashboardpmhod.blade.php
+23
-4
packages/portal/timesheet/src/Http/Controllers/DashboardController.php
+1
-1
No files found.
packages/portal/timesheet/resources/views/dashboard/dashboardpm.blade.php
View file @
442728a4
...
...
@@ -39,11 +39,9 @@
<br> -->
<a class="
ui
teal
left
ribbon
label
">Timesheet Status</a>
<br>
@if(count(
$timesheet
) > 0)
<br>
@foreach(
$timesheet
as
$key
=>
$value
)
<!-- <?php
// dd(
$value->tm_timesheet_master_sts
);
?> -->
<div class="
ui
styled
fluid
accordion
">
<?php
$page
= 1; ?>
<div class="
title
">
...
...
@@ -202,8 +200,17 @@
</table>
</div>
</div>
<br>
@endforeach
@else
<table class="
ui
unstackable
celled
table
">
<thead>
<tr>
<th class="
text
-
center
">No pending verification</th>
</tr>
</thead>
</table>
@endif
<!-- <br> -->
</div>
<!-- Staff Timesheet Section End -->
...
...
packages/portal/timesheet/resources/views/dashboard/dashboardpmhod.blade.php
View file @
442728a4
...
...
@@ -82,13 +82,18 @@
<table class="
ui
unstackable
celled
table
">
<thead>
<tr>
@if(
$roleid
== '9' )
<th style="
width
:
7
%
;
" class="
text
-
center
">Project Code</th>
<th style="
width
:
13
%
;
">Project Name</th>
<th style="
width
:
20
%
;
">Project Director</th>
<th style="
width
:
35
%
;
">PD Remarks</th>
@else
<th style="
width
:
7
%
;
" class="
text
-
center
">Project Code</th>
<th style="
width
:
13
;
">Project Name</th>
<th style="
width
:
15
;
">Project Manager</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
%
">PD Remarks</th>
@endif
<th style="
width
:
13
%
" class="
text
-
center
">Status</th>
<th style="
width
:
12
%
;
" class="
text
-
center
">Action</th>
</tr>
...
...
@@ -100,11 +105,24 @@
@else
@foreach(
$chargeable
as
$key
=>
$tpcharge
)
<tr>
@if(
$roleid
== '9' )
<td style="
width
:
7
%
;
" class="
text
-
center
">
{
{data_get($tpcharge,'project.p_project_code')}
}
</td>
<td style="
width
:
13
%
;
">
{
{data_get($tpcharge,'tp_project_name')}
}
</td>
<td style="
width
:
20
%
;
">
{
{data_get($tpcharge,'project.projectDirector.fullname')}
}
</td>
<td style="
width
:
35
%
">
{
{data_get($tpcharge,'approver_remark')}
}
</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) Auto-verified
@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>
@else
<td style="
width
:
7
%
;
" class="
text
-
center
">
{
{data_get($tpcharge,'project.p_project_code')}
}
</td>
<td style="
width
:
13
;
">
{
{data_get($tpcharge,'tp_project_name')}
}
</td>
<td style="
width
:
15
;
">
{
{data_get($tpcharge,'project.projectManager.fullname')}
}
</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,'approver_remark')}
}
</td>
<td style="
width
:
13
%
" class="
text
-
center
">
...
...
@@ -116,6 +134,7 @@
@elseif(data_get(
$tpcharge
,'tp_timesheet_sts') == 6) Rejected by PM
@endif
</td>
@endif
<td style="
width
:
12
%
;
" class="
text
-
center
">
@if(data_get(
$tpcharge
,'tp_timesheet_sts') == 5|| data_get(
$tpcharge
,'tp_timesheet_sts') == 6)
<button class="
center
aligned
ui
red
icon
button
" onclick="
window
.
location
.
href
=
'{{ route('
timesheet
::
form
.
rejected
', ['
tpid
' => data_get($tpcharge,'
id
')]) }}'
;
">Resubmit</button>
...
...
packages/portal/timesheet/src/Http/Controllers/DashboardController.php
View file @
442728a4
...
...
@@ -260,7 +260,7 @@ class DashboardController extends Controller
->
with
(
'bod'
)
->
get
();
return
view
(
'timesheet::dashboard.dashboardpmhod'
,
compact
(
'profile'
,
'details'
,
'verifier'
,
'overheads'
,
'staffinfo'
,
'timesheet'
,
'projects'
));
return
view
(
'timesheet::dashboard.dashboardpmhod'
,
compact
(
'profile'
,
'details'
,
'verifier'
,
'overheads'
,
'staffinfo'
,
'timesheet'
,
'projects'
,
'roleid'
));
}
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