Commit 4dcd2aaf by Azhan Hannan

Letak bulan dan phase pada dashboard

parent a50fd5d0
......@@ -14,7 +14,8 @@
<table class="ui unstackable celled table">
<thead>
<tr>
<th style="width: 60%;"><i class="dropdown icon"></i>{{ data_get($staff,'fullname') }}</th>
<th style="width: 40%;"><i class="dropdown icon"></i>{{ data_get($staff,'fullname') }}</th>
<th style="width: 20%" class="text-center">{{ data_get($staff,'tm_year') }} - {{ date("F", mktime(0, 0, 0, data_get($staff,'tm_month'), 10)) }} - Phase {{ data_get($staff,'tm_phase') }}</th>
<th style="width: 15%;" class="center aligned">
<?php
$over = 0;
......@@ -63,7 +64,7 @@
</thead>
@foreach($details as $key => $tp)
@if(data_get($staff, 'staff_id') == data_get($tp, 'staffid'))
@if(data_get($staff, 'tmid') == data_get($tp, 'fk_tm_id'))
<tr>
<td style="width: 25;">{{data_get($tp, 'tp_project_name')}}</td>
<td style="width: 10%;" class="center aligned">{{data_get($tp, 'tp_hours')}}</td>
......@@ -100,7 +101,7 @@
</tr>
</thead>
@foreach($details as $key => $detail)
@if(data_get($staff,'staff_id') == data_get($detail, 'staffid'))
@if(data_get($staff,'tmid') == data_get($detail, 'fk_tm_id'))
@foreach(data_get($detail,'notes') as $key => $value)
@if(data_get($value,'td_hours'))
<tr>
......
......@@ -63,6 +63,9 @@ class DashboardController extends Controller
$profile = VwReviewProfile::where('hod_id', $verifier->id)
->where('status', 2)
->with('overheads')
->orderby('tm_year', 'desc')
->orderby('tm_month', 'desc')
->orderby('tm_phase', 'desc')
->get();
$details = Tproject::where('tp_project_type', 3)
......
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