b2in/database/seeders/CmsProjectSeeder.php
Kevin Adametz fcb10be120 Interior-Feinschliff: Hero-Slideshow, Lektorat, Rechtstexte, Aufräumen und Korrekturen 08.10.
Startseite und Heroes
- Hero-Slideshow (11 Motive inkl. Febrü) mit Infokarte, Laufzeit-Linie, größeren Klickflächen,
  Goldrahmen und mobiler Karte unter dem Bild; Zeile über der Überschrift, neue Vertrauenspunkte
- Hero-Stil auf Marken, Über uns und Kontakt übertragen, Breadcrumb entfernt
- Gründer-Leiste, Vision-Box auf Ocker, Showroom-Display in Box mit „Größer ansehen“/Vollbild
- Akzentfarbe #a8741f, größere Serif-Überschriften in der Interior-Welt
- Marken: Bildpause mit Zitat; Vereine aktualisiert und verlinkt

Inhalte
- Lektorat aller angezeigten Texte, /about-Korrekturen, Rechtstexte (DDG, TDDDG, Hosting Hetzner)
- Ablauf Maßanfertigung überall einheitlich, Magazin-Beitrag neu, alte Beiträge offline,
  deutsches Datum/Lesezeit, FAQ Projektausstattung, Otterpohl
- Referenzen-Seite per CMS-Schalter ausblendbar

CMS und Technik
- Tote Sektionen, Felder, Seiten und Komponenten entfernt und archiviert (dev/2026-08-28/archiv-*)
- Entwurf /entwurf, Farb-Schalter und /welcome entfernt; Test-Routen nur noch lokal
- Seitenbaum-Beschreibungen geprüft, fehlende CMS-Felder ergänzt, Markenliste aus „Kernmarken“
- Admin-Bildvorschauen repariert, verwendete Bilder in die Mediathek übernommen
- Seeder für das Deployment siehe dev/2026-08-28/entwicklungsplan.md

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 14:00:15 +00:00

