@extends('site.layouts.master') @section('seoTags') @seoTags() @endsection @php $seo = SEO\Models\Page::where('path', URL::full())->first(); $developerName = $developer->name ?? ''; $developerLogo = $developer->logo?->full_url ?? asset('assets/site/image_notfound.jpg'); $developerLogoAlt = $developer->logo?->meta ?? $developerName ?? 'developer logo'; $developerCover = $developer->coverImages() ->firstOrNew([]) ->full_url; $compounds = $developer->compounds ?? collect(); $projectsCount = $compounds->count(); $properties = $compounds ->flatMap(function ($compound) { return $compound->properties ?? collect(); }); $propertiesCount = $properties->count(); $pricedProperties = $properties ->filter(function ($property) { return isset($property->price) && is_numeric($property->price) && $property->price >= 1000; }); $minProperty = $pricedProperties ->sortBy('price') ->first(); $lowestPrice = $minProperty?->price; if (LaravelLocalization::getCurrentLocale() == 'ar') { $seoContent = optional($seo)->content_ar; } else { $seoContent = optional($seo)->content; } @endphp @if (empty($seo)) @section('title') {{ $developerName }} @endsection @endif @section('metatags') @if (!empty($seo)) @endif @endsection @section('content')
{{ Breadcrumbs::render('developer', $developer) }}
{!! $breadcrumbSchema !!} {!! $blogPostSchema !!}
{{-- Breadcrumb --}} {{-- Developer hero --}}
@if (!empty($developerCover)) {{ $developerName }} @endif
{{ $developerLogoAlt }}

{{ $developerName }}

@lang('site.projects') {{ $projectsCount }}
@lang('site.Property') {{ $propertiesCount }}
@if (!empty($lowestPrice))
@lang('site.Prices Start From') {{ number_format((int) $lowestPrice) }} @lang('site.EGP')
@endif
@if (!empty($developer->about)) @endif
{{-- Projects --}}

{{ $developerName }} @lang('site.projects')

{{ $projectsCount }} @lang('site.projects')
@forelse ($compounds as $compound) @php $compoundProperties = $compound->properties ?? collect(); $filteredProperties = $compoundProperties ->filter(function ($property) { return isset($property->price) && is_numeric($property->price) && $property->price >= 1000; }); $compoundMinProperty = $filteredProperties ->sortBy('price') ->first(); $compoundImage = $compound->project?->image?->full_url ?? asset('assets/site/image_notfound.jpg'); $compoundName = trim( ($compound->name ?? '') . ' ' . ($compound->city?->name ?? '') ); $propertyTypes = $compoundProperties ->pluck('property_type.label') ->filter() ->unique() ->values() ->implode(' | '); $compoundRouteName = 'site.' . str_replace(' ', '-', $compound->name); $compoundHasRoute = Route::has( $compoundRouteName ); @endphp
first) loading="lazy" @endif src="{{ $compoundImage }}" alt="{{ $compoundName ?: $developerLogoAlt }}" width="390" height="205" >

{{ $compoundName }}

@if (!empty($propertyTypes))
{{ $propertyTypes }}
@endif
{{ $compoundProperties->count() }} @lang('site.units')
@if (!empty($compoundMinProperty))
@lang('site.Prices Start From') {{ number_format((int) $compoundMinProperty->price) }} {{ $compoundMinProperty->currency ?? __('site.EGP') }}
@endif
@if ( $compoundProperties->count() > 0 && $compoundHasRoute ) @lang('site.Units') @else @lang('site.No Properties Found') @endif
@empty
@lang('site.No Properties Found')
@endforelse
{{-- SEO content --}} @if (!empty($seoContent)) @endif
@endsection @section('script') @endsection