@@ -502,7 +502,6 @@ class DashboardController extends Controller
$today=Carbon::today()->toDateString();
$profile=Tproject::where('id',$request->tpid)
->first();
...
...
@@ -577,6 +576,26 @@ class DashboardController extends Controller
publicfunctionverifyoverhead(Request$request)
{
if($request->action==2&&$request->remarks==null)
{
// dd('reject & tak komen');
$profile=Tproject::where('id',$request->tpid)
->with('team')
->with('project')
->first();
// dd($profile);
$tpid=$profile->id;
$year=$profile->tp_year;
$month=$profile->tp_month;
$phase=$profile->tp_phase;
$pm=Users::find(Auth::id());
returnredirect()->route('timesheet::dashboard.projectaction',compact('profile','pm','tpid','year','month','phase'))->with('warning','You wanted to rejected the overhead submission. Kindly give remarks for staff references. Thank you 😊');
}
$hod=Users::find(Auth::id());
$today=Carbon::today()->toDateString();
...
...
@@ -633,14 +652,14 @@ class DashboardController extends Controller