@if (!$post->category || !str_starts_with($post->category->type ?? '', 'App\Models\ImagePost'))
{{ $post->translations->first()->title }}
@endif
@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))
@if(isset($post->meeting->price))
| {{ __('Price') }} |
@if(strtolower($post->meeting->transactionType->name) == 'work')
{{ $post->meeting->price === 0 ? __('Free') : tbFormat($post->meeting->price) }}
( {{ __('messages.posts.based_on_quantity', ['nr'=> $post->meeting->based_on_quantity]) }} )
@elseif(strtolower($post->meeting->transactionType->name) == 'gift')
{{ __('messages.posts.transaction_types.gift') }}
@elseif(strtolower($post->meeting->transactionType->name) == 'donation')
{{ __('messages.posts.transaction_types.donation') }}
@endif
|
@endif
@if($post->meeting->venue)
| {{ __('Location') }} |
{{ $post->meeting->venue }} |
@endif
@if($post->meeting->address)
| {{ __('Address') }} |
{{ $post->meeting->address }}
|
@endif
@if($post->meeting->from)
| {{ __('Date & Time') }} |
{{ Illuminate\Support\Carbon::parse($post->meeting->from)->isoFormat('dddd D MMMM YYYY, H:mm') }} {{ __('hour') }} |
@endif
@if(isset($post->meeting->meetingable->name))
| {{ __('Organizer') }} |
@if(isset($post->meeting->meetingable->profile_photo_path))
@endif
{{ $post->meeting->meetingable->name }}
|
@endif
{{--
{{ __('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