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
fdada6dc
Commit
fdada6dc
authored
Jul 26, 2022
by
hannan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
insert 3f logo in img folder
parent
ec18097c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
16 deletions
+28
-16
packages/portal/timesheet/resources/views/dashboard/timesheetViewer.blade.php
+22
-10
packages/portal/timesheet/src/Http/Controllers/DashboardController.php
+6
-6
No files found.
packages/portal/timesheet/resources/views/dashboard/timesheetViewer.blade.php
View file @
fdada6dc
...
...
@@ -14,7 +14,7 @@
<tbody>
<tr>
<td rowspan="
3
">
<img src="
https
://
www
.
3
fresources
.
com
/
app
/
themes
/
3
f
/
images
/
3
f
-
logo
.
svg
" height="
126
" width="
126
" alt="
3
f
-
logo
">
<img src="
{{
url
(
'img/3f-logo.svg'
)
}}
" height="
126
" width="
126
" alt="
3
f
-
logo
">
</td>
<td>Name</td>
<td>:</td>
...
...
@@ -85,7 +85,7 @@
<tr>
<th colspan="
3
">Chargeable</th>
<th colspan="
@
if
(
$phase
==
1
)
15
@
else
{{
$daymonth
-
15
}}
@
endif
" class="
center
aligned
">Date</th>
<th
>
</th>
<th
colspan="
2
">Total
</th>
</tr>
</thead>
<tbody>
...
...
@@ -104,7 +104,8 @@
@endfor
@endif
<td>Total Hours</td>
<td>Hours</td>
<td>Days</td>
</tr>
@foreach(
$chargeablelist
as
$key
=>
$projectchargeable
)
<?php
$totalcharge
= 0; ?>
...
...
@@ -167,8 +168,10 @@
@if(
$valchargehour
)
<td>{{
$totalcharge
}}</td>
<td>{{
$totalcharge
/8 }}</td>
@else
<td>0</td>
<td>0</td>
@endif
</tr>
...
...
@@ -208,6 +211,7 @@
@endif
<th>@if(
$totalchargehrs
){{
$totalchargehrs
}}@else 0 @endif</th>
<th>@if(
$totalchargehrs
){{
$totalchargehrs
/8 }}@else 0 @endif</th>
</tfoot>
</table>
</div>
...
...
@@ -218,7 +222,7 @@
<tr>
<th colspan="
2
">Non-Chargeable</th>
<th colspan="
@
if
(
$phase
==
1
)
15
@
else
{{
$daymonth
-
15
}}
@
endif
" class="
center
aligned
">Date</th>
<th
>
</th>
<th
colspan="
2
">Total
</th>
</tr>
</thead>
<tbody>
...
...
@@ -236,7 +240,8 @@
@endfor
@endif
<td>Total Hours</td>
<td>Hours</td>
<td>Days</td>
</tr>
@foreach(
$nonchargeablelist
as
$key
=>
$projectnonchargeable
)
...
...
@@ -301,8 +306,10 @@
@if(
$valnonchargehour
)
<td>{{
$totalnoncharge
}}</td>
<td>{{
$totalnoncharge
/8 }}</td>
@else
<td>0</td>
<td>0</td>
@endif
</tr>
@endforeach
...
...
@@ -340,6 +347,7 @@
@endfor
@endif
<th>@if(
$totalnonchargehrs
){{
$totalnonchargehrs
}}@else 0 @endif</th>
<th>@if(
$totalnonchargehrs
){{
$totalnonchargehrs
/8 }}@else 0 @endif</th>
</tfoot>
</table>
</div>
...
...
@@ -350,7 +358,7 @@
<tr>
<th colspan="
2
">Overhead</th>
<th colspan="
@
if
(
$phase
==
1
)
15
@
else
{{
$daymonth
-
15
}}
@
endif
" class="
center
aligned
">Date</th>
<th
>
</th>
<th
colspan="
2
">Total
</th>
</tr>
</thead>
<tbody>
...
...
@@ -368,7 +376,8 @@
@endfor
@endif
<td>Total Hours</td>
<td>Hours</td>
<td>Days</td>
</tr>
@foreach(
$overheadlist
as
$key
=>
$projectoverhead
)
<?php
$totaloverhead
= 0; ?>
...
...
@@ -430,8 +439,10 @@
@if(
$valchargehour
)
<td>{{
$totaloverhead
}}</td>
<td>{{
$totaloverhead
/8 }}</td>
@else
<td>0</td>
<td>0</td>
@endif
</tr>
...
...
@@ -469,6 +480,7 @@
@endfor
@endif
<th>@if(
$totaloverheadhrs
) {{
$totaloverheadhrs
}} @else 0 @endif</th>
<th>@if(
$totaloverheadhrs
) {{
$totaloverheadhrs
/8 }} @else 0 @endif</th>
</tfoot>
</table>
</div>
...
...
@@ -497,11 +509,11 @@
<div class="
ui
segment
">
<table id="
printtabl6
" class="
ui
celled
structured
table
unstackable
">
<thead>
<
!-- <
thead>
<th colspan="
@
if
(
$phase
==
1
)
17
@
else
{{
$daymonth
-
13
}}
@
endif
"></th>
<th>Total hours</th>
<th>Total days</th>
</thead>
</thead>
-->
<tbody>
<tr>
<td style="
width
:
4
%
;
"></td>
...
...
@@ -673,7 +685,7 @@
</div>
<br>
<button type="
button
"
onclick="
printdiv
(
'print_div'
)
"> p
rint</button>
<button type="
button
"
class="
ui
primary
button
" onclick="
printdiv
(
'print_div'
)
">P
rint</button>
</div>
...
...
packages/portal/timesheet/src/Http/Controllers/DashboardController.php
View file @
fdada6dc
...
...
@@ -96,13 +96,13 @@ class DashboardController extends Controller
$hod
=
Staff_info
::
find
(
$user
->
penyokong
)
->
fullname
;
//
$month = date('n');
//
$year = date('Y');
//
$day = date('j');
$month
=
date
(
'n'
);
$year
=
date
(
'Y'
);
$day
=
date
(
'j'
);
$month
=
7
;
$year
=
2022
;
$day
=
2
;
//
$month = 7;
//
$year = 2022;
//
$day = 2;
if
(
$day
<
16
)
{
$phase
=
1
;
...
...
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