{{ $update }}
{{ $post->translations->first()->title }}
@if ($post->category && $post->category->type === 'App\Models\Article' && $post->author)
@if ($post->author->profile_photo_path)
) }})
@endif
{{ $post->author->full_name ?? $post->author->name }}
@endif
@if (isset($post->meeting->from))
{{ ucfirst(Illuminate\Support\Carbon::parse($post->meeting->from)->isoFormat('dddd D MMMM, HH:mm')) . ' ' . __('h.') }}
@endif
@if (isset($post->translations->first()->excerpt))
{{ $post->translations->first()->excerpt }}
@endif
@if ($media != null)
{{ $media('hero', ['class' => 'w-full h-auto']) }}
@php
$locale = App::getLocale();
$imageCaption = $media->getCustomProperty('caption-' . $locale);
// Fallback to other locales if caption not found
if (!$imageCaption) {
$fallbackLocales = array_keys(config('laravellocalization.supportedLocales'));
foreach ($fallbackLocales as $fallbackLocale) {
$imageCaption = $media->getCustomProperty('caption-' . $fallbackLocale);
if ($imageCaption) {
break;
}
}
}
$imageOwner = $media->getCustomProperty('owner');
$captionParts = array_filter([$imageCaption, $imageOwner]);
$captionText = implode(' ', $captionParts);
@endphp
@if ($captionText)
{{ $captionText }}
@endif
@endif
@if (isset($post->translations->first()->content))
{{-- Post content with list styling --}}
{!! \App\Helpers\StringHelper::sanitizeHtml($post->translations->first()->content) !!}
@endif
@if (isset($post->meeting))
{{--
{{ __('Share') }}
--}}
{!! Share::mastodon()
->bluesky()
->linkedin()
->instagram()
->facebook()
->whatsapp()
{{-- ->x() --}}
{{-- ->telegram() --}}
->text($post->translations->first()->title)
->render() !!}
@else
{{--
{{ __('Share') }}
--}}
{!! Share::mastodon()
->bluesky()
->linkedin()
->instagram()
->facebook()
->whatsapp()
{{-- ->x() --}}
{{-- ->telegram() --}}
->text($post->translations->first()->title)
->render() !!}
@endif