/home/techb158/dev.balacoffee.com/app/Http/Controllers/hrm
Edit: /home/techb158/dev.balacoffee.com/app/Http/Controllers/hrm/CoreController.php (1667B)
id)->where('deleted_at', '=', null)->get();
return response()->json($designations);
}
public function Get_departments_by_company(Request $request)
{
$departments = Department::where('company_id' , $request->id)->where('deleted_at', '=', null)->get();
return response()->json($departments);
}
public function Get_office_shift_by_company(Request $request)
{
$office_shifts = OfficeShift::where('company_id' , $request->id)->where('deleted_at', '=', null)->get(['id','name']);
return response()->json($office_shifts);
}
public function Get_employees_by_company(Request $request)
{
$employees = Employee::where('company_id' , $request->id)->where('deleted_at', '=', null)->get(['id','username']);
return response()->json($employees);
}
}