@extends('web.layouts.web-master') @php $ui = data_get($content, 'ui', []); $showUi = data_get($ui, 'show_page', []); $statusClasses = [ 'ready' => 'bg-emerald-500', 'construction' => 'bg-sky-500', 'offplan' => 'bg-amber-400 text-zinc-950', ]; $confidenceLabels = data_get($ui, 'confidence_labels', []); $defaultProjectTitle = data_get($showUi, 'default_title', 'Projekt'); $dev = $dev ?? false; $devQuery = $devQuery ?? false; $overviewRouteName = $overviewRouteName ?? ($dev ? 'dev.immobilien-azizi' : 'immobilien'); $overviewUrl = route($overviewRouteName, $devQuery ? ['dev' => 1] : []); $slug = $project['slug'] ?? ''; $fallbackImage = theme_image_url($project['image'] ?? 'b2in/hero-immobilien.jpg'); $basePath = storage_path('app/public/immobile/dubai/' . $slug); $imagePaths = collect([ glob($basePath . '/image/*.{webp,jpg,jpeg,png}', GLOB_BRACE) ?: [], glob($basePath . '/official-website/*.{webp,jpg,jpeg,png}', GLOB_BRACE) ?: [], ]) ->flatten() ->all(); sort($imagePaths, SORT_NATURAL); $galleryImages = collect($imagePaths) ->map(fn(string $path): string => theme_image_url(str_replace(storage_path('app/public') . '/', '', $path))) ->values(); $heroImage = $galleryImages->first() ?? $fallbackImage; @endphp @section('title', ($project['title'] ?? $defaultProjectTitle) . ' - B2in Dubai Preview') @section('meta_description', $project['short'] ?? data_get($showUi, 'default_meta_description', '')) @section('content')
@svg('heroicon-o-arrow-left', 'h-4 w-4') {{ data_get($showUi, 'back_to_overview') }}
{{ $project['status'] ?? '' }}

{{ $project['title'] ?? '' }}

{{ $project['location'] ?? '' }}

{{ data_get($showUi, 'stat_price') }}

{{ $project['price_from'] ?? data_get($showUi, 'stat_price_fallback') }}

{{ data_get($showUi, 'stat_handover') }}

{{ $project['handover'] ?? data_get($showUi, 'stat_handover_fallback') }}

{{ data_get($showUi, 'stat_units') }}

{{ $project['units'] ?? data_get($showUi, 'stat_units_fallback') }}

{{ data_get($showUi, 'stat_data_confidence') }}

{{ $confidenceLabels[$project['data_confidence'] ?? 'yellow'] ?? data_get($showUi, 'stat_data_confidence_fallback') }}

{{ data_get($showUi, 'section_investment') }}

{{ $project['short'] ?? '' }}

{{ $project['marcel_take'] ?? '' }}

@if (!empty($project['official_description_de']))

{{ data_get($showUi, 'official_description_label', data_get($ui, 'modal.official_description_label')) }}

{{ $project['official_description_de'] }}

@endif @if ($galleryImages->isNotEmpty())

{{ data_get($showUi, 'gallery_heading', data_get($ui, 'modal.gallery_heading')) }}

{{ $galleryImages->count() }} {{ data_get($ui, 'modal.gallery_count_word', 'Bilder') }}

@foreach ($galleryImages->take(6) as $index => $image) {{ ($project['title'] ?? '') . ' ' . data_get($ui, 'modal.gallery_image_word', 'Galerie Bild') . ' ' . ($index + 1) }} @endforeach
@endif

{{ data_get($showUi, 'for_whom') }}

{{ $project['buyer_profile'] ?? '' }}

{{ data_get($showUi, 'hard_facts') }}

    @foreach ($project['highlights'] ?? [] as $highlight)
  • @svg('heroicon-o-check-circle', 'mt-0.5 h-5 w-5 shrink-0 text-secondary') {{ $highlight }}
  • @endforeach

{{ data_get($showUi, 'process_title') }}

{{ data_get($showUi, 'process_intro') }}

@foreach (data_get($showUi, 'process_steps', []) as $step)

{{ $step['title'] ?? '' }}

{{ $step['text'] ?? '' }}

@endforeach

{{ str_replace(':title', $project['title'] ?? data_get($showUi, 'interest_default_title'), data_get($showUi, 'interest_heading', '')) }}

{{ data_get($showUi, 'interest_text') }}

@endsection