isocb) { $sites = $sites ->whereHas('breeder', function ($q) { $q->where('display', true)->where('show_on_non_ocb', false); })->with('breeder') ->where('ocbStatus', EleveurOcbStatus::yes()->value) ->where('ocbType', $request->ocbtype)->get(); } else { $sites = $sites ->whereHas('breeder', function ($q) { $q->where('display', true)->where('show_on_non_ocb', true); })->with('breeder') ->where('ocbType', EleveurOcbStatus::no()->value)->get(); } return new BreederMapCollection($sites); } }