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
10dcfc09
Commit
10dcfc09
authored
Oct 13, 2022
by
Azhan Hannan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cosmetic - set button export to the left. option to filter report summary by department or by all.
parent
0b78a1ff
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
2 deletions
+11
-2
packages/portal/timesheet/resources/views/report/ringkasan.blade.php
+1
-1
packages/portal/timesheet/resources/views/report/ringkasanLaporan.blade.php
+1
-0
packages/portal/timesheet/src/Http/Controllers/ReportController.php
+9
-1
No files found.
packages/portal/timesheet/resources/views/report/ringkasan.blade.php
View file @
10dcfc09
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
Report Summary
Report Summary
</div>
</div>
<button class="
right
floated
center
aligned
ui
violet
compact
labeled
icon
button
" onclick="
window
.
location
.
href
=
'{{ route('
timesheet
::
export
.
exportsummary
', ['
month
'=> $intmonth, '
year
'=> $year]) }}'
;
">
<button class="
floated
center
aligned
ui
violet
compact
labeled
icon
button
" onclick="
window
.
location
.
href
=
'{{ route('
timesheet
::
export
.
exportsummary
', ['
month
'=> $intmonth, '
year
'=> $year]) }}'
;
">
<i class="
file
excel
outline
icon
"></i>
<i class="
file
excel
outline
icon
"></i>
Export to Excel
Export to Excel
</button>
</button>
...
...
packages/portal/timesheet/resources/views/report/ringkasanLaporan.blade.php
View file @
10dcfc09
...
@@ -12,6 +12,7 @@
...
@@ -12,6 +12,7 @@
<div class="
five
wide
field
">
<div class="
five
wide
field
">
<label>Department</label>
<label>Department</label>
<select name="
dept
" class="
ui
fluid
dropdown
" required="
required
">
<select name="
dept
" class="
ui
fluid
dropdown
" required="
required
">
<option value="
all
">All staffs</option>
@foreach(
$dept
as
$key
=>
$value
)
@foreach(
$dept
as
$key
=>
$value
)
<option value="
{{
data_get
(
$value
,
'id'
)}}
">{{ data_get(
$value
,'description') }}</option>
<option value="
{{
data_get
(
$value
,
'id'
)}}
">{{ data_get(
$value
,'description') }}</option>
@endforeach
@endforeach
...
...
packages/portal/timesheet/src/Http/Controllers/ReportController.php
View file @
10dcfc09
...
@@ -83,11 +83,19 @@ class ReportController extends Controller
...
@@ -83,11 +83,19 @@ class ReportController extends Controller
// dd($ovhours);
// dd($ovhours);
$chargeproject
=
VwChargeable
::
all
();
$chargeproject
=
VwChargeable
::
all
();
// $nonchargeproject = VwNonChargeable::all();
if
(
$request
->
dept
==
'all'
)
{
$staffs
=
VwStaff
::
orderby
(
'deptID'
)
->
where
(
'deptID'
,
'!='
,
8
)
->
get
();
}
else
{
$staffs
=
VwStaff
::
orderby
(
'deptID'
)
$staffs
=
VwStaff
::
orderby
(
'deptID'
)
->
where
(
'deptID'
,
'!='
,
8
)
->
where
(
'deptID'
,
'!='
,
8
)
->
where
(
'deptID'
,
$request
->
dept
)
->
where
(
'deptID'
,
$request
->
dept
)
->
get
();
->
get
();
}
$year
=
date
(
'Y'
);
$year
=
date
(
'Y'
);
if
(
$request
->
year
)
{
if
(
$request
->
year
)
{
...
...
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