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
18f24ba2
Commit
18f24ba2
authored
Aug 23, 2022
by
hannan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changes
parent
9dbaecb6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
196 additions
and
3 deletions
+196
-3
packages/portal/timesheet/resources/views/report/ringkasan.blade.php
+60
-0
packages/portal/timesheet/src/Http/Controllers/ReportController.php
+12
-3
packages/portal/timesheet/src/Model/VwChargeable.php
+31
-0
packages/portal/timesheet/src/Model/VwNonChargeable.php
+31
-0
packages/portal/timesheet/src/Model/VwRingkasanLaporan.php
+31
-0
packages/portal/timesheet/src/Model/VwStaff.php
+31
-0
No files found.
packages/portal/timesheet/resources/views/report/ringkasan.blade.php
View file @
18f24ba2
@
extends
(
'ui::layouts.app'
)
@
section
(
'content'
)
<
div
class
="
ui
segment
">
<div class="
ui
purple
left
ribbon
label
">
Ringkasan Laporan
</div>
<br>
<br>
<div class="
ui
styled
fluid
accordion
">
<div class="
title
">
<table class="
ui
unstackable
celled
table
">
<thead>
<tr>
<th colspan="
5
"></th>
<th colspan="
{{
count
(
$chargeproject
)}}
">Chargeable</th>
<th colspan="
2
"></th>
</tr>
<tr>
<th>No</th>
<th>Department</th>
<th>Staff Id</th>
<th>Staff Name</th>
<th>Position</th>
@foreach(
$chargeproject
as
$key
=>
$chargeable
)
<th>
{{data_get(
$chargeable
, 'p_project_code')}}
</th>
@endforeach
<th>Total Hours</th>
<th>Total Days</th>
</tr>
</thead>
@foreach(
$staffs
as
$key
=>
$staff
)
<tbody>
<tr>
<td>
{
{$key+1}
}
</td>
<td>
{
{data_get($staff,'deptName')}
}
</td>
<td>
{
{data_get($staff,'staffid')}
}
</td>
<td>
{
{data_get($staff,'name')}
}
</td>
<td>position</td>
<td>hours</td>
<td>total hours</td>
<td>total days</td>
</tr>
</tbody>
@endforeach
</table>
</div>
</div>
</div>
@endsection
@push('script')
@endpush
\ No newline at end of file
packages/portal/timesheet/src/Http/Controllers/ReportController.php
View file @
18f24ba2
...
@@ -18,6 +18,10 @@ use Portal\Timesheet\Model\Role;
...
@@ -18,6 +18,10 @@ use Portal\Timesheet\Model\Role;
use
Portal\Timesheet\Model\VwViewer
;
use
Portal\Timesheet\Model\VwViewer
;
use
Portal\Timesheet\Model\VwReviewProfile
;
use
Portal\Timesheet\Model\VwReviewProfile
;
use
Portal\Timesheet\Model\VwReviewDetails
;
use
Portal\Timesheet\Model\VwReviewDetails
;
use
Portal\Timesheet\Model\VwRingkasanLaporan
;
use
Portal\Timesheet\Model\VwChargeable
;
use
Portal\Timesheet\Model\VwNonChargeable
;
use
Portal\Timesheet\Model\VwStaff
;
use
Illuminate\Http\Request
;
use
Illuminate\Http\Request
;
use
Illuminate\Support\Facades\Input
;
use
Illuminate\Support\Facades\Input
;
use
File
;
use
File
;
...
@@ -51,13 +55,17 @@ class ReportController extends Controller
...
@@ -51,13 +55,17 @@ class ReportController extends Controller
public
function
generateRingkasan
(
Request
$request
)
public
function
generateRingkasan
(
Request
$request
)
{
{
dd
(
$request
);
$ringkasan
=
VwRingkasanLaporan
::
all
();
$chargeproject
=
VwChargeable
::
all
();
$nonchargeproject
=
VwNonChargeable
::
all
();
$staffs
=
VwStaff
::
all
();
// dd($nonchargeproject);
$curryear
=
date
(
'Y'
);
$curryear
=
date
(
'Y'
);
if
(
$request
->
year
)
{
if
(
$request
->
year
)
{
$curryear
=
$request
->
year
;
$curryear
=
$request
->
year
;
}
}
return
view
(
'timesheet::report.ringkasan'
,
compact
(
'ringkasan'
,
'chargeproject'
,
'nonchargeproject'
,
'staffs'
));
}
}
}
}
\ No newline at end of file
packages/portal/timesheet/src/Model/VwChargeable.php
0 → 100644
View file @
18f24ba2
<?php
namespace
Portal\Timesheet\Model
;
use
Illuminate\Database\Eloquent\Model
;
use
Illuminate\Notifications\Notifiable
;
class
VwChargeable
extends
Model
{
use
Notifiable
;
/**
* The database table used by the model.
*
* @var string
*/
protected
$table
=
'vw_chargeable_project'
;
/**
* undocumented function
*
* @return void
* @author
**/
public
function
info
()
{
}
}
packages/portal/timesheet/src/Model/VwNonChargeable.php
0 → 100644
View file @
18f24ba2
<?php
namespace
Portal\Timesheet\Model
;
use
Illuminate\Database\Eloquent\Model
;
use
Illuminate\Notifications\Notifiable
;
class
VwNonChargeable
extends
Model
{
use
Notifiable
;
/**
* The database table used by the model.
*
* @var string
*/
protected
$table
=
'vw_nonchargeable_project'
;
/**
* undocumented function
*
* @return void
* @author
**/
public
function
info
()
{
}
}
packages/portal/timesheet/src/Model/VwRingkasanLaporan.php
0 → 100644
View file @
18f24ba2
<?php
namespace
Portal\Timesheet\Model
;
use
Illuminate\Database\Eloquent\Model
;
use
Illuminate\Notifications\Notifiable
;
class
VwRingkasanLaporan
extends
Model
{
use
Notifiable
;
/**
* The database table used by the model.
*
* @var string
*/
protected
$table
=
'vw_ringkasan_laporan'
;
/**
* undocumented function
*
* @return void
* @author
**/
public
function
info
()
{
}
}
packages/portal/timesheet/src/Model/VwStaff.php
0 → 100644
View file @
18f24ba2
<?php
namespace
Portal\Timesheet\Model
;
use
Illuminate\Database\Eloquent\Model
;
use
Illuminate\Notifications\Notifiable
;
class
VwStaff
extends
Model
{
use
Notifiable
;
/**
* The database table used by the model.
*
* @var string
*/
protected
$table
=
'vw_staff'
;
/**
* undocumented function
*
* @return void
* @author
**/
public
function
info
()
{
}
}
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