File: D:/HostingSpaces/SBogers10/immoginis.komma.pro/app/Komma/Properties/ReferencesComposer.php
<?php
namespace Komma\Properties;
class ReferencesComposer
{
private $propertyService;
public function __construct(PropertyService $propertyService)
{
$this->propertyService = $propertyService;
}
public function compose($view)
{
$this->propertyService->updateFilterQuery();
$properties = $this->propertyService->decodeProperties($this->propertyService->getReferences());
$references = [];
foreach ($properties as $property){
if(in_array($property->decoded_info->SubStatus, ['6', '13'])) $references[] = $property;
}
return $view->with(['properties' => $references]);
}
}