HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
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));
    }

}