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
5c217edb
Commit
5c217edb
authored
Oct 11, 2022
by
Azhan Hannan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changes in dashboard staff
parent
1c3586fc
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
21 deletions
+29
-21
packages/portal/timesheet/resources/views/dashboard/dashboardstaff.blade.php
+21
-21
packages/portal/timesheet/src/Http/Controllers/DashboardController.php
+2
-0
packages/portal/timesheet/src/Model/Tproject.php
+6
-0
No files found.
packages/portal/timesheet/resources/views/dashboard/dashboardstaff.blade.php
View file @
5c217edb
...
@@ -119,10 +119,10 @@
...
@@ -119,10 +119,10 @@
<tr>
<tr>
<th style="
width
:
10
%
;
">Project Code</th>
<th style="
width
:
10
%
;
">Project Code</th>
<th style="
width
:
15
;
">Project Name</th>
<th style="
width
:
15
;
">Project Name</th>
<th style="
width
:
10
%
;
" class="
center
aligned
">Total Hours</th>
<th style="
width
:
5
%
;
" class="
center
aligned
">Total Hours</th>
<th style="
width
:
10
%
;
" class="
center
aligned
">Total Days</th>
<th style="
width
:
5
%
;
" class="
center
aligned
">Total Days</th>
<th style="
width
:
15
%
">PM Remarks</th>
<th style="
width
:
20
%
">PM Remarks</th>
<th style="
width
:
15
%
">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>
<th style="
width
:
12
%
;
" class="
text
-
center
">Action</th>
<th style="
width
:
12
%
;
" class="
text
-
center
">Action</th>
</tr>
</tr>
...
@@ -134,13 +134,13 @@
...
@@ -134,13 +134,13 @@
@else
@else
@foreach(
$chargeable
as
$key
=>
$tpcharge
)
@foreach(
$chargeable
as
$key
=>
$tpcharge
)
<tr>
<tr>
<td style="
width
:
10
%
;
">
p_project_code
</td>
<td style="
width
:
10
%
;
">
{
{data_get($tpcharge,'project.p_project_code')}
}
</td>
<td style="
width
:
15
;
">
p_project_description
</td>
<td style="
width
:
15
;
">
{
{data_get($tpcharge,'project.p_project_description')}
}
</td>
<td style="
width
:
10
%
;
" class="
center
aligned
">tp_hours
</td>
<td style="
width
:
5
%
;
" class="
center
aligned
">
{
{data_get($tpcharge,'tp_hours')}
}
</td>
<td style="
width
:
10
%
;
" class="
center
aligned
">tp_hours/8
</td>
<td style="
width
:
5
%
;
" class="
center
aligned
">
{
{data_get($tpcharge,'tp_hours')/8}
}
</td>
<td style="
width
:
15
%
">pm remark
</td>
<td style="
width
:
20
%
">
{
{data_get($tpcharge,'verifier_remark')}
}
</td>
<td style="
width
:
15
%
">pd remark
</td>
<td style="
width
:
20
%
">
{
{data_get($tpcharge,'approver_remark')}
}
</td>
<td style="
width
:
13
%
" class="
text
-
center
">
status
</td>
<td style="
width
:
13
%
" class="
text
-
center
">
{
{data_get($tpcharge,'tp_timesheet_sts')}
}
</td>
<td style="
width
:
12
%
;
" class="
text
-
center
">
<td style="
width
:
12
%
;
" class="
text
-
center
">
<button class="
center
aligned
ui
green
icon
button
">Resubmit</button>
<button class="
center
aligned
ui
green
icon
button
">Resubmit</button>
</td>
</td>
...
@@ -154,10 +154,10 @@
...
@@ -154,10 +154,10 @@
<thead>
<thead>
<tr>
<tr>
<th style="
width
:
25
%
;
">Overhead</th>
<th style="
width
:
25
%
;
">Overhead</th>
<th style="
width
:
10
%
;
" class="
center
aligned
">Total Hours</th>
<th style="
width
:
5
%
;
" class="
center
aligned
">Total Hours</th>
<th style="
width
:
10
%
;
" class="
center
aligned
">Total Days</th>
<th style="
width
:
5
%
;
" class="
center
aligned
">Total Days</th>
<th style="
width
:
15
%
;
">Hod Remarks</th>
<th style="
width
:
20
%
;
">Hod Remarks</th>
<th style="
width
:
15
%
;
">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>
<th style="
width
:
12
%
;
" class="
text
-
center
">Action</th>
<th style="
width
:
12
%
;
" class="
text
-
center
">Action</th>
</tr>
</tr>
...
@@ -165,12 +165,12 @@
...
@@ -165,12 +165,12 @@
@if(
$overhead
)
@if(
$overhead
)
@foreach(
$overhead
as
$key
=>
$tpoverhead
)
@foreach(
$overhead
as
$key
=>
$tpoverhead
)
<tr>
<tr>
<td style="
width
:
25
;
">
tp_project_name
</td>
<td style="
width
:
25
;
">
{
{data_get($tpoverhead,'tp_project_name')}
}
</td>
<td style="
width
:
10
%
;
" class="
center
aligned
">tp_hours
</td>
<td style="
width
:
5
%
;
" class="
center
aligned
">
{
{data_get($tpoverhead,'tp_hours')}
}
</td>
<td style="
width
:
10
%
;
" class="
center
aligned
">tp_hours/8
</td>
<td style="
width
:
5
%
;
" class="
center
aligned
">
{
{data_get($tpoverhead,'tp_hours')/8}
}
</td>
<td style="
width
:
15
%
;
">Hod remarks
</td>
<td style="
width
:
20
%
;
">
{
{data_get($tpoverhead,'verifier_remark')}
}
</td>
<td style="
width
:
15
%
;
">Bod remarks
</td>
<td style="
width
:
20
%
;
">
{
{data_get($tpoverhead,'approver_remark')}
}
</td>
<td style="
width
:
13
%
;
" class="
text
-
center
">
status
</td>
<td style="
width
:
13
%
;
" class="
text
-
center
">
{
{data_get($tpoverhead,'tp_timesheet_sts')}
}
</td>
<td style="
width
:
12
%
;
" class="
text
-
center
">
<td style="
width
:
12
%
;
" class="
text
-
center
">
<button class="
center
aligned
ui
green
icon
button
">Resubmit</button>
<button class="
center
aligned
ui
green
icon
button
">Resubmit</button>
</td>
</td>
...
...
packages/portal/timesheet/src/Http/Controllers/DashboardController.php
View file @
5c217edb
...
@@ -184,6 +184,8 @@ class DashboardController extends Controller
...
@@ -184,6 +184,8 @@ class DashboardController extends Controller
$projects
=
Tproject
::
where
(
'staffid'
,
$staffid
)
$projects
=
Tproject
::
where
(
'staffid'
,
$staffid
)
->
where
(
'tp_year'
,
date
(
'Y'
))
->
where
(
'tp_year'
,
date
(
'Y'
))
->
with
(
'project'
)
->
with
(
'overhead'
)
->
get
();
->
get
();
// dd($projects);
// dd($projects);
...
...
packages/portal/timesheet/src/Model/Tproject.php
View file @
5c217edb
...
@@ -26,6 +26,12 @@ class Tproject extends Model
...
@@ -26,6 +26,12 @@ class Tproject extends Model
return
$this
->
hasOne
(
'Portal\Timesheet\Model\Project'
,
'id'
,
'td_project'
)
->
with
(
'projectManager'
);
return
$this
->
hasOne
(
'Portal\Timesheet\Model\Project'
,
'id'
,
'td_project'
)
->
with
(
'projectManager'
);
}
}
public
function
overhead
()
{
return
$this
->
hasOne
(
'Portal\Timesheet\Model\Overhead'
,
'id'
,
'fk_o_id'
);
}
public
function
pm
()
public
function
pm
()
{
{
return
$this
->
hasOne
(
'Portal\Timesheet\Model\Staff_info'
,
'staff_id'
,
'tp_pm'
);
return
$this
->
hasOne
(
'Portal\Timesheet\Model\Staff_info'
,
'staff_id'
,
'tp_pm'
);
...
...
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