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
5a3f9eb6
Commit
5a3f9eb6
authored
Nov 24, 2022
by
Azhan Hannan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
timesheet viewer -> alignment total hours and overtime, change tbody to thead tag
parent
43cb2d4d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
18 deletions
+18
-18
packages/portal/timesheet/resources/views/dashboard/timesheetViewer.blade.php
+18
-18
No files found.
packages/portal/timesheet/resources/views/dashboard/timesheetViewer.blade.php
View file @
5a3f9eb6
...
@@ -437,10 +437,10 @@
...
@@ -437,10 +437,10 @@
<div class="
ui
segment
">
<div class="
ui
segment
">
<table id="
printtable6
" class="
ui
celled
structured
table
unstackable
">
<table id="
printtable6
" class="
ui
celled
structured
table
unstackable
">
<t
body
>
<t
head
>
<tr>
<tr>
<t
d style="
width
:
4
%
"></td
>
<t
h style="
width
:
4
%
"></th
>
<t
d style="
width
:
23
%
;
">Total (A) + (B) Working Hours</td
>
<t
h style="
width
:
23
%
;
">Total (A) + (B) Working Hours</th
>
@if(
$phase
== 1 )
@if(
$phase
== 1 )
@for(
$i
= 0;
$i
< 15 ;
$i
++)
@for(
$i
= 0;
$i
< 15 ;
$i
++)
<?php
<?php
...
@@ -470,7 +470,7 @@
...
@@ -470,7 +470,7 @@
$ac
=
$totalcbyday
+
$totaloverheadbyday
;
$ac
=
$totalcbyday
+
$totaloverheadbyday
;
?>
?>
<t
d style="
width
:
4
%
;
">{{ number_format(
$ac
, '1', '.', '') }}</td
>
<t
h style="
width
:
4
%
;
">{{ number_format(
$ac
, '1', '.', '') }}</th
>
@endfor
@endfor
@else
@else
@for(
$i
= 15;
$i
<
$daymonth
;
$i
++)
@for(
$i
= 15;
$i
<
$daymonth
;
$i
++)
...
@@ -501,16 +501,16 @@
...
@@ -501,16 +501,16 @@
$ac
=
$totalcbyday
+
$totaloverheadbyday
;
$ac
=
$totalcbyday
+
$totaloverheadbyday
;
?>
?>
<t
d style="
width
:
4
%
;
">{{ number_format(
$ac
, '1', '.', '') }}</td
>
<t
h style="
width
:
4
%
;
">{{ number_format(
$ac
, '1', '.', '') }}</th
>
@endfor
@endfor
@endif
@endif
<t
d style="
width
:
5
%
;
"> @if(
$check
) {{ number_format((
$totalchargeableall
+
$totaloverheadall
), 1, '.', '') }} @else 0 @endif </td
>
<t
h style="
width
:
5
%
;
"> @if(
$check
) {{ number_format((
$totalchargeableall
+
$totaloverheadall
), 1, '.', '') }} @else 0 @endif </th
>
<t
d style="
width
:
5
%
;
"> {{ number_format((
$totalchargeableall
+
$totaloverheadall
)/8, 1, '.', '') }} </td
>
<t
h style="
width
:
5
%
;
"> {{ number_format((
$totalchargeableall
+
$totaloverheadall
)/8, 1, '.', '') }} </th
>
</tr>
</tr>
<tr>
<tr>
<t
d style="
width
:
4
%
"></td
>
<t
h style="
width
:
4
%
"></th
>
<t
d style="
width
:
23
%
;
">Total (A+B) - 8 Overtime</td
>
<t
h style="
width
:
23
%
;
">Total (A+B) - 8 Overtime</th
>
<?php
$totalot
= 0; ?>
<?php
$totalot
= 0; ?>
@if(
$phase
== 1 )
@if(
$phase
== 1 )
@for(
$i
= 0;
$i
< 15 ;
$i
++)
@for(
$i
= 0;
$i
< 15 ;
$i
++)
...
@@ -542,13 +542,13 @@
...
@@ -542,13 +542,13 @@
// if(
$ot
>= 0)
// if(
$ot
>= 0)
$totalot
+=
$ot
;
$totalot
+=
$ot
;
?>
?>
<t
d
style="
width
:
4
%
;
">
<t
h
style="
width
:
4
%
;
">
@if(
$ot
> 0)
@if(
$ot
> 0)
{{ number_format(
$ot
, '1', '.', '') }}
{{ number_format(
$ot
, '1', '.', '') }}
@else
@else
({{ number_format(abs(
$ot
), '1', '.', '') }})
({{ number_format(abs(
$ot
), '1', '.', '') }})
@endif
@endif
</t
d
>
</t
h
>
@endfor
@endfor
@else
@else
@for(
$i
= 15;
$i
<
$daymonth
;
$i
++)
@for(
$i
= 15;
$i
<
$daymonth
;
$i
++)
...
@@ -578,31 +578,31 @@
...
@@ -578,31 +578,31 @@
$totalot
+=
$ot
;
$totalot
+=
$ot
;
?>
?>
<t
d
style="
width
:
4
%
;
">
<t
h
style="
width
:
4
%
;
">
@if(
$ot
> 0)
@if(
$ot
> 0)
{{ number_format(
$ot
, '1', '.', '') }}
{{ number_format(
$ot
, '1', '.', '') }}
@else
@else
({{ number_format(abs(
$ot
), '1', '.', '') }})
({{ number_format(abs(
$ot
), '1', '.', '') }})
@endif
@endif
</t
d
>
</t
h
>
@endfor
@endfor
@endif
@endif
<t
d
style="
width
:
5
%
;
">
<t
h
style="
width
:
5
%
;
">
@if(
$totalot
>= 0)
@if(
$totalot
>= 0)
{{ number_format(
$totalot
, 1, '.', '') }}
{{ number_format(
$totalot
, 1, '.', '') }}
@else
@else
({{ abs(number_format(
$totalot
, 1, '.', '')) }})
({{ abs(number_format(
$totalot
, 1, '.', '')) }})
@endif
@endif
</t
d
>
</t
h
>
<t
d
style="
width
:
5
%
;
">
<t
h
style="
width
:
5
%
;
">
@if(
$totalot
/8 >= 0)
@if(
$totalot
/8 >= 0)
{{ number_format(
$totalot
/8, 1, '.', '') }}
{{ number_format(
$totalot
/8, 1, '.', '') }}
@else
@else
({{ abs(number_format(
$totalot
/8, 1, '.', '')) }})
({{ abs(number_format(
$totalot
/8, 1, '.', '')) }})
@endif
@endif
</t
d
>
</t
h
>
</tr>
</tr>
</t
body
>
</t
head
>
</table>
</table>
</div>
</div>
...
...
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