@extends('dashboard.admin.layouts.master') @section('toolbar')

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

{{ trans('dash_site.Back') }} {{ trans('forms.edite_btn') }}
@endsection @section('content')
{{-- Aside: image and facts --}}
@include('dashboard.admin.partials.status-switch', ['url' => route('admin.blog.toggle-status', $blog->id), 'active' => $blog->is_active])
@foreach ([ ['bi-tag', trans('dash_site.category'), $blog->category?->name ?? trans('dash_site.no_category')], ['bi-calendar3', trans('dash_site.date_at'), $blog->date_at], ['bi-person', trans('dash_site.publisher'), $blog->publisher], ['bi-images', trans('dash_site.images'), $blog->images->count()], ['bi-clock-history', trans('dash_site.updated_at'), $blog->updated_at?->format('Y-m-d')], ] as [$icon, $label, $value])
{{ $label }} {{ $value }}
@endforeach @if ($blog->is_active) {{ trans('dash_site.about_view_site') }} @endif
{{-- Main: content per language, gallery, SEO --}}
@foreach (['ar' => 'rtl', 'en' => 'ltr'] as $locale => $dir)

{{ $blog->getTranslation('title', $locale, false) ?: '—' }}

{!! nl2br(e($blog->getTranslation('description', $locale, false) ?: $blog->getTranslation('details', $locale, false))) !!}
@endforeach
@foreach (['ar', 'en'] as $locale)
{{ strtoupper($locale) }}
{{ $blog->getTranslation('seo_title', $locale, false) ?: $blog->getTranslation('title', $locale, false) }}
{{ $blog->getTranslation('seo_description', $locale, false) ?: '—' }}
{{ $blog->getTranslation('seo_keywords', $locale, false) ?: '—' }}
@endforeach
@endsection @section('js') @include('dashboard.admin.partials.crud-table-js') @endsection