Commit 24cc970b by Azhan Hannan

Notification ‘Mandays updated’ pada screen add mandays project

parent f467cb0a
......@@ -899,7 +899,7 @@ class DashboardController extends Controller
$roleid = auth()->user()->roles['0']->id;
$user = Staff_info::where('fk_users', Auth::id())->first();
// dd($user->pelulus);
// dd($user);
$checknotes = Ts_detail::where('fk_tm_id', $request->tid)
->whereNotNull('td_hours')
......
......@@ -42,6 +42,7 @@ class MaintenanceController extends Controller
$project = Project::where('p_project_type', $chargeable)
->with('projectDirector')
->with('projectManager')
->orderBy('created_at', 'desc')
->orderBy('p_project_sts', 'desc')
->get();
}
......@@ -52,6 +53,7 @@ class MaintenanceController extends Controller
->where('p_project_task_team', $user->staff_id)
->with('projectDirector')
->with('projectManager')
->orderBy('created_at', 'desc')
->orderBy('p_project_sts', 'desc')
->get();
}
......@@ -291,7 +293,7 @@ class MaintenanceController extends Controller
]);
}
return redirect()->route('timesheet::maintenance.mandays', compact('id'));
return redirect()->route('timesheet::maintenance.mandays', compact('id'))->with('success', 'Mandays updated successfully!');;
}
public function senaraiProjectTeam(Request $request)
......
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