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
b96e2a42
Commit
b96e2a42
authored
Oct 07, 2022
by
Azhan Hannan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update dashboard approval
parent
2fd63eca
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
30 deletions
+30
-30
packages/portal/timesheet/resources/views/dashboard/dashboardbod.blade.php
+29
-28
packages/portal/timesheet/src/Http/Controllers/DashboardController.php
+1
-2
No files found.
packages/portal/timesheet/resources/views/dashboard/dashboardbod.blade.php
View file @
b96e2a42
...
@@ -67,35 +67,36 @@
...
@@ -67,35 +67,36 @@
<th
style=
"width: 10%;"
class=
"center aligned"
>
Action
</th>
<th
style=
"width: 10%;"
class=
"center aligned"
>
Action
</th>
</tr>
</tr>
</thead>
</thead>
@if($detail->where('tp_project_type', 1)
&&
data_get($staff,'tmid') == data_get($chargeable,'fk_tm_id')
)
@if($detail->where('tp_project_type', 1))
@foreach($detail->where('tp_project_type', 1) as $key => $chargeable)
@foreach($detail->where('tp_project_type', 1) as $key => $chargeable)
<tr>
@if(data_get($staff,'tmid') == data_get($chargeable,'fk_tm_id'))
<td
style=
"width: 10%;"
>
{{ data_get($chargeable, 'project.p_project_code') }}
</td>
<tr>
<td
style=
"width: 15%;"
>
{{ data_get($chargeable, 'tp_project_name') }}
</td>
<td
style=
"width: 10%;"
>
{{ data_get($chargeable, 'project.p_project_code') }}
</td>
<td
style=
"width: 10%;"
class=
"center aligned"
>
{{ data_get($chargeable, 'tp_hours') }}
</td>
<td
style=
"width: 15%;"
>
{{ data_get($chargeable, 'tp_project_name') }}
</td>
<td
style=
"width: 10%;"
class=
"center aligned"
>
{{ number_format(data_get($chargeable, 'tp_hours')/8, 1, '.', '') }}
</td>
<td
style=
"width: 10%;"
class=
"center aligned"
>
{{ data_get($chargeable, 'tp_hours') }}
</td>
<td
style=
"width: 15%;"
>
{{data_get($chargeable, 'verifier_remark')}}
</td>
<td
style=
"width: 10%;"
class=
"center aligned"
>
{{ number_format(data_get($chargeable, 'tp_hours')/8, 1, '.', '') }}
</td>
<td
style=
"width: 15%;"
>
{{data_get($chargeable, 'approver_remark')}}
</td>
<td
style=
"width: 15%;"
>
{{data_get($chargeable, 'verifier_remark')}}
</td>
<td
style=
"width: 15%;"
class=
"center aligned"
>
<td
style=
"width: 15%;"
>
{{data_get($chargeable, 'approver_remark')}}
</td>
@if(data_get($chargeable, 'tp_timesheet_sts') == 1 || data_get($chargeable, 'tp_timesheet_sts') == null) In Preparation
<td
style=
"width: 15%;"
class=
"center aligned"
>
@elseif(data_get($chargeable, 'tp_timesheet_sts') == 2)
<i
class=
"red attention icon"
></i>
Submitted
@if(data_get($chargeable, 'tp_timesheet_sts') == 1 || data_get($chargeable, 'tp_timesheet_sts') == null) In Preparation
@elseif(data_get($chargeable, 'tp_timesheet_sts') == 3)
<i
class=
"red attention icon"
></i>
Verified by PM
@elseif(data_get($chargeable, 'tp_timesheet_sts') == 2)
<i
class=
"red attention icon"
></i>
Submitted
@elseif(data_get($chargeable, 'tp_timesheet_sts') == 4)
<i
class=
"green check icon"
></i>
Verified by PD
@elseif(data_get($chargeable, 'tp_timesheet_sts') == 3)
<i
class=
"red attention icon"
></i>
Verified by PM
@elseif(data_get($chargeable, 'tp_timesheet_sts') == 5)
<i
class=
"red attention icon"
></i>
Dissaproved by PD
@elseif(data_get($chargeable, 'tp_timesheet_sts') == 4)
<i
class=
"green check icon"
></i>
Verified by PD
@elseif(data_get($chargeable, 'tp_timesheet_sts') == 6)
<i
class=
"red attention icon"
></i>
Rejected by PM
@elseif(data_get($chargeable, 'tp_timesheet_sts') == 5)
<i
class=
"red attention icon"
></i>
Dissaproved by PD
@elseif(data_get($chargeable, 'tp_timesheet_sts') == 7)
<i
class=
"red attention icon"
></i>
Rejected by HR
@elseif(data_get($chargeable, 'tp_timesheet_sts') == 6)
<i
class=
"red attention icon"
></i>
Rejected by PM
@endif
@elseif(data_get($chargeable, 'tp_timesheet_sts') == 7)
<i
class=
"red attention icon"
></i>
Rejected by HR
</td>
@endif
<td
style=
"width: 10%;"
class=
"text-center single line"
>
</td>
@if(data_get($chargeable, 'tp_timesheet_sts') == 3)
<td
style=
"width: 10%;"
class=
"text-center single line"
>
<button
class=
"center aligned ui green icon button"
onclick=
"window.location.href='{{ route('timesheet::dashboard.approvalaction', ['tpid'=>data_get($chargeable, 'id'), 'phase'=>data_get($chargeable, 'tp_phase'), 'month'=>data_get($chargeable, 'tp_month'), 'year'=>data_get($chargeable, 'tp_year'), 'page'=>$page ]) }}';"
>
Approval
</button>
@if(data_get($chargeable, 'tp_timesheet_sts') == 3)
@else
<button
class=
"center aligned ui green icon button"
onclick=
"window.location.href='{{ route('timesheet::dashboard.approvalaction', ['tpid'=>data_get($chargeable, 'id'), 'phase'=>data_get($chargeable, 'tp_phase'), 'month'=>data_get($chargeable, 'tp_month'), 'year'=>data_get($chargeable, 'tp_year'), 'page'=>$page ]) }}';"
>
Approval
</button>
<button
class=
"center aligned ui green icon button disabled"
>
Approval
</button>
@else
@endif
<button
class=
"center aligned ui green icon button disabled"
>
Approval
</button>
</td>
@endif
</tr>
</td>
@endforeach
</tr>
@endif
@endforeach
@endif
@endif
</table>
</table>
@endif
@endif
...
...
packages/portal/timesheet/src/Http/Controllers/DashboardController.php
View file @
b96e2a42
...
@@ -811,7 +811,6 @@ class DashboardController extends Controller
...
@@ -811,7 +811,6 @@ class DashboardController extends Controller
->
where
(
'td_project'
,
$pid
)
->
where
(
'td_project'
,
$pid
)
->
update
([
'td_timesheet_sts'
=>
5
]);
->
update
([
'td_timesheet_sts'
=>
5
]);
}
else
{
}
else
{
dd
(
'sini'
);
Ts_detail
::
where
(
'fk_tm_id'
,
$tmid
)
Ts_detail
::
where
(
'fk_tm_id'
,
$tmid
)
->
where
(
'fk_o_id'
,
$oid
)
->
where
(
'fk_o_id'
,
$oid
)
->
update
([
'td_timesheet_sts'
=>
5
]);
->
update
([
'td_timesheet_sts'
=>
5
]);
...
@@ -829,7 +828,7 @@ class DashboardController extends Controller
...
@@ -829,7 +828,7 @@ class DashboardController extends Controller
->
update
(
->
update
(
[
[
'tm_timesheet_master_sts'
=>
5
,
'tm_timesheet_master_sts'
=>
5
,
'
h
od_rejected_at'
=>
$today
,
'
b
od_rejected_at'
=>
$today
,
]);
]);
}
}
...
...
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