Commit 442728a4 by Azhan Hannan

changes

parent cea3469d
......@@ -82,13 +82,18 @@
<table class="ui unstackable celled table">
<thead>
<tr>
@if( $roleid == '9' )
<th style="width: 7%;" class="text-center">Project Code</th>
<th style="width: 13%;">Project Name</th>
<th style="width: 20%;">Project Director</th>
<th style="width: 35%;">PD Remarks</th>
@else
<th style="width: 7%;" class="text-center">Project Code</th>
<th style="width: 13;">Project Name</th>
<th style="width: 15;">Project Manager</th>
<!-- <th style="width: 5%;" class="center aligned">Total Hours</th>
<th style="width: 5%;" class="center aligned">Total Days</th> -->
<th style="width: 20%">PM Remarks</th>
<th style="width: 20%">PD Remarks</th>
@endif
<th style="width: 13%" class="text-center">Status</th>
<th style="width: 12%;" class="text-center">Action</th>
</tr>
......@@ -100,11 +105,24 @@
@else
@foreach($chargeable as $key => $tpcharge)
<tr>
@if( $roleid == '9' )
<td style="width: 7%;" class="text-center">{{data_get($tpcharge,'project.p_project_code')}}</td>
<td style="width: 13%;">{{data_get($tpcharge,'tp_project_name')}}</td>
<td style="width: 20%;">{{data_get($tpcharge,'project.projectDirector.fullname')}}</td>
<td style="width: 35%">{{data_get($tpcharge,'approver_remark')}}</td>
<td style="width: 13%" class="text-center">
@if(data_get($tpcharge,'tp_timesheet_sts') == 1) Draft
@elseif(data_get($tpcharge,'tp_timesheet_sts') == 2) Submitted
@elseif(data_get($tpcharge,'tp_timesheet_sts') == 3) Auto-verified
@elseif(data_get($tpcharge,'tp_timesheet_sts') == 4) Approved by PD
@elseif(data_get($tpcharge,'tp_timesheet_sts') == 5) Rejected by PD
@elseif(data_get($tpcharge,'tp_timesheet_sts') == 6) Rejected by PM
@endif
</td>
@else
<td style="width: 7%;" class="text-center">{{data_get($tpcharge,'project.p_project_code')}}</td>
<td style="width: 13;">{{data_get($tpcharge,'tp_project_name')}}</td>
<td style="width: 15;">{{data_get($tpcharge,'project.projectManager.fullname')}}</td>
<!-- <td style="width: 5%;" class="center aligned">{{data_get($tpcharge,'tp_hours')}}</td>
<td style="width: 5%;" class="center aligned">{{data_get($tpcharge,'tp_hours')/8}}</td> -->
<td style="width: 20%">{{data_get($tpcharge,'verifier_remark')}}</td>
<td style="width: 20%">{{data_get($tpcharge,'approver_remark')}}</td>
<td style="width: 13%" class="text-center">
......@@ -116,6 +134,7 @@
@elseif(data_get($tpcharge,'tp_timesheet_sts') == 6) Rejected by PM
@endif
</td>
@endif
<td style="width: 12%;" class="text-center">
@if(data_get($tpcharge,'tp_timesheet_sts') == 5|| data_get($tpcharge,'tp_timesheet_sts') == 6)
<button class="center aligned ui red icon button" onclick="window.location.href='{{ route('timesheet::form.rejected', ['tpid' => data_get($tpcharge,'id')]) }}';">Resubmit</button>
......
......@@ -260,7 +260,7 @@ class DashboardController extends Controller
->with('bod')
->get();
return view('timesheet::dashboard.dashboardpmhod', compact('profile', 'details', 'verifier', 'overheads', 'staffinfo', 'timesheet', 'projects'));
return view('timesheet::dashboard.dashboardpmhod', compact('profile', 'details', 'verifier', 'overheads', 'staffinfo', 'timesheet', 'projects', 'roleid'));
}
if (($roleid == ('5'||'6'))) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment