@extends('dashboard.admin.layouts.master') @php $locales = ['ar' => 'العربية', 'en' => 'English']; $text = fn (string $field, string $locale) => $about->getTranslation($field, $locale, false); @endphp @section('toolbar')

{{ trans('dash_site.details') }}

@if ($about->is_active) {{ trans('dash_site.about_view_site') }} @else
@csrf @method('PATCH')
@endif {{ trans('forms.edite_btn') }} {{ trans('dash_site.Back') }}
@endsection @section('content')
{{ trans('dash_site.contact_status') }} @if ($about->is_active) {{ trans('dash_site.about_live') }} @else {{ trans('dash_site.about_not_live') }} @endif
{{ trans('dash_site.about_created') }} {{ $about->created_at?->format('Y-m-d h:i A') }}
{{ trans('dash_site.about_last_updated') }} {{ $about->updated_at?->format('Y-m-d h:i A') }}
@foreach ([ trans('dash_site.image') => $about->image_path, trans('dash_site.about_secondary_image') => $about->secondary_image_path, trans('dash_site.seo_image') => $about->seo_image_path, ] as $label => $url)
{{ $label }}
@endforeach

{{ trans('dash_site.about_content') }}

@foreach ($locales as $locale => $language)
{{ $language }}

{{ $text('title', $locale) ?: $text('address', $locale) ?: '—' }}

{{ strip_tags((string) ($text('description', $locale) ?: $text('details', $locale))) ?: '—' }}
@endforeach

{{ trans('dash_site.about_seo') }}

@foreach ($locales as $locale => $language)
{{ $language }}
{{ trans('dash_site.seo_title') }}
{{ $text('seo_title', $locale) ?: '—' }}
{{ trans('dash_site.seo_description') }}
{{ $text('seo_description', $locale) ?: '—' }}
{{ trans('dash_site.seo_keywords') }}
{{ $text('seo_keywords', $locale) ?: '—' }}
@endforeach
@endsection