In your view template, $modulo is a collection of Modulo models, not an individual Modulo instance, so you cannot get the socios property. Question is, did you want to have a single Modulo instance, or all Modulo instances; the solution will depend on which you need (your variable name changes between the controller and view from $modulos to $modulo).
(i) Collection require iteration:
// view template
@foreach ($modulos as $modulo)
@if(session()->has('es_socio') && session()->get('es_socio') == '1' && (Request::segment(2) === null || Request::segment(2) == 'resumen' || Request::segment(2) == 'consumos' || Request::segment(2) == 'dtohabermax') && $modulo->socios)
// other logic
@endforeach
(ii) Do not use all() if you want a single model instance