@php
$images = $project->propertyimage;
@endphp
@if(count($images)>0)
@else(count($images)==0)
@endif
@php
$prop_owner = $project->propertyownerid;
$client = new Client(['base_uri' => env('API_URL').'/api/v1/frontend']);
$response = $client->request('POST', env('API_URL').'/api/v1/frontend', [
'form_params' => [
'method'=>'propertyowner',
'propertyowner'=>$prop_owner
]
]);
$content = json_decode($response->getBody());
$propowner = $content->data->propertyowner;
@endphp
By {{$propowner[0]->name}}