Commit 24cc970b by Azhan Hannan

Notification ‘Mandays updated’ pada screen add mandays project

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