feat: add visibility toggles for content showcase items on public and PDF views
This commit is contained in:
@@ -329,11 +329,16 @@
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@if(!empty($profile->content_showcase))
|
||||
@php
|
||||
$publicShowcase = array_filter($profile->content_showcase ?? [], function($item) {
|
||||
return !isset($item['show_on_public']) || $item['show_on_public'];
|
||||
});
|
||||
@endphp
|
||||
@if(!empty($publicShowcase))
|
||||
<div class="platform-section" style="margin-top:40px;">
|
||||
<div class="platform-title" style="justify-content:center;">Content Showcase</div>
|
||||
<div class="cards">
|
||||
@foreach($profile->content_showcase as $item)
|
||||
@foreach($publicShowcase as $item)
|
||||
@php
|
||||
$isUrl = ($item['file_id'] === 'url');
|
||||
$file = !$isUrl ? \App\Models\MediaFile::find($item['file_id']) : null;
|
||||
|
||||
Reference in New Issue
Block a user