group('advanced_information') ->add($this->reviews()); } private function reviews() { if (! request()->routeIs('admin.products.edit')) { return; } return tap(new Tab('reviews', trans('review::reviews.tabs.products.reviews')), function (Tab $tab) { $tab->weight(50); $tab->view('review::admin.products.tabs.reviews'); }); } }