@php $tags = \App\Models\Tag::whereIn('id', $article->tags ?? [])->get(); @endphp @foreach($tags as $index => $tag) {{ app()->getLocale() === 'ar' ? $tag->name_ar : $tag->name_en }} @endforeach

{{ app()->getLocale() === 'ar' ? $article->title_ar : $article->title_en }}

@if($article->header_image_page)
{{ $article->title }}
@endif
{{ $article->created_at ? $article->created_at->format('d/m/Y') : 'N/A' }} {{ $article->views }} views
{{ app()->getLocale() === 'ar' ? $article->writer_name_ar : $article->writer_name_en }}
{!! app()->getLocale() === 'ar' ? $article->content_ar : $article->content_en !!}
@if($article->photos && count($article->photos) > 0) @php $photos = $article->photos; @endphp
@endif
{!! app()->getLocale() === 'ar' ? $article->contentOther_ar : $article->contentOther_en !!}
@if($article->video_url || $article->video_file)
@if($article->video_file) @elseif($article->video_url) @php $videoId = null; if(preg_match('/(?:youtube\.com\/(?:[^\/]+\/.+\/|(?:v|e(?:mbed)?)\/|.*[?&]v=)|youtu\.be\/)([^"&?\/\s]{11})/', $article->video_url, $matches)) { $videoId = $matches[1]; } @endphp @if($videoId)
@endif @endif
@endif