protected function totalProcessCount()
    {
        $supervisors = app(SupervisorRepository::class)->all();

        return collect($supervisors)->reduce(function ($carry, $supervisor) {
            return $carry + collect($supervisor->processes)->sum();
        }, 0);
    }
protected function totalProcessCount()
    {
        $supervisors = app(SupervisorRepository::class)->all();

        return collect($supervisors)->reduce(function ($carry, $supervisor) {
            return $carry + collect($supervisor->processes)->sum();
        }, 0);
    }
protected function totalProcessCount ( ) { $ supervisors = app ( SupervisorRepository :: class ) -> all ( ) ; return collect ( $ supervisors ) -> reduce ( function ( $ carry , $ supervisor ) { return $ carry + collect ( $ supervisor -> processes ) -> sum ( ) ; } , 0 ) ; }
Get the total process count across all supervisors.

@return int
Get the total process count across all supervisors .