public function totalTimeSpent() { return DB::table('tasks_time')->select(DB::raw('SUM(time)'))->get(); }