Example #1
0
 public function compose(View $view)
 {
     if ($view->getName() == 'frontend.property.compare_bar') {
         $propertiesInComparison = PropertyCompareHelper::getCurrentList();
         $view->with('propertiesInComparison', $propertiesInComparison);
     }
 }
 public function getCompare()
 {
     $properties = PropertyCompareHelper::getCurrentList();
     return view('frontend.property.compare', ['properties' => $properties]);
 }