@php use GuzzleHttp\Client; $baseurl = env('API_URL'); $sort_no = Config::get('app.sort_no'); $end_no = Config::get('app.end_no'); @endphp @extends('mainlayout') @section('title') MILIKI | Home @endsection @section('content')
@if($loggedin == '1')

{{ __('messages.your_project') }}

@foreach($profile->likes as $like) @php $client = new Client(['base_uri' => env('API_URL').'/api/v1/frontend']); $response = $client->request('POST', env('API_URL').'/api/v1/frontend', [ 'form_params' => [ 'method'=>'getproperty', 'propertyid'=>$like->propertyid ] ]); $content = json_decode($response->getBody()); $data = $content->data; $project = $data->property[0]; $images = $project->propertyimage; @endphp
@if(count($images)>0) @else(count($images)==0) {{$project->name}} Image @endif
By {{$project->propertyowner->name}}

{{$project->name}}

  • {{$project->rate}}
  • {{ __('messages.from') }} TZS {{number_format($project->total_minimum_fullprice)}}
  • {{number_format($project->remaining_plots)}} {{ __('messages.plots') }}
@endforeach
@endif

{{ __('messages.popular_project') }}

@foreach($pop_projects as $project)
@php $images = $project->propertyimage; $owner_id = (($project->propertyowner->id*$sort_no)/$end_no); @endphp @if(count($images)>0) @else(count($images)==0) {{$project->name}} Image @endif
{{ __('messages.by') }}, {{$project->propertyowner->name}}

{{$project->name}}

  • {{$project->rate}}
  • {{ __('messages.from') }} TZS {{number_format($project->total_minimum_fullprice)}}
  • {{number_format($project->remaining_plots)}} {{ __('messages.plots') }}
@endforeach

{{ __('messages.new_projects') }}

@foreach($new_projects as $nproject)
@php $images = $nproject->propertyimage; @endphp @if(count($images)>0) @elseif(count($images)==0) {{$nproject->name}} Image @endif
{{ __('messages.by') }}, {{$nproject->propertyowner->name}}

{{$nproject->name}}

  • {{$nproject->rate}}
  • {{ __('messages.from') }} TZS {{number_format($nproject->total_minimum_fullprice)}}
  • {{number_format($nproject->remaining_plots)}} {{ __('messages.plots') }}
@endforeach
Start Financing Your Property Read Terms & Conditions
@endsection