partner = Partner::with(['hub', 'products' => function ($q) { $q->where('status', ProductStatus::Active) ->where('is_curated', true) ->where('is_available', true) ->with(['categories', 'media']) ->latest() ->limit(6); }])->findOrFail($partnerId); $this->title = $this->partner->display_name ?? $this->partner->company_name; } public function with(): array { return [ 'partner' => $this->partner, 'products' => $this->partner->products, ]; } }; ?>