@extends('layouts.user.layout') @section('title') {{ $seo_text->title }} @endsection @section('meta') @endsection @section('user-content')
@php $about_section=$sections->where('id',11)->first(); @endphp @if ($about_section->show_homepage==1)
about images

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

@foreach ($overviews->take($about_section->content_quantity) as $overview)

{{ $overview->qty }}

{{ $overview->name }}

@endforeach
@endif @php $top_property_section=$sections->where('id',3)->first(); @endphp @if ($top_property_section->show_homepage==1)

{{ $top_property_section->header }}

{{ $top_property_section->description }}
@foreach ($properties->where('top_property',1)->take($top_property_section->content_quantity) as $top_item) @if ($top_item->expired_date==null)
properties @if ($top_item->property_purpose_id==1) {{ $top_item->propertyPurpose->custom_purpose }} @elseif($top_item->property_purpose_id==2) {{ $top_item->propertyPurpose->custom_purpose }} @endif @if ($top_item->urgent_property==1) {{ $websiteLang->where('lang_key','urgent')->first()->custom_text }} @endif
@if ($top_item->property_purpose_id==1) {{ $currency->currency_icon }}{{ $top_item->price }} @elseif ($top_item->property_purpose_id==2) {{ $currency->currency_icon }}{{ $top_item->price }} / @if ($top_item->period=='Daily') {{ $websiteLang->where('lang_key','daily')->first()->custom_text }} @elseif ($top_item->period=='Monthly') {{ $websiteLang->where('lang_key','monthly')->first()->custom_text }} @elseif ($top_item->period=='Yearly') {{ $websiteLang->where('lang_key','yearly')->first()->custom_text }} @endif @endif {{ $top_item->title }}
  • {{ $top_item->number_of_bedroom }} {{ $websiteLang->where('lang_key','bed')->first()->custom_text }}
  • {{ $top_item->number_of_bathroom }} {{ $websiteLang->where('lang_key','bath')->first()->custom_text }}
  • {{ $top_item->area }} {{ $websiteLang->where('lang_key','sqft_s')->first()->custom_text }}
@elseif($top_item->expired_date >= date('Y-m-d'))
properties @if ($top_item->property_purpose_id==1) {{ $top_item->propertyPurpose->custom_purpose }} @elseif($top_item->property_purpose_id==2) {{ $top_item->propertyPurpose->custom_purpose }} @endif @if ($top_item->urgent_property==1) {{ $websiteLang->where('lang_key','urgent')->first()->custom_text }} @endif
@if ($top_item->property_purpose_id==1) {{ $currency->currency_icon }}{{ $top_item->price }} @elseif ($top_item->property_purpose_id==2) {{ $currency->currency_icon }}{{ $top_item->price }} / @if ($top_item->period=='Daily') {{ $websiteLang->where('lang_key','daily')->first()->custom_text }} @elseif ($top_item->period=='Monthly') {{ $websiteLang->where('lang_key','monthly')->first()->custom_text }} @elseif ($top_item->period=='Yearly') {{ $websiteLang->where('lang_key','yearly')->first()->custom_text }} @endif @endif {{ $top_item->title }}
  • {{ $top_item->number_of_bedroom }} {{ $websiteLang->where('lang_key','bed')->first()->custom_text }}
  • {{ $top_item->number_of_bathroom }} {{ $websiteLang->where('lang_key','bath')->first()->custom_text }}
  • {{ $top_item->area }} {{ $websiteLang->where('lang_key','sqft_s')->first()->custom_text }}
@endif @endforeach
@endif @php $feature_property=$sections->where('id',4)->first(); @endphp @if ($feature_property->show_homepage==1) @endif @php $urgent_property=$sections->where('id',12)->first(); @endphp @if ($urgent_property->show_homepage==1)

{{ $urgent_property->header }}

{{ $urgent_property->description }}
@foreach ($properties->where('urgent_property',1)->take($urgent_property->content_quantity) as $urgent_item) @if ($featured_item->expired_date==null)
top properties
{{ $urgent_item->title }} @if ($urgent_item->property_purpose_id==1)

{{ $currency->currency_icon }}{{ $urgent_item->price }}

@elseif ($urgent_item->property_purpose_id==2)

{{ $currency->currency_icon }}{{ $urgent_item->price }} / @if ($urgent_item->period=='Daily') {{ $websiteLang->where('lang_key','daily')->first()->custom_text }} @elseif ($urgent_item->period=='Monthly') {{ $websiteLang->where('lang_key','monthly')->first()->custom_text }} @elseif ($urgent_item->period=='Yearly') {{ $websiteLang->where('lang_key','yearly')->first()->custom_text }} @endif

@endif
@elseif($featured_item->expired_date >= date('Y-m-d'))
top properties
{{ $urgent_item->title }} @if ($urgent_item->property_purpose_id==1)

{{ $currency->currency_icon }}{{ $urgent_item->price }}

@elseif ($urgent_item->property_purpose_id==2)

{{ $currency->currency_icon }}{{ $urgent_item->price }} / @if ($urgent_item->period=='Daily') {{ $websiteLang->where('lang_key','daily')->first()->custom_text }} @elseif ($urgent_item->period=='Monthly') {{ $websiteLang->where('lang_key','monthly')->first()->custom_text }} @elseif ($urgent_item->period=='Yearly') {{ $websiteLang->where('lang_key','yearly')->first()->custom_text }} @endif

@endif
@endif @endforeach
@endif @php $service_section=$sections->where('id',6)->first(); @endphp @if ($service_section->show_homepage==1)

{{ $service_bg->title }}

{{ $service_bg->description }}
@foreach ($services->take($service_section->content_quantity) as $service_item)

{{ $service_item->name }}

{{ $service_item->description }}

@endforeach
@endif @php $agent_section=$sections->where('id',5)->first(); @endphp @if ($agent_section->show_homepage==1)

{{ $agent_section->header }}

{{ $agent_section->description }}
@foreach ($agents->take($agent_section->content_quantity) as $agent) @php $isOrder=$orders->where('user_id',$agent->id)->count(); @endphp @if ($isOrder >0)
team images {{ $agent->name }}

{{ $agent->address }}

@endif @endforeach
@endif @php $blog_section=$sections->where('id',7)->first(); @endphp @if ($blog_section->show_homepage==1)

{{ $blog_section->header }}

{{ $blog_section->description }}
@php $colorId=1; @endphp @foreach ($blogs->take($blog_section->content_quantity) as $index => $blog_item) @php if($index %4 ==0){ $colorId=1; } $color=""; if($colorId==1){ $color=""; }else if($colorId==2){ $color="oreangr"; }else if($colorId==3){ $color="gren"; }else if($colorId==4){ $color="blur"; } @endphp
blog items {{ $blog_item->category->name }}

{{ $blog_item->created_at->format('d') }} {{ $blog_item->created_at->format('m') }} {{ $blog_item->created_at->format('Y') }}

{{ $blog_item->comments->count() }}
bloger {{ $blog_item->admin->name }}
{{ $blog_item->title }}

{{ $blog_item->short_description }}

@php $colorId ++; @endphp @endforeach
@endif @php $testimonial_section=$sections->where('id',8)->first(); @endphp @if ($testimonial_section->show_homepage==1)

{{ $testimonial_section->header }}

{{ $testimonial_section->description }}
@foreach ($testimonials->take($testimonial_section->content_quantity) as $testimonial_item)
Clients

{{ $testimonial_item->name }}

{{ $testimonial_item->designation }}

{{ $testimonial_item->description }}

@endforeach
@endif @endsection