@php $contactEmail = $settings->contact_email; $contactPhone = $settings->contact_phone; $whatsappDisplay = '00963994806517'; $whatsappDigits = '963994806517'; $locale = app()->getLocale(); $defaultAboutText = data_get(\App\Models\SiteSetting::defaultAttributes(), "about_text_translations.$locale", __('messages.about_platform_description')); $aboutText = trim($siteAboutText !== '' ? $siteAboutText : $defaultAboutText); $legalText = trim($siteLegalNotice !== '' ? $siteLegalNotice : __('messages.legal_notice_description')); $parseStructuredText = static function (string $text): array { $paragraphs = []; $bullets = []; $lines = preg_split('/\R/u', $text) ?: []; foreach ($lines as $line) { $line = trim((string) $line); if ($line === '') { continue; } if (preg_match('/^[-*•]\s+/u', $line) === 1) { $bullets[] = trim((string) preg_replace('/^[-*•]\s+/u', '', $line)); continue; } $paragraphs[] = $line; } return [ 'paragraphs' => $paragraphs, 'bullets' => $bullets, ]; }; $aboutParsed = $parseStructuredText($aboutText); $legalParsed = $parseStructuredText($legalText); @endphp

{{ __('messages.about') }}

{{ __('messages.project_subtitle') }}

{{ __('messages.about_platform_title') }}

@foreach ($aboutParsed['paragraphs'] as $paragraph)

{{ $paragraph }}

@endforeach
@if ($aboutParsed['bullets'] !== [])

{{ __('messages.about_features_title') }}

    @foreach ($aboutParsed['bullets'] as $bullet)
  • {{ $bullet }}
  • @endforeach
@endif

{{ __('messages.legal_notice') }}

@foreach ($legalParsed['paragraphs'] as $paragraph)

{{ $paragraph }}

@endforeach
@if ($legalParsed['bullets'] !== [])
    @foreach ($legalParsed['bullets'] as $bullet)
  • {{ $bullet }}
  • @endforeach
@endif

{{ __('messages.contact') }}

@if ($contactEmail)

{{ __('messages.contact_email') }}: {{ $contactEmail }}

@endif @if ($contactPhone)

{{ __('messages.contact_phone') }}: {{ $contactPhone }}

@endif @if ($whatsappDigits !== '') WhatsApp {{ $whatsappDisplay }} @endif