Commit 4dcd2aaf by Azhan Hannan

Letak bulan dan phase pada dashboard

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