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
eaf562e1
Commit
eaf562e1
authored
Nov 10, 2022
by
Azhan Hannan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
select approval and approve all pages
parent
37a1a6de
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
41 additions
and
7 deletions
+41
-7
packages/portal/timesheet/resources/views/dashboard/approvalaction.blade.php
+2
-1
packages/portal/timesheet/resources/views/dashboard/approveallaction.blade.php
+0
-0
packages/portal/timesheet/resources/views/dashboard/dashboardbod.blade.php
+39
-6
packages/portal/timesheet/resources/views/dashboard/selectapprovalpage.blade.php
+0
-0
packages/portal/timesheet/src/Http/Controllers/DashboardController.php
+0
-0
No files found.
packages/portal/timesheet/resources/views/dashboard/approvalaction.blade.php
View file @
eaf562e1
...
...
@@ -338,6 +338,7 @@
@endif
</div>
<div class="
ui
segment
">
<form action="
{{
route
(
'timesheet::dashboard.approval'
)
}}
" method="
POST
" class="
ui
form
">
{
{csrf_field()}
}
...
...
@@ -367,7 +368,7 @@
<div class="
two
fields
">
<div class="
field
">
<input type="
hidden
" name="
approval
" value="
{{
data_get
(
$bod
,
'id'
)
}}
">
<label>
Pelulus
</label>
<label>
Approver
</label>
<input type="
text
" readonly="
readonly
" value="
{{
data_get
(
$bod
,
'name'
)
}}
">
</div>
<div class="
field
">
...
...
packages/portal/timesheet/resources/views/dashboard/approveallaction.blade.php
0 → 100644
View file @
eaf562e1
This diff is collapsed.
Click to expand it.
packages/portal/timesheet/resources/views/dashboard/dashboardbod.blade.php
View file @
eaf562e1
...
...
@@ -54,7 +54,10 @@
</div>
<div
class=
"content"
style=
"padding-top: 0px;"
>
<form
class=
"ui form"
action=
"{{ route('timesheet::dashboard.selectapproval') }}"
method=
"POST"
>
{{csrf_field()}}
<input
type=
"hidden"
name=
"tmid"
value=
"{{data_get($staff,'tmid')}}"
>
<input
type=
"hidden"
name=
"page"
value=
"{{$page}}"
>
@if($checkchargeable)
<table
class=
"ui unstackable celled table"
>
<thead>
...
...
@@ -71,9 +74,23 @@
</thead>
@if($detail->where('tp_project_type', 1))
@foreach($detail->where('tp_project_type', 1) as $key => $chargeable)
<?php
// dd($chargeable);
?>
@if(data_get($staff,'tmid') == data_get($chargeable,'fk_tm_id'))
<tr>
<td
style=
"width: 10%;"
>
{{ data_get($chargeable, 'project.p_project_code') }}
</td>
<td
style=
"width: 10%;"
class=
"single line"
>
@if(data_get($chargeable,'tp_timesheet_sts') == 3)
<div
class=
"ui toggle checkbox"
>
<input
type=
"checkbox"
name=
"pid[{{data_get($chargeable,'id')}}]"
value=
"{{data_get($chargeable,'id')}}"
>
</div>
@else
<div
class=
"ui toggle checkbox"
>
<input
type=
"checkbox"
disabled=
"disabled"
>
</div>
@endif
{{ data_get($chargeable, 'project.p_project_code') }}
</td>
<td
style=
"width: 15%;"
>
{{ data_get($chargeable, 'tp_project_name') }}
</td>
<td
style=
"width: 10%;"
class=
"center aligned"
>
{{ data_get($chargeable, 'tp_hours') }}
</td>
<td
style=
"width: 10%;"
class=
"center aligned"
>
{{ number_format(data_get($chargeable, 'tp_hours')/8, 1, '.', '') }}
</td>
...
...
@@ -121,7 +138,18 @@
@foreach($detail->where('tp_project_type', 3) as $key => $overhead)
@if(data_get($staff,'tmid') == data_get($overhead,'fk_tm_id'))
<tr>
<td
style=
"width: 25%;"
>
{{ data_get($overhead, 'tp_project_name') }}
</td>
<td
style=
"width: 25%;"
class=
"single line"
>
@if(data_get($overhead,'tp_timesheet_sts') == 3)
<div
class=
"ui toggle checkbox"
>
<input
type=
"checkbox"
name=
"pid[{{data_get($overhead,'id')}}]"
value=
"{{data_get($overhead,'id')}}"
>
</div>
@else
<div
class=
"ui toggle checkbox"
>
<input
type=
"checkbox"
disabled=
"disabled"
>
</div>
@endif
{{ data_get($overhead, 'tp_project_name') }}
</td>
<td
style=
"width: 10%;"
class=
"center aligned"
>
{{ data_get($overhead, 'tp_hours') }}
</td>
<td
style=
"width: 10%;"
class=
"center aligned"
>
{{ number_format(data_get($overhead, 'tp_hours')/8, 1, '.', '') }}
</td>
<td
style=
"width: 15%;"
>
{{data_get($overhead, 'verifier_remark')}}
</td>
...
...
@@ -138,11 +166,11 @@
</td>
<td
style=
"width: 10%;"
class=
"text-center single line"
>
@if(data_get($overhead, 'tp_timesheet_sts') == 3)
<button
class=
"center aligned ui green icon button"
onclick=
"window.location.href='{{ route('timesheet::dashboard.approvalaction', ['tpid'=>data_get($overhead, 'id'), 'phase'=>data_get($overhead, 'tp_phase'), 'month'=>data_get($overhead, 'tp_month'), 'year'=>data_get($overhead, 'tp_year'), 'page'=>$page ]) }}';"
>
Approval
</button>
<button
type=
"button"
class=
"center aligned ui green icon button"
onclick=
"window.location.href='{{ route('timesheet::dashboard.approvalaction', ['tpid'=>data_get($overhead, 'id'), 'phase'=>data_get($overhead, 'tp_phase'), 'month'=>data_get($overhead, 'tp_month'), 'year'=>data_get($overhead, 'tp_year'), 'page'=>$page ]) }}';"
>
Approval
</button>
@else
<button
class=
"center aligned ui green icon button disabled"
>
Approval
</button>
<button
type=
"button"
class=
"center aligned ui green icon button disabled"
>
Approval
</button>
@endif
<button
class=
"center aligned ui blue icon button"
onclick=
"window.location.href='{{ route('timesheet::dashboard.timesheetViewer', [ 'user'=>data_get($staff,'staffid') ,'phase' => data_get($staff,'phase'), 'month' => data_get($staff,'month'), 'year' => data_get($staff,'year')]) }}';"
target=
'_blank'
>
View
</button
>
<a
href=
"{{ route('timesheet::dashboard.timesheetViewer', [ 'user'=>data_get($staff,'staffid') ,'phase' => data_get($staff,'phase'), 'month' => data_get($staff,'month'), 'year' => data_get($staff,'year')]) }}"
type=
"button"
class=
"center aligned ui blue icon button"
target=
'_blank'
>
View
</a
>
</td>
</tr>
@endif
...
...
@@ -247,6 +275,11 @@
</tbody>
</table>
@endif
<button
type=
"submit"
class=
"center aligned ui green icon button"
>
Approve
</button>
<button
type=
"button"
class=
"center aligned ui green icon button"
onclick=
"window.location.href='{{ route('timesheet::dashboard.approveallaction', ['tmid'=>data_get($staff, 'tmid'), 'phase'=>data_get($staff, 'phase'), 'month'=>data_get($staff, 'month'), 'year'=>data_get($staff, 'year'), 'page'=>$page ]) }}';"
>
Approve All
</button>
</form>
</div>
@endif
...
...
packages/portal/timesheet/resources/views/dashboard/selectapprovalpage.blade.php
0 → 100644
View file @
eaf562e1
This diff is collapsed.
Click to expand it.
packages/portal/timesheet/src/Http/Controllers/DashboardController.php
View file @
eaf562e1
This diff is collapsed.
Click to expand it.
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