@extends('frontend.layouts.app') @section('title', (($about->seo_title ?: $about->banner_title) ?: 'About Us').' | Attrarre Livings') @section('meta-description', $about->seo_description ?? '') @section('content') @php $img = fn (?string $path) => $path ? asset_image($path) : ''; $paras = function (?string $text) { $parts = preg_split("/\n\s*\n/", (string) $text) ?: []; return array_values(array_filter(array_map('trim', $parts))); }; $richHtml = function (?string $text) use ($paras) { $text = trim((string) $text); if ($text === '') { return ''; } if (str_contains($text, '<')) { return $text; } return collect($paras($text))->map(fn ($para) => '
'.e($para).'
')->implode(''); }; $works = collect([1, 2, 3])->map(fn ($i) => (object) [ 'icon' => $about->{"work_{$i}_icon"} ?? null, 'title' => $about->{"work_{$i}_title"} ?? null, 'description' => $about->{"work_{$i}_description"} ?? null, ])->filter(fn ($w) => filled($w->title) || filled($w->description) || filled($w->icon)); $stats = collect([1, 2, 3, 4])->map(fn ($i) => (object) [ 'value' => $about->{"stat_{$i}_value"} ?? null, 'label' => $about->{"stat_{$i}_label"} ?? null, ])->filter(fn ($s) => filled($s->value) || filled($s->label)); @endphp{{ $feature->description }}
{{ $about->vision_description }}
{{ $about->mission_description }}
{{ $about->work_description }}
@endif{{ $work->description }}
@endif{{ $stat->label }}
@endif{{ $findDescription }}
@endif