Initial commit

This commit is contained in:
Ronald Huynen
2026-03-23 21:37:59 +01:00
commit 2547717edb
2193 changed files with 972171 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
<div class="leading-loose">
<div class="post" id="post-id-{{ $post->id ?? 'no-id' }}">
<h3 class="text-lg font-medium text-theme-primary">
{{ $post->translations[0]->title ?? '' }}
</h3>
</div>
@if ($post)
<div class="{{ $alwaysShowFull ? '' : 'hidden md:block' }} my-2 text-sm font-bold text-theme-secondary">
{{ $post->translations[0]->excerpt ?? '' }}
</div>
<div class="{{ $alwaysShowFull ? '' : 'hidden md:block' }} images my-3">
@if($image)
<img src="{{ $image }}" alt="{{ $post->getFirstMedia('*')->getCustomProperty('caption') }}" class="w-screen h-auto mb-4">
@endif
</div>
<div class="{{ $alwaysShowFull ? '' : 'hidden md:block' }}">
<div class="text-sm text-theme-secondary">
{!! \App\Helpers\StringHelper::sanitizeHtml($post->translations[0]->content ?? '') !!}
</div>
</div>
<div class="hidden md:block">
<livewire:posts.manage-actions :post="$post" />
</div>
@else
{{-- If no post is found, use the fallbackTitle and fallbackDescription from the parent component. --}}
<h3 class="text-lg font-medium text-theme-primary">
{{ $fallbackTitle ?? '' }}
</h3>
<div class="hidden md:block text-sm text-theme-secondary">
{{ $fallbackDescription ?? '' }}
</div>
@endif
</div>