@if (isset($post->translations[0]->title))
{{ $post->translations[0]->title }}
@endif
@if (isset($post->translations[0]->excerpt))
{{ $post->translations[0]->excerpt }}
@endif
@if($post->hasMedia('*'))
 }})
@php
$locale = $post->translations[0]->locale;
$imageCaption = $post->getFirstMedia('*')->getCustomProperty('caption-' . $locale);
// Fallback to other locales if caption not found
if (!$imageCaption) {
$fallbackLocales = array_keys(config('laravellocalization.supportedLocales'));
foreach ($fallbackLocales as $fallbackLocale) {
$imageCaption = $post->getFirstMedia('*')->getCustomProperty('caption-' . $fallbackLocale);
if ($imageCaption) {
break;
}
}
}
$imageOwner = $post->getFirstMedia('*')->getCustomProperty('owner');
$captionParts = array_filter([$imageCaption, $imageOwner]);
$captionText = implode(' ', $captionParts);
@endphp
@if ($captionText)
{{ $captionText }}
@endif
@endif
@if (isset($post->translations[0]->content) && strlen(trim(strip_tags($post->translations[0]->content))) > 0)
{!! \App\Helpers\StringHelper::sanitizeHtml($post->translations[0]->content) !!}
@endif
@php
$update = Illuminate\Support\Carbon::createFromTimeStamp(strtotime($post->translations[0]->updated_at))->isoFormat('LL');
@endphp
@if (!$hideAuthor )
{{ str_replace(['@AUTHOR@', '@DATE@'], [timebank_config('posts.site-content-writer'), $update], __('Written by @AUTHOR@ on @DATE@')) }}
@endif
@if ($versionInfo)
{{ __('Current version') }}: {{ $versionInfo['version'] }}
{{ __('Released') }}: {{ $versionInfo['release_date'] }}
{{ __('Licence') }}: {{ $versionInfo['licence'] }}
@if ($versionInfo['changelog_url'])
@endif
@endif