@forelse($help_articles as $i => $art)
@endforelse
@php
$displayTitle = $art->title;
$displayContent = $art->content;
if (in_array($locale, ['en','de','ro','sk'])) {
$tCol = "title_{$locale}";
$cCol = "content_{$locale}";
if (!empty($art->$tCol)) $displayTitle = $art->$tCol;
if (!empty($art->$cCol)) $displayContent = $art->$cCol;
}
@endphp
@empty
{{ $displayTitle }}
{!! str_replace('src="/img/', 'src="' . asset('img/') . '/', Str::markdown($displayContent)) !!}
@php $embedUrl = \App\Models\HelpArticle::toEmbedUrl($art->video_url); @endphp
@if($embedUrl)
@endif