@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 ($properties as $value) { if($value->expired_date==null){ $isActivePropertyQty +=1; }else if($value->expired_date >= date('Y-m-d')){ $isActivePropertyQty +=1; } } @endphp
@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) @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