@extends('layout1') @section('title') {{ $seoSetting->seo_title }} @endsection @section('meta') @endsection @section('frontend-content')

{{ __('Our Property') }}

@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 >= date('Y-m-d')){ $isActivePropertyQty +=1; } } @endphp
@if ($isActivePropertyQty > 0) @foreach ($properties as $property)
properties @if ($property->property_purpose_id==1) {{ $property->propertyPurpose->translation?->title }} @elseif($property->property_purpose_id==2) {{ $property->propertyPurpose->translation?->title }} @endif @if ($property->urgent_property==1) {{ __('Urgent') }} @endif
@if ($property->property_purpose_id==1) {{ currency($property->price) }} @elseif ($property->property_purpose_id==2) {{ currency($property->price) }} / @if ($property->period=='Daily') {{ __('Daily') }} @elseif ($property->period=='Monthly') {{ __('Monthly') }} @elseif ($property->period=='Yearly') {{ __('Yearly') }} @endif @endif {{ $property->translation->title }}
  • {{ $property->number_of_bedroom }} {{ __('Bed') }}
  • {{ $property->number_of_bathroom }} {{ __('Bath') }}
  • {{ $property->area }} {{ __('Sqft') }}
@endforeach @else

{{ __('Property Not Found') }}

@endif
@if ($isActivePropertyQty > 0) @foreach ($properties as $property)
properties
@if ($property->property_purpose_id==1) {{ $property->propertyPurpose->translation?->title }} @elseif($property->property_purpose_id==2) {{ $property->propertyPurpose->translation?->title }} @endif @if ($property->urgent_property==1) {{ __('Urgent') }} @endif @if ($property->property_purpose_id==1) {{ currency($property->price ) }} @elseif ($property->property_purpose_id==2) {{ currency($property->price ) }} / @if ($property->period=='Daily') {{ __('Daily') }} @elseif ($property->period=='Monthly') {{ __('Monthly') }} @elseif ($property->period=='Yearly') {{ __('Yearly') }} @endif @endif {{ $property->translation->title }}
  • {{ $property->number_of_bedroom }} {{ __('Bed') }}
  • {{ $property->number_of_bathroom }} {{ __('Bath') }}
  • {{ $property->area }} {{ __('Sqft') }}
@endforeach @else

{{ __('Property Not Found') }}

@endif
@if ($isActivePropertyQty > 0)
{{ $properties->links('custom_paginator') }}
@endif
@endsection @push('js') @endpush