310 lines
14 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
namespace Database\Seeders;
use App\Models\CmsProject;
use Illuminate\Database\Seeder;
use Illuminate\Support\Carbon;
class CmsProjectSeeder extends Seeder
{
private const PROJECT_SLUG = 'azizi-creek-views-4';
/**
* Projektdaten Azizi Creek Views 4 – bis 06.10.2026 als Sektion themes.b2in.immobilien_projects
* in den Lang-Dateien, die keine Seite mehr anzeigt (Archiv: dev/2026-08-28/archiv-2026-10-06/).
*
* @var array<string, array<string, mixed>>
*/
private const SOURCE = [
'de' => [
'slug' => 'azizi-creek-views-4',
'title' => 'Azizi Developments: Creek Views 4',
'location' => 'Al Jaddaf, Dubai',
'status' => 'NEW LAUNCH',
'launch_date' => '03.03.2026',
'price_from' => '<span class="whitespace-nowrap">ab 1.125.000 AED</span> <span class="whitespace-nowrap">(ca. 283.000 EUR</span> / <span class="whitespace-nowrap">306.000 USD)</span>',
'image' => 'expose/a1/image-4.jpeg',
'highlights' => [
'Prime Waterfront Views',
'1BR: <span class="whitespace-nowrap">ab 1.125.000 AED</span> <span class="whitespace-nowrap">(ca. 283.000 EUR</span> / <span class="whitespace-nowrap">306.000 USD)</span>',
'Exklusives 3BR Penthouse (Single Inventory)',
'High Rental Demand & Capital Appreciation',
],
'quick_facts' => [
[
'icon' => 'home-modern',
'label' => 'Typen',
'value' => '1BR & 3BR Penthouse',
],
[
'icon' => 'squares-2x2',
'label' => 'Größe',
'value' => '543 – 2.346 sqft',
],
[
'icon' => 'building-office-2',
'label' => 'Einheiten',
'value' => 'Nur 132 (Limited)',
],
[
'icon' => 'user',
'label' => 'Entwickler',
'value' => 'Azizi Developments',
],
],
'investment_case' => [
'title' => 'Starkes Investment, hohe Nachfrage.',
'text' => 'Creek Views 4 bietet eine strategische Top-Lage in Al Jaddaf. Die Kombination aus limitiertem Angebot (nur 132 Einheiten) und Premium-Ausstattung macht dieses Projekt zur idealen Wahl für Investoren, die auf Wertsteigerung (Capital Appreciation) und hohe Mietnachfrage abzielen.',
'views' => [
'Road View',
'Sitting & Play Area View',
'Neighbour View',
],
],
'gallery' => [
'expose/a1/image-4.jpeg',
'expose/a1/image-3.jpeg',
'expose/a1/image-2.jpeg',
'expose/a1/image-5.jpeg',
'expose/a1/image-6.jpeg',
'expose/a1/image-7.jpeg',
],
'location_info' => [
'title' => 'Strategische Location: Al Jaddaf',
'map_url' => 'https://maps.google.com/?q=Al+Jaddaf+Dubai',
'points' => [
'Direkte Anbindung an Dubai Creek und Waterfront',
'Wenige Minuten bis Downtown Dubai & Burj Khalifa',
'Exzellente Infrastruktur und wachsender Stadtteil',
],
],
'contact' => [
'title' => 'Sichern Sie sich eine der 132 Einheiten.',
'subtitle' => 'Ihr Ansprechpartner: Marcel Scheibe',
'options' => [
'' => 'Ich interessiere mich für...',
'1br' => '1 Bedroom Apartment',
'3br_penthouse' => '3BR Penthouse (Single Unit)',
'general' => 'Allgemeine Beratung',
],
],
],
'en' => [
'slug' => 'azizi-creek-views-4',
'title' => 'Azizi Developments: Creek Views 4',
'location' => 'Al Jaddaf, Dubai',
'status' => 'NEW LAUNCH',
'launch_date' => '03.03.2026',
'price_from' => '<span class="whitespace-nowrap">from 1.125.000 AED</span> <span class="whitespace-nowrap">(ca. 283.000 EUR</span> / <span class="whitespace-nowrap">306.000 USD)</span>',
'image' => 'expose/a1/image-4.jpeg',
'highlights' => [
'Prime Waterfront Views',
'1BR: <span class="whitespace-nowrap">from 1.125.000 AED</span> <span class="whitespace-nowrap">(ca. 283.000 EUR</span> / <span class="whitespace-nowrap">306.000 USD)</span>',
'Exclusive 3BR Penthouse (Single Inventory)',
'High Rental Demand & Capital Appreciation',
],
'quick_facts' => [
[
'icon' => 'home-modern',
'label' => 'Types',
'value' => '1BR & 3BR Penthouse',
],
[
'icon' => 'squares-2x2',
'label' => 'Size',
'value' => '543 – 2,346 sqft',
],
[
'icon' => 'building-office-2',
'label' => 'Units',
'value' => 'Only 132 (Limited)',
],
[
'icon' => 'user',
'label' => 'Developer',
'value' => 'Azizi Developments',
],
],
'investment_case' => [
'title' => 'Strong Investment, High Demand.',
'text' => 'Creek Views 4 offers a strategic top location in Al Jaddaf. The combination of limited supply (only 132 units) and premium finishes makes this project the ideal choice for investors targeting capital appreciation and high rental demand.',
'views' => [
'Road View',
'Sitting & Play Area View',
'Neighbour View',
],
],
'gallery' => [
'expose/a1/image-4.jpeg',
'expose/a1/image-3.jpeg',
'expose/a1/image-2.jpeg',
'expose/a1/image-5.jpeg',
'expose/a1/image-6.jpeg',
'expose/a1/image-7.jpeg',
],
'location_info' => [
'title' => 'Strategic Location: Al Jaddaf',
'map_url' => 'https://maps.google.com/?q=Al+Jaddaf+Dubai',
'points' => [
'Direct connection to Dubai Creek and Waterfront',
'Just minutes to Downtown Dubai & Burj Khalifa',
'Excellent infrastructure and growing district',
],
],
'contact' => [
'title' => 'Secure one of the 132 units.',
'subtitle' => 'Your contact: Marcel Scheibe',
'options' => [
'' => 'I am interested in...',
'1br' => '1 Bedroom Apartment',
'3br_penthouse' => '3BR Penthouse (Single Unit)',
'general' => 'General Consultation',
],
],
],
];
/**
* Seed the CMS projects table from {@see self::SOURCE}.
*
* Zusätzliche Blöcke investor_trust / furniture_benefit sind in den Lang-Dateien
* nicht enthalten und werden hier mit DE/EN ergänzt.
*/
public function run(): void
{
foreach ($this->getProjects() as $data) {
CmsProject::query()->updateOrCreate(
['slug' => $data['slug']],
$data,
);
}
}
/**
* @return array<int, array<string, mixed>>
*/
private function getProjects(): array
{
$de = self::SOURCE['de'];
$en = self::SOURCE['en'];
$launchDate = isset($de['launch_date']) && is_string($de['launch_date'])
? Carbon::createFromFormat('d.m.Y', $de['launch_date'])
: Carbon::create(2026, 3, 3);
$extras = $this->projectTrustAndFurnitureBlocks();
return [
[
'slug' => self::PROJECT_SLUG,
'title' => [
'de' => (string) ($de['title'] ?? ''),
'en' => (string) ($en['title'] ?? $de['title'] ?? ''),
],
'location' => [
'de' => (string) ($de['location'] ?? ''),
'en' => (string) ($en['location'] ?? $de['location'] ?? ''),
],
'status' => (string) ($de['status'] ?? 'NEW LAUNCH'),
'launch_date' => $launchDate,
'price_from_aed' => 1_125_000,
'currency' => 'AED',
'image' => (string) ($de['image'] ?? ''),
'highlights' => [
'de' => is_array($de['highlights'] ?? null) ? $de['highlights'] : [],
'en' => is_array($en['highlights'] ?? null) ? $en['highlights'] : [],
],
'quick_facts' => is_array($de['quick_facts'] ?? null) ? $de['quick_facts'] : [],
'investment_case' => [
'de' => is_array($de['investment_case'] ?? null) ? $de['investment_case'] : [],
'en' => is_array($en['investment_case'] ?? null) ? $en['investment_case'] : [],
],
'gallery' => is_array($de['gallery'] ?? null) ? $de['gallery'] : [],
'location_info' => [
'de' => is_array($de['location_info'] ?? null) ? $de['location_info'] : [],
'en' => is_array($en['location_info'] ?? null) ? $en['location_info'] : [],
],
'contact' => [
'de' => is_array($de['contact'] ?? null) ? $de['contact'] : [],
'en' => is_array($en['contact'] ?? null) ? $en['contact'] : [],
],
'investor_trust' => $extras['investor_trust'],
'furniture_benefit' => $extras['furniture_benefit'],
'is_published' => true,
'order' => 0,
],
];
}
/**
* @return array{investor_trust: array<string, array<string, mixed>>, furniture_benefit: array<string, array<string, mixed>>}
*/
private function projectTrustAndFurnitureBlocks(): array
{
return [
'investor_trust' => [
'de' => [
'title' => 'Maximale Sicherheit für Ihr Investment',
'intro' => 'Der Kaufprozess in Dubai ist durch strenge staatliche Regularien international führend im Investorenschutz.',
'columns' => [
[
'icon' => 'heroicon-o-lock-closed',
'title' => 'Staatliches Escrow-System',
'text' => 'Ihre Zahlungen fließen nicht an den Bauträger, sondern auf speziell regulierte Treuhandkonten der RERA (Real Estate Regulatory Agency).',
],
[
'icon' => 'heroicon-o-building-library',
'title' => 'Strenge DLD-Kontrolle',
'text' => 'Jeder Kaufvertrag (SPA) wird offiziell beim Dubai Land Department registriert. Lückenlose behördliche Überwachung jedes Bauprojekts.',
],
[
'icon' => 'heroicon-o-chart-bar',
'title' => 'Transparente Planbarkeit',
'text' => 'Gelder werden nur streng nach zertifiziertem Baufortschritt freigegeben. Eine Zweckentfremdung Ihres Kapitals ist gesetzlich ausgeschlossen.',
],
],
'cta_url' => '/magazin/1',
'cta_label' => 'Deep Dive: Erfahren Sie im Magazin im Detail, wie das Escrow-System in Dubai Sie als Käufer schützt',
],
'en' => [
'title' => 'Maximum security for your investment',
'intro' => 'The purchase process in Dubai is among the world’s most investor-protective, thanks to strict government regulation.',
'columns' => [
[
'icon' => 'heroicon-o-lock-closed',
'title' => 'Government Escrow system',
'text' => 'Your payments do not go to the developer; they are held in specially regulated trust accounts with the RERA (Real Estate Regulatory Agency).',
],
[
'icon' => 'heroicon-o-building-library',
'title' => 'Strict DLD oversight',
'text' => 'Every purchase contract (SPA) is officially registered with the Dubai Land Department. Every construction project is monitored end-to-end.',
],
[
'icon' => 'heroicon-o-chart-bar',
'title' => 'Transparent planning',
'text' => 'Funds are released only according to certified construction progress. Misuse of your capital is legally ruled out.',
],
],
'cta_url' => '/magazin/1',
'cta_label' => 'Deep dive: read in the magazine how Dubai’s Escrow system protects you as a buyer',
],
],
'furniture_benefit' => [
'de' => [
'title' => 'Ihr Investment, <span class="text-secondary">Ihr Vorteil</span>',
'text' => 'Als Käufer einer B2in-Immobilie erhalten Sie exklusiven Insider-Zugang zu unserem B2in-Möbelnetzwerk. Richten Sie Ihre Immobilie zu unschlagbaren Partner-Konditionen ein.',
'button_text' => 'Mehr zum B2in-Netzwerk',
'button_link' => '/netzwerk',
],
'en' => [
'title' => 'Your investment, <span class="text-secondary">your advantage</span>',
'text' => 'As a buyer of a B2in property, you receive exclusive insider access to our B2in furniture network. Furnish your property at unbeatable partner conditions.',
'button_text' => 'Learn more about the B2in network',
'button_link' => '/netzwerk',
],
],
];
}
}