@extends('layouts.user.layout') @section('title') {{ $user->name }} @endsection @section('user-content')

{{ $user->name }}

agent img

{{ $user->name }}

{!! clean($user->about) !!}

@if ($user->phone) {{ $user->phone }} @endif @if ($user->email) {{ $user->email }} @endif @if ($user->website) {{ $user->website }} @endif @if ($user->address)

{{ $user->address }}

@endif
@if ($user_type==1) @else @endif
@php $isActivePropertyQty=0; foreach ($properties as $value) { if($value->expired_date==null){ $isActivePropertyQty +=1; }else if($value->expired_date >= date('Y-m-d')){ $isActivePropertyQty +=1; } } @endphp

{{ $websiteLang->where('lang_key','properties')->first()->custom_text }}

@if ($isActivePropertyQty > 0) @foreach ($properties as $item) @if ($item->expired_date==null)
properties @if ($item->property_purpose_id==1) {{ $item->propertyPurpose->custom_purpose }} @elseif($item->property_purpose_id==2) {{ $item->propertyPurpose->custom_purpose }} @endif @if ($item->urgent_property==1) {{ $websiteLang->where('lang_key','urgent')->first()->custom_text }} @endif
@if ($item->property_purpose_id==1) {{ $currency->currency_icon }}{{ $item->price }} @elseif ($item->property_purpose_id==2) {{ $currency->currency_icon }}{{ $item->price }} / @if ($item->period=='Daily') {{ $websiteLang->where('lang_key','daily')->first()->custom_text }} @elseif ($item->period=='Monthly') {{ $websiteLang->where('lang_key','monthly')->first()->custom_text }} @elseif ($item->period=='Yearly') {{ $websiteLang->where('lang_key','yearly')->first()->custom_text }} @endif @endif {{ $item->title }}
  • {{ $item->number_of_bedroom }} {{ $websiteLang->where('lang_key','bed')->first()->custom_text }}
  • {{ $item->number_of_bathroom }} {{ $websiteLang->where('lang_key','bath')->first()->custom_text }}
  • {{ $item->area }} {{ $websiteLang->where('lang_key','sqft_s')->first()->custom_text }}
@elseif($item->expired_date >= date('Y-m-d'))
properties @if ($item->property_purpose_id==1) {{ $item->propertyPurpose->custom_purpose }} @elseif($item->property_purpose_id==2) {{ $item->propertyPurpose->custom_purpose }} @endif @if ($item->urgent_property==1) {{ $websiteLang->where('lang_key','urgent')->first()->custom_text }} @endif
@if ($item->property_purpose_id==1) {{ $currency->currency_icon }}{{ $item->price }} @elseif ($item->property_purpose_id==2) {{ $currency->currency_icon }}{{ $item->price }} / @if ($item->period=='Daily') {{ $websiteLang->where('lang_key','daily')->first()->custom_text }} @elseif ($item->period=='Monthly') {{ $websiteLang->where('lang_key','monthly')->first()->custom_text }} @elseif ($item->period=='Yearly') {{ $websiteLang->where('lang_key','yearly')->first()->custom_text }} @endif @endif {{ $item->title }}
  • {{ $item->number_of_bedroom }} {{ $websiteLang->where('lang_key','bed')->first()->custom_text }}
  • {{ $item->number_of_bathroom }} {{ $websiteLang->where('lang_key','bath')->first()->custom_text }}
  • {{ $item->area }} {{ $websiteLang->where('lang_key','sqft_s')->first()->custom_text }}
@endif @endforeach @else

{{ $websiteLang->where('lang_key','property_not_found')->first()->custom_text }}

@endif @if ($isActivePropertyQty > 0)
{{ $properties->links('user.paginator') }}
@endif
@if ($isActivePropertyQty > 0) @foreach ($properties as $item) @if ($item->expired_date==null)
properties
@if ($item->property_purpose_id==1) {{ $item->propertyPurpose->custom_purpose }} @elseif($item->property_purpose_id==2) {{ $item->propertyPurpose->custom_purpose }} @endif @if ($item->urgent_property==1) {{ $websiteLang->where('lang_key','urgent')->first()->custom_text }} @endif @if ($item->property_purpose_id==1) {{ $currency->currency_icon }}{{ $item->price }} @elseif ($item->property_purpose_id==2) {{ $currency->currency_icon }}{{ $item->price }} / @if ($item->period=='Daily') {{ $websiteLang->where('lang_key','daily')->first()->custom_text }} @elseif ($item->period=='Monthly') {{ $websiteLang->where('lang_key','monthly')->first()->custom_text }} @elseif ($item->period=='Yearly') {{ $websiteLang->where('lang_key','yearly')->first()->custom_text }} @endif @endif {{ $item->title }}
  • {{ $item->number_of_bedroom }} {{ $websiteLang->where('lang_key','bed')->first()->custom_text }}
  • {{ $item->number_of_bathroom }} {{ $websiteLang->where('lang_key','bath')->first()->custom_text }}
  • {{ $item->area }} {{ $websiteLang->where('lang_key','sqft_s')->first()->custom_text }}
@elseif($item->expired_date >= date('Y-m-d'))
properties
@if ($item->property_purpose_id==1) {{ $item->propertyPurpose->custom_purpose }} @elseif($item->property_purpose_id==2) {{ $item->propertyPurpose->custom_purpose }} @endif @if ($item->urgent_property==1) {{ $websiteLang->where('lang_key','urgent')->first()->custom_text }} @endif @if ($item->property_purpose_id==1) {{ $currency->currency_icon }}{{ $item->price }} @elseif ($item->property_purpose_id==2) {{ $currency->currency_icon }}{{ $item->price }} / @if ($item->period=='Daily') {{ $websiteLang->where('lang_key','daily')->first()->custom_text }} @elseif ($item->period=='Monthly') {{ $websiteLang->where('lang_key','monthly')->first()->custom_text }} @elseif ($item->period=='Yearly') {{ $websiteLang->where('lang_key','yearly')->first()->custom_text }} @endif @endif {{ $item->title }}
  • {{ $item->number_of_bedroom }} {{ $websiteLang->where('lang_key','bed')->first()->custom_text }}
  • {{ $item->number_of_bathroom }} {{ $websiteLang->where('lang_key','bath')->first()->custom_text }}
  • {{ $item->area }} {{ $websiteLang->where('lang_key','sqft_s')->first()->custom_text }}
@endif @endforeach @else

{{ $websiteLang->where('lang_key','property_not_found')->first()->custom_text }}

@endif @if ($isActivePropertyQty > 0)
{{ $properties->links('user.paginator') }}
@endif
@endsection