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
6410e2ff
Commit
6410e2ff
authored
Dec 23, 2022
by
Azhan Hannan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Log Pia #159 : Paparkan tajuk report
parent
03a49aa3
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
39 additions
and
7 deletions
+39
-7
app/Exports/RingkasanExport.php
+4
-1
packages/portal/timesheet/resources/views/exports/exportDepartment.blade.php
+9
-3
packages/portal/timesheet/resources/views/exports/exportOvertime.blade.php
+8
-1
packages/portal/timesheet/resources/views/exports/exportProject.blade.php
+8
-2
packages/portal/timesheet/resources/views/exports/exportRingkasan.blade.php
+10
-0
No files found.
app/Exports/RingkasanExport.php
View file @
6410e2ff
...
...
@@ -10,6 +10,7 @@ use Portal\Timesheet\Model\Tproject;
use
Portal\Timesheet\Model\VwRingkasanLaporan
;
use
Portal\Timesheet\Model\VwNonchargeSummary
;
use
Portal\Timesheet\Model\VwOverheadSummary
;
use
Portal\Timesheet\Model\Department
;
// use Illuminate\Contracts\Support\Responsable;
use
Illuminate\Contracts\View\View
;
use
Illuminate\Http\Request
;
...
...
@@ -55,7 +56,7 @@ class RingkasanExport implements ShouldAutoSize, FromView, WithColumnWidths
$dept
=
$this
->
request
[
'dept'
];
$month
=
$this
->
request
[
'month'
];
$year
=
$this
->
request
[
'year'
];
// dd(Department::where('id', $dept)->first());
$liststaffs
=
[];
$chargeproject
=
VwChargeable
::
where
(
'deleted_at'
,
null
)
->
get
();
...
...
@@ -127,6 +128,7 @@ class RingkasanExport implements ShouldAutoSize, FromView, WithColumnWidths
'month'
=>
date
(
'F'
,
mktime
(
0
,
0
,
0
,
$month
,
1
,
date
(
'Y'
))),
'year'
=>
$year
,
'dept'
=>
$dept
,
]);
}
else
...
...
@@ -174,6 +176,7 @@ class RingkasanExport implements ShouldAutoSize, FromView, WithColumnWidths
'month'
=>
date
(
'F'
,
mktime
(
0
,
0
,
0
,
$month
,
1
,
date
(
'Y'
))),
'year'
=>
$year
,
'dept'
=>
Department
::
where
(
'id'
,
$dept
)
->
first
()
,
]);
}
...
...
packages/portal/timesheet/resources/views/exports/exportDepartment.blade.php
View file @
6410e2ff
<table>
<thead>
<tr>
<th>
Department
</th>
<th></th>
<th>
Report by Department
</th>
</tr>
<tr>
<th></th>
<th>
Department
</th>
<th>
:
</th>
<th
colspan=
"
3
"
>
{{data_get($dept,'description')}}
</th>
<th
colspan=
"
2
"
>
{{data_get($dept,'description')}}
</th>
</tr>
<tr>
<th></th>
<th>
Month/Year
</th>
<th>
:
</th>
<th
colspan=
"
3
"
>
{{ date('F', mktime(0, 0, 0, $month, 10)) }} {{$year}}
</th>
<th
colspan=
"
2
"
>
{{ date('F', mktime(0, 0, 0, $month, 10)) }} {{$year}}
</th>
</tr>
</thead>
</table>
...
...
packages/portal/timesheet/resources/views/exports/exportOvertime.blade.php
View file @
6410e2ff
<table
class=
"ui unstackable celled table"
>
<thead>
<tr><th></th>
<tr>
<th></th>
<th
colspan=
"3"
>
Report Overtime
</th>
</tr>
<tr>
<th></th>
<th
style=
"width: 10%"
>
Department
</th>
<th
style=
"width: 1%"
>
:
</th>
<th
colspan=
"2"
>
{{ data_get($dept,'description') }}
</th>
...
...
@@ -16,6 +21,7 @@
<table
class=
"ui unstackable celled table"
>
<thead>
<tr>
<th
class=
"center aligned"
>
No
</th>
<th>
Name
</th>
<th
class=
"center aligned"
>
Staff No
</th>
...
...
@@ -23,6 +29,7 @@
<th
class=
"center aligned"
>
Total Days
</th>
<th
class=
"center aligned"
>
Total Overtime Hours
</th>
<th
class=
"center aligned"
>
Total Overtime Days
</th>
</tr>
</thead>
<tbody>
@foreach($staffs as $key => $staff)
...
...
packages/portal/timesheet/resources/views/exports/exportProject.blade.php
View file @
6410e2ff
<table
class=
"ui unstackable celled table"
>
<thead>
<tr>
<th></th>
<th
colspan=
"3"
>
Project Report
</th>
</tr>
<tr>
<th></th>
<th
style=
"width: 10%"
>
Project
</th>
<th
style=
"width: 1%"
>
:
</th>
<th
colspan=
"2"
>
{{data_get($pdetail,'pcode')}} - {{data_get($pdetail,'pname')}}
</th>
<th>
{{data_get($pdetail,'pcode')}} - {{data_get($pdetail,'pname')}}
</th>
</tr>
<tr>
<th></th>
<th
style=
"width: 10%"
>
Month/Year
</th>
<th
style=
"width: 1%"
>
:
</th>
<th
colspan=
"2"
>
{{$month}} {{$year}}
</th>
<th>
{{$month}} {{$year}}
</th>
</tr>
</thead>
</table>
...
...
packages/portal/timesheet/resources/views/exports/exportRingkasan.blade.php
View file @
6410e2ff
...
...
@@ -2,6 +2,16 @@
<thead>
<tr>
<th></th>
<th
colspan=
"3"
>
Report Summary
</th>
</tr>
<tr>
<th></th>
<th
style=
"width: 10%"
>
Department
</th>
<th
style=
"width: 1%"
>
:
</th>
<th
style=
"width: 89%"
>
{{ data_get($dept,'description') }}
</th>
</tr>
<tr>
<th></th>
<th
style=
"width: 10%"
>
Month/Year
</th>
<th
style=
"width: 1%"
>
:
</th>
<th
style=
"width: 89%"
>
{{ $month}} {{ $year }}
</th>
...
...
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