$counties = County::whereHas('items', function ($query) { $query->where('approved', 1); })->orderBy('name')->get();