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
fcd42909
Commit
fcd42909
authored
Nov 16, 2022
by
Azhan Hannan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changes for pilot
parent
087759c6
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
47 additions
and
42 deletions
+47
-42
packages/portal/timesheet/resources/views/dashboard/timesheetViewer.blade.php
+13
-15
packages/portal/timesheet/resources/views/report/ringkasanLaporan.blade.php
+12
-10
packages/portal/timesheet/src/Http/Controllers/DashboardController.php
+1
-1
packages/portal/timesheet/src/Model/Staff_info.php
+5
-0
packages/portal/timesheet/src/ServiceProvider.php
+16
-16
No files found.
packages/portal/timesheet/resources/views/dashboard/timesheetViewer.blade.php
View file @
fcd42909
...
@@ -583,31 +583,29 @@
...
@@ -583,31 +583,29 @@
</table>
</table>
</div>
</div>
<
!-- <
div class="
ui
segment
">
<div class="
ui
segment
">
<table id="
printtable7
" class="
ui
celled
structured
table
unstackable
">
<table id="
printtable7
" class="
ui
celled
structured
table
unstackable
">
<thead>
<thead>
<tr>
<tr>
<th class="
center
aligned
">Submitted at</th>
<th style="
width
:
33
%
;
" class="
center
aligned
">Staff Signature</th>
<th class="
center
aligned
">Verified by</th>
<th style="
width
:
33
%
;
" class="
center
aligned
">Reviewed by</th>
<th class="
center
aligned
">Verified at</th>
<th style="
width
:
33
%
;
" class="
center
aligned
">Approved by</th>
<th class="
center
aligned
">Approved by</th>
<th class="
center
aligned
">Approved at</th>
</tr>
</tr>
</thead>
</thead>
<tbody>
<tbody>
<tr>
<tr>
<?php
<td style="
width
:
33
%
;
" class="
center
aligned
"><br><br></td>
//
$verifiername
=
$approvalname
= "";
<td style="
width
:
33
%
;
" class="
center
aligned
"><br><br></td>
?
>
<td style="
width
:
33
%
;
" class="
center
aligned
"><br><br></td
>
<td class="
center
aligned
">@if(
$check
){{ data_get(
$check
,'tm_submission_at') }}@endif</td
>
</tr
>
<td class="
center
aligned
">@if(
$check
){{ data_get(
$profile
,'HOD_NAME') }}@endif</td
>
<tr
>
<td
class="
center
aligned
">@if(
$check
){{ data_get(
$check
,'tm_verified_at
') }}@endif</td>
<td
style="
width
:
33
%
;
" class="
center
aligned
">@if(
$profile
){{ data_get(
$profile
,'STAFF_NAME
') }}@endif</td>
<td
class="
center
aligned
">@if(
$check
){{ data_get(
$profile
,'B
OD_NAME') }}@endif</td>
<td
style="
width
:
33
%
;
" class="
center
aligned
">@if(
$profile
){{ data_get(
$profile
,'H
OD_NAME') }}@endif</td>
<td
class="
center
aligned
">@if(
$check
)
{
{$check->tm_approved_at
}
}
@endif</td>
<td
style="
width
:
33
%
;
" class="
center
aligned
">@if(
$profile
){{ data_get(
$profile
,'BOD_NAME')
}}@endif</td>
</tr>
</tr>
</tbody>
</tbody>
</table>
</table>
</div>
-->
</div>
</div>
</div>
<br>
<br>
...
...
packages/portal/timesheet/resources/views/report/ringkasanLaporan.blade.php
View file @
fcd42909
...
@@ -2,22 +2,24 @@
...
@@ -2,22 +2,24 @@
@
section
(
'content'
)
@
section
(
'content'
)
<
div
class
="
ui
segment
">
<
div
class
="
ui
tall
stacked
segment
">
<a class="
ui
green
left
ribbon
label
">Report Summary </a>
<a class="
ui
green
left
ribbon
label
">Report Summary </a>
<br><br>
<br><br>
<form class="
ui
form
" action="
{{
route
(
'timesheet::report.generateRingkasan'
)
}}
" method="
POST
">
<form class="
ui
form
" action="
{{
route
(
'timesheet::report.generateRingkasan'
)
}}
" method="
POST
">
{
{csrf_field()}
}
{
{csrf_field()}
}
<div class="
five
wide
field
">
<div class="
one
fields
">
<label>Department</label>
<div class="
six
wide
field
">
<select name="
dept
" class="
ui
fluid
dropdown
" required="
required
">
<label>Department</label>
<option value="
all
">All staffs</option>
<select name="
dept
" class="
ui
fluid
dropdown
" required="
required
">
@foreach(
$dept
as
$key
=>
$value
)
<option value="
all
">All staffs</option>
<option value="
{{
data_get
(
$value
,
'id'
)}}
">{{ data_get(
$value
,'description') }}</option>
@foreach(
$dept
as
$key
=>
$value
)
@endforeach
<option value="
{{
data_get
(
$value
,
'id'
)}}
">{{ data_get(
$value
,'description') }}</option>
</select>
@endforeach
</div>
</select>
</div>
</div>
<div class="
two
fields
">
<div class="
two
fields
">
<div class="
three
wide
field
">
<div class="
three
wide
field
">
...
...
packages/portal/timesheet/src/Http/Controllers/DashboardController.php
View file @
fcd42909
...
@@ -1246,7 +1246,7 @@ class DashboardController extends Controller
...
@@ -1246,7 +1246,7 @@ class DashboardController extends Controller
if
(
isset
(
$request
->
user
))
{
if
(
isset
(
$request
->
user
))
{
$user
=
Staff_info
::
where
(
'staff_id'
,
$request
->
user
)
$user
=
Staff_info
::
where
(
'staff_id'
,
$request
->
user
)
->
first
();
->
first
();
}
}
$profile
=
VwViewer
::
where
(
'STAFF_ID'
,
$user
->
staff_id
)
$profile
=
VwViewer
::
where
(
'STAFF_ID'
,
$user
->
staff_id
)
...
...
packages/portal/timesheet/src/Model/Staff_info.php
View file @
fcd42909
...
@@ -33,6 +33,11 @@ class Staff_info extends Model
...
@@ -33,6 +33,11 @@ class Staff_info extends Model
return
$this
->
hasOne
(
'Portal\Timesheet\Model\Staff_info'
,
'id'
,
'penyokong'
);
return
$this
->
hasOne
(
'Portal\Timesheet\Model\Staff_info'
,
'id'
,
'penyokong'
);
}
}
// public function infopelulus()
// {
// return $this->hasOne('Portal\Timesheet\Model\Staff_info','id','pelulus');
// }
// public function project_code()
// public function project_code()
// {
// {
// return $this->hasMany('Portal\Timesheet\Model\Ts_detail','td_project','id');
// return $this->hasMany('Portal\Timesheet\Model\Ts_detail','td_project','id');
...
...
packages/portal/timesheet/src/ServiceProvider.php
View file @
fcd42909
...
@@ -86,22 +86,22 @@ class ServiceProvider extends BaseServiceProvider
...
@@ -86,22 +86,22 @@ class ServiceProvider extends BaseServiceProvider
->
data
(
'icon'
,
'calendar alternate outline icon'
)
->
data
(
'icon'
,
'calendar alternate outline icon'
)
->
active
(
'timesheetViewer/*'
)
->
active
(
'timesheetViewer/*'
)
->
data
(
'permission'
,
Permission
::
tsviewer
);
->
data
(
'permission'
,
Permission
::
tsviewer
);
//
$form->add(__('Chargeable Verification'), route('timesheet::dashboard.filterProjectVerify'))
$form
->
add
(
__
(
'Chargeable Verification'
),
route
(
'timesheet::dashboard.filterProjectVerify'
))
//
->data('icon', 'calendar alternate outline icon')
->
data
(
'icon'
,
'calendar alternate outline icon'
)
//
->active('timesheetApproval/*')
->
active
(
'timesheetApproval/*'
)
//
->data('permission', Permission::pmverify);
->
data
(
'permission'
,
Permission
::
pmverify
);
//
$form->add(__('Chargeable Approval'))
$form
->
add
(
__
(
'Chargeable Approval'
))
//
->data('icon', 'calendar alternate outline icon')
->
data
(
'icon'
,
'calendar alternate outline icon'
)
//
->active('timesheetApproval/*')
->
active
(
'timesheetApproval/*'
)
//
->data('permission', Permission::pdapproval);
->
data
(
'permission'
,
Permission
::
pdapproval
);
//
$form->add(__('Overhead Review'), route('timesheet::dashboard.filterReview'))
$form
->
add
(
__
(
'Overhead Review'
),
route
(
'timesheet::dashboard.filterReview'
))
//
->data('icon', 'calendar alternate outline icon')
->
data
(
'icon'
,
'calendar alternate outline icon'
)
//
->active('timesheetReview/*')
->
active
(
'timesheetReview/*'
)
//
->data('permission', Permission::kehadiran);
->
data
(
'permission'
,
Permission
::
kehadiran
);
//
$form->add(__('Timesheet Approval'), route('timesheet::dashboard.filterApproval'))
$form
->
add
(
__
(
'Timesheet Approval'
),
route
(
'timesheet::dashboard.filterApproval'
))
//
->data('icon', 'calendar alternate outline icon')
->
data
(
'icon'
,
'calendar alternate outline icon'
)
//
->active('timesheetApproval/*')
->
active
(
'timesheetApproval/*'
)
//
->data('permission', Permission::tsapproval);
->
data
(
'permission'
,
Permission
::
tsapproval
);
$laporan
=
$this
->
app
[
'laravolt.menu'
]
->
add
(
__
(
'Report'
))
->
data
(
'icon'
,
'align justify'
);
$laporan
=
$this
->
app
[
'laravolt.menu'
]
->
add
(
__
(
'Report'
))
->
data
(
'icon'
,
'align justify'
);
$laporan
->
add
(
__
(
'Report Summary'
),
route
(
'timesheet::report.ringkasanLaporan'
))
$laporan
->
add
(
__
(
'Report Summary'
),
route
(
'timesheet::report.ringkasanLaporan'
))
...
...
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