services() ->with([ 'product.category', 'product.server', 'plan', 'proxmoxServer', ]) ->orderBy('created_at', 'desc'); if ($this->status) { $query->where('status', $this->status); } return view('services.index', [ 'services' => $query->paginate(config('settings.pagination')), ])->layoutData([ 'title' => 'Services', 'sidebar' => true, ]); } }