Commit b0cb5b4b by Azhan Hannan

error null

parent 51041b8f
...@@ -624,7 +624,6 @@ class DashboardController extends Controller ...@@ -624,7 +624,6 @@ class DashboardController extends Controller
->with('project') ->with('project')
->first(); ->first();
// dd($profile); // dd($profile);
// $year = date('Y'); // $year = date('Y');
$phase = $profile->tp_phase; $phase = $profile->tp_phase;
...@@ -664,8 +663,13 @@ class DashboardController extends Controller ...@@ -664,8 +663,13 @@ class DashboardController extends Controller
->with('attachement') ->with('attachement')
->first(); ->first();
$chargeableproject = Tproject::where('fk_tm_id', data_get($check,'id')) // $chargeableproject = Tproject::where('fk_tm_id', data_get($check,'id'))
->where('tp_project_type', 1) // ->where('tp_project_type', 1)
// ->with('project')
// ->get();
$chargeableproject = Tproject::where('id', $request->tpid)
->with('team')
->with('project') ->with('project')
->get(); ->get();
...@@ -676,9 +680,9 @@ class DashboardController extends Controller ...@@ -676,9 +680,9 @@ class DashboardController extends Controller
$chargeablelist[] = [ $chargeablelist[] = [
'pid' => $value->td_project, 'pid' => data_get($value,'td_project'),
'pcode' => $value->project->p_project_code, 'pcode' => data_get($value,'project.p_project_code'),
'pname' => $value->project->p_project_description, 'pname' => data_get($value,'project.p_project_description'),
]; ];
......
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