@php $orgName = $orgProfile->organization_name ?? __('Support organisation'); $seoTitle = "{$orgName} — " . config('app.name'); $seoDesc = $orgProfile->tagline ? Str::limit($orgProfile->tagline, 155) : ($orgProfile->about_me ? Str::limit(strip_tags($orgProfile->about_me), 155) : null); @endphp @php $jsonLdOrg = array_filter([ '@context' => 'https://schema.org', '@type' => 'Organization', 'name' => $orgProfile->organization_name, 'description' => $seoDesc, 'url' => route('org.show', $orgProfile->slug), 'logo' => $orgProfile->logoUrl() ?: null, 'telephone' => $orgProfile->phone ?: null, 'sameAs' => array_values(array_filter([$orgProfile->website ?? null])), 'address' => $orgProfile->city ? [ '@type' => 'PostalAddress', 'addressLocality' => $orgProfile->city, 'addressCountry' => $orgProfile->country ?: null, ] : null, ]); @endphp @push('seo') @endpush

{{ $orgProfile->organization_name ?? __('Support organisation') }}

{{-- ── 1. Logo en naam ──────────────────────────────────────── --}}
{{-- Logo — linkerhelft --}}
@if ($orgProfile->logoUrl()) {{ $orgProfile->organization_name }} @else
🏢 @if ($isOwn) {{ __('Add logo') }} @endif
@endif
{{-- Info — rechterhelft --}}

{{ $orgProfile->organization_name }}

@if ($orgProfile->isVerified()) {{ __('Verified organisation') }} @endif ORG
@if ($orgProfile->tagline)

{{ $orgProfile->tagline }}

@endif @if ($orgProfile->core_activity)

{{ $orgProfile->core_activity }}

@endif @if ($orgProfile->address || $orgProfile->zip_code || $orgProfile->city) @php $headerAddressParts = array_filter([ $orgProfile->address, trim(($orgProfile->zip_code ?? '') . ' ' . ($orgProfile->city ?? '')), $orgProfile->country ? strtoupper($orgProfile->country) : null, ]); $headerMapQuery = urlencode(implode(', ', $headerAddressParts)); @endphp
📍 {{ implode(', ', $headerAddressParts) }} {{ __('Map') }}
@elseif ($orgProfile->city || $orgProfile->country)

📍 {{ collect([$orgProfile->city, $orgProfile->country])->filter()->implode(', ') }}

@endif @if (!empty($orgProfile->operating_regions))

{{ collect($orgProfile->operating_regions)->map(fn($r) => \App\Models\OrgProfile::operatingRegionOptions()[$r] ?? $r)->implode(' · ') }}

@endif @if ($isOwn) ✏️ {{ __('Edit profile') }} @endif
{{-- ── Organisation photos ─────────────────────────────────── --}} @php $orgPhotos = $orgProfile->user->photos()->orderBy('created_at')->get(); @endphp @if ($orgPhotos->isNotEmpty()) @php $photoData = $orgPhotos->map(fn($p) => [ 'thumb' => $p->thumbUrl() ?? $p->fullUrl(), 'full' => $p->fullUrl(), ])->values()->toArray(); @endphp

{{ __('Photos') }}

@foreach ($orgPhotos as $i => $photo) @endforeach
{{-- Lightbox overlay --}}
@endif {{-- ── 2. Over de organisatie ───────────────────────────────── --}} @if ($orgProfile->about_me)

{{ __('About the organisation') }}

{!! str_contains($orgProfile->about_me, '<') ? $orgProfile->about_me : nl2br(e($orgProfile->about_me)) !!}
@endif {{-- ── 3. Activiteiten ──────────────────────────────────────── --}} @if (!empty($orgProfile->activity_forms))

{{ __('Activities') }}

@php $actOpts = collect(\App\Models\OrgProfile::activityFormTaxonomy()) ->flatMap(fn($c) => collect($c['tags'])->mapWithKeys(fn($lbl, $slug) => [$slug => $lbl])) ->all(); @endphp
@foreach ($orgProfile->activity_forms as $key) {{ __($actOpts[$key] ?? $key) }} @endforeach
@endif {{-- ── 4. Wij ondersteunen mensen met ──────────────────────── --}} @if (!empty($orgProfile->support_for))

{{ __('We support people with') }}

@php $supportForOpts = \App\Models\ProProfile::supportForOptions(); @endphp @foreach ($orgProfile->support_for as $key) {{ __($supportForOpts[$key] ?? $key) }} @endforeach
@endif {{-- ── 5. Doelgroep ─────────────────────────────────────────── --}} @if (!empty($orgProfile->target_groups))

{{ __('Target group') }}

@php $tgOpts = \App\Models\ProProfile::targetGroupOptions(); @endphp @foreach ($orgProfile->target_groups as $key) {{ __($tgOpts[$key] ?? $key) }} @endforeach
@endif {{-- ── 6. Adres & contact ───────────────────────────────────── --}} @php $hasAddress = $orgProfile->address || $orgProfile->zip_code || $orgProfile->city; $hasContact = $orgProfile->contact_email || $orgProfile->phone || $orgProfile->website || $orgProfile->booking_url; @endphp @if ($hasAddress || $hasContact)

{{ __('Contact') }}

{{-- Volledig adres + kaartknop --}} @if ($hasAddress) @php $addressParts = array_filter([ $orgProfile->address, trim(($orgProfile->zip_code ?? '') . ' ' . ($orgProfile->city ?? '')), $orgProfile->country ? strtoupper($orgProfile->country) : null, ]); $mapQuery = urlencode(implode(', ', $addressParts)); @endphp
@if ($orgProfile->address)

{{ $orgProfile->address }}

@endif @if ($orgProfile->zip_code || $orgProfile->city)

{{ trim(($orgProfile->zip_code ?? '') . ' ' . ($orgProfile->city ?? '')) }}

@endif @if ($orgProfile->country)

{{ $orgProfile->country }}

@endif
{{ __('Show on map') }}
@if ($hasContact)
@endif @endif
@if ($orgProfile->contact_email) ✉️ {{ $orgProfile->contact_email }} @endif @if ($orgProfile->phone)

📞 {{ $orgProfile->phone }}

@endif @if ($orgProfile->website) 🌐 {{ $orgProfile->website }} @endif @if ($orgProfile->booking_url) 📅 {{ __('Register / book') }} @endif
@php $socials = array_filter([ [$orgProfile->social_linkedin, 'LinkedIn', 'linkedin.com'], [$orgProfile->social_facebook, 'Facebook', 'facebook.com'], [$orgProfile->social_instagram, 'Instagram', 'instagram.com'], [$orgProfile->social_x, 'X', 'x.com'], [$orgProfile->social_youtube, 'YouTube', 'youtube.com'], [$orgProfile->social_tiktok, 'TikTok', 'tiktok.com'], [$orgProfile->social_reddit, 'Reddit', 'reddit.com'], [$orgProfile->social_pinterest, 'Pinterest', 'pinterest.com'], [$orgProfile->social_tumblr, 'Tumblr', 'tumblr.com'], [$orgProfile->social_vimeo, 'Vimeo', 'vimeo.com'], ], fn($s) => filled($s[0])); @endphp @if ($socials)
@foreach ($socials as [$url, $label, $domain]) {{ $label }} @endforeach
@endif
@endif
@push('bottom-bar-buttons')
{{ __('Back') }} @if ($isOwn) {{ __('Edit profile') }} @endif
@endpush