Commit 4d313346 by Azhan Hannan

dashboard staff -> set status submission

parent 4f3f3202
......@@ -96,10 +96,18 @@
<thead>
<tr>
<th style="width: 60%" class="text-center">{{data_get($value,'tm_year')}} - {{ date("F", mktime(0, 0, 0, data_get($value,'tm_month'), 10)) }} - Phase {{data_get($value,'tm_phase')}}</th>
<th style="width: 15%;" class="center aligned">{{data_get($value,'tm_timesheet_master_sts')}}</th>
<th style="width: 15%;" class="center aligned">
@if(data_get($value,'tm_timesheet_master_sts') == 1) Draft
@elseif(data_get($value,'tm_timesheet_master_sts') == 2) <i class="green check icon"></i> Submitted
@elseif(data_get($value,'tm_timesheet_master_sts') == 3) <i class="green check icon"></i> Verified by PM
@elseif(data_get($value,'tm_timesheet_master_sts') == 4) <i class="green check icon"></i> Approved by PD
@elseif(data_get($value,'tm_timesheet_master_sts') == 5) <i class="green check icon"></i> Rejected by PD
@elseif(data_get($value,'tm_timesheet_master_sts') == 6) <i class="green check icon"></i> Rejected by PM
@endif
</th>
<th style="width: 13%" class="text-center">Submitted on: {{data_get($value,'tm_submission_at')}}</th>
<th style="width: 12%" class="text-center">
<button class="center aligned ui blue icon button">View</button>
<button class="center aligned ui blue icon button">View Project</button>
</th>
</tr>
</thead>
......@@ -152,7 +160,7 @@
@endif
</td>
<td style="width: 12%;" class="text-center">
@if(data_get($tpcharge,'tp_timesheet_sts') == 5||6)
@if(data_get($tpcharge,'tp_timesheet_sts') == 5|| data_get($tpcharge,'tp_timesheet_sts') == 6)
<button class="center aligned ui green icon button">Resubmit</button>
@else
<button class="center aligned ui green icon button disabled">Resubmit</button>
......@@ -196,7 +204,7 @@
@endif
</td>
<td style="width: 12%;" class="text-center">
@if(data_get($tpoverhead,'tp_timesheet_sts') == 5||6)
@if(data_get($tpoverhead,'tp_timesheet_sts') == 5 || data_get($tpoverhead,'tp_timesheet_sts') == 6)
<button class="center aligned ui green icon button">Resubmit</button>
@else
<button class="center aligned ui green icon button disabled">Resubmit</button>
......
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