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

{{ $menus->where('id',2)->first()->navbar }}

@php $search_url = request()->fullUrl(); $get_url = substr($search_url, strpos($search_url, "?") + 1); $grid_url=''; $list_url=''; $isSortingId=0; $page_type=request()->get('page_type') ; if($page_type=='list_view'){ $grid_url=str_replace('page_type=list_view','page_type=grid_view',$search_url); $list_url=str_replace('page_type=list_view','page_type=list_view',$search_url); }else if($page_type=='grid_view'){ $grid_url=str_replace('page_type=grid_view','page_type=grid_view',$search_url); $list_url=str_replace('page_type=grid_view','page_type=list_view',$search_url); } if(request()->has('sorting_id')){ $isSortingId=1; } @endphp
@if ($isSortingId==1) @else @endif
@php $isActivePropertyQty=0; foreach ($propertyAminities as $value) { if($value->property->expired_date==null){ $isActivePropertyQty +=1; }else if($value->property->expired_date >= date('Y-m-d')){ $isActivePropertyQty +=1; } } @endphp
@if ($isActivePropertyQty > 0) @foreach ($propertyAminities as $item) @if ($item->property->expired_date==null)
properties @if ($item->property->property_purpose_id==1) {{ $item->property->propertyPurpose->custom_purpose }} @elseif($item->property->property_purpose_id==2) {{ $item->property->propertyPurpose->custom_purpose }} @endif @if ($item->property->urgent_property==1) {{ $websiteLang->where('lang_key','urgent')->first()->custom_text }} @endif
@if ($item->property->property_purpose_id==1) {{ $currency->currency_icon }}{{ $item->property->price }} @elseif ($item->property->property_purpose_id==2) {{ $currency->currency_icon }}{{ $item->property->price }} / @if ($item->property->period=='Daily') {{ $websiteLang->where('lang_key','daily')->first()->custom_text }} @elseif ($item->property->period=='Monthly') {{ $websiteLang->where('lang_key','monthly')->first()->custom_text }} @elseif ($item->property->period=='Yearly') {{ $websiteLang->where('lang_key','yearly')->first()->custom_text }} @endif @endif {{ $item->property->title }}
  • {{ $item->property->number_of_bedroom }} {{ $websiteLang->where('lang_key','bed')->first()->custom_text }}
  • {{ $item->property->number_of_bathroom }} {{ $websiteLang->where('lang_key','bath')->first()->custom_text }}
  • {{ $item->property->area }} {{ $websiteLang->where('lang_key','sqft_s')->first()->custom_text }}
@elseif($item->property->expired_date >= date('Y-m-d'))
properties @if ($item->property->property_purpose_id==1) {{ $item->property->propertyPurpose->custom_purpose }} @elseif($item->property->property_purpose_id==2) {{ $item->property->propertyPurpose->custom_purpose }} @endif @if ($item->property->urgent_property==1) {{ $websiteLang->where('lang_key','urgent')->first()->custom_text }} @endif
@if ($item->property->property_purpose_id==1) {{ $currency->currency_icon }}{{ $item->property->price }} @elseif ($item->property->property_purpose_id==2) {{ $currency->currency_icon }}{{ $item->property->price }} / @if ($item->property->period=='Daily') {{ $websiteLang->where('lang_key','daily')->first()->custom_text }} @elseif ($item->property->period=='Monthly') {{ $websiteLang->where('lang_key','monthly')->first()->custom_text }} @elseif ($item->property->period=='Yearly') {{ $websiteLang->where('lang_key','yearly')->first()->custom_text }} @endif @endif {{ $item->property->title }}
  • {{ $item->property->number_of_bedroom }} {{ $websiteLang->where('lang_key','bed')->first()->custom_text }}
  • {{ $item->property->number_of_bathroom }} {{ $websiteLang->where('lang_key','bath')->first()->custom_text }}
  • {{ $item->property->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) @foreach ($propertyAminities as $item) @if ($item->property->expired_date==null)
properties
@if ($item->property->property_purpose_id==1) {{ $item->property->propertyPurpose->custom_purpose }} @elseif($item->property->property_purpose_id==2) {{ $item->property->propertyPurpose->custom_purpose }} @endif @if ($item->property->urgent_property==1) {{ $websiteLang->where('lang_key','urgent')->first()->custom_text }} @endif @if ($item->property->property_purpose_id==1) {{ $currency->currency_icon }}{{ $item->property->price }} @elseif ($item->property->property_purpose_id==2) {{ $currency->currency_icon }}{{ $item->property->price }} / @if ($item->property->period=='Daily') {{ $websiteLang->where('lang_key','daily')->first()->custom_text }} @elseif ($item->property->period=='Monthly') {{ $websiteLang->where('lang_key','monthly')->first()->custom_text }} @elseif ($item->property->period=='Yearly') {{ $websiteLang->where('lang_key','yearly')->first()->custom_text }} @endif @endif {{ $item->property->title }}
  • {{ $item->property->number_of_bedroom }} {{ $websiteLang->where('lang_key','bed')->first()->custom_text }}
  • {{ $item->property->number_of_bathroom }} {{ $websiteLang->where('lang_key','bath')->first()->custom_text }}
  • {{ $item->property->area }} {{ $websiteLang->where('lang_key','sqft_s')->first()->custom_text }}
@elseif($item->property->expired_date >= date('Y-m-d'))
properties
@if ($item->property->property_purpose_id==1) {{ $item->property->propertyPurpose->custom_purpose }} @elseif($item->property->property_purpose_id==2) {{ $item->property->propertyPurpose->custom_purpose }} @endif @if ($item->property->urgent_property==1) {{ $websiteLang->where('lang_key','urgent')->first()->custom_text }} @endif @if ($item->property->property_purpose_id==1) {{ $currency->currency_icon }}{{ $item->property->price }} @elseif ($item->property->property_purpose_id==2) {{ $currency->currency_icon }}{{ $item->property->price }} / @if ($item->property->period=='Daily') {{ $websiteLang->where('lang_key','daily')->first()->custom_text }} @elseif ($item->property->period=='Monthly') {{ $websiteLang->where('lang_key','monthly')->first()->custom_text }} @elseif ($item->property->period=='Yearly') {{ $websiteLang->where('lang_key','yearly')->first()->custom_text }} @endif @endif {{ $item->property->title }}
  • {{ $item->property->number_of_bedroom }} {{ $websiteLang->where('lang_key','bed')->first()->custom_text }}
  • {{ $item->property->number_of_bathroom }} {{ $websiteLang->where('lang_key','bath')->first()->custom_text }}
  • {{ $item->property->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)
{{ $propertyAminities->links('user.paginator') }}
@endif
@endsection