File: D:/HostingSpaces/SBogers10/zelfverkopen.komma.pro/app/KommaApp/Properties/PropertiesRowComposer.php
<?php
namespace App\KommaApp\Properties;
use App\KommaApp\Realworks\Models\ObjectDetailsTranslation;
use Illuminate\View\View;
class PropertiesRowComposer
{
private $propertyService;
public function __construct(PropertyService $propertyService)
{
$this->propertyService = $propertyService;
}
public function compose(View $view)
{
// $properties = [
// (object)[
// 'location' => 'Amsterdam',
// 'price' => '1.200.000',
// 'type' => 'Galerie',
// 'img' => '/img/test/house1.jpg',
// 'status' => 0
// ],
// (object)[
// 'location' => 'Amsterdam',
// 'price' => '800.000',
// 'type' => 'Bovenwoning',
// 'img' => '/img/test/house3.jpg',
// 'status' => 0
// ],(object)[
// 'location' => 'Amsterdam',
// 'price' => '960.000',
// 'type' => 'Appartement',
// 'img' => '/img/test/house4.jpg',
// 'status' => 2
// ]
// ];
$properties = $this->propertyService->getPropertiesForRow();
// debug($properties);
$view->with(compact('properties', $properties));
}
}