{{-- Video-Display: Video-Playlist + Footer-Inhalte --}} @php $videos = $items->get('video', collect()); $footers = $items->get('footer', collect()); @endphp {{-- Video-Playlist --}}
{{ __('Video-Playlist') }} {{ __('Videos werden in der angegebenen Reihenfolge abgespielt') }}
{{ __('Video hinzufügen') }}
@if($videos->isEmpty())

{{ __('Noch keine Videos vorhanden.') }}

@else
@foreach($videos as $index => $item)
@if($index > 0) @endif @if($index < count($videos) - 1) @endif
Video
{{ $item->is_active ? __('Aktiv') : __('Inaktiv') }} {{ $item->content['title'] ?? $item->content['filename'] ?? '–' }}
@php $videoSource = $item->content['filename'] ?? ''; $isMediaLibrarySource = str_starts_with($videoSource, '/storage/') || str_starts_with($videoSource, 'http'); @endphp
{{ $isMediaLibrarySource ? __('Mediathek') : __('Legacy-Datei') }} {{ $videoSource ?: '–' }} Position: {{ $item->content['position'] ?? 25 }}%
@endforeach
@endif
{{-- Footer-Inhalte --}}
{{ __('Footer-Inhalte') }} {{ __('Inhalte werden im Footer rotiert') }}
{{ __('Inhalt hinzufügen') }}
@if($footers->isEmpty())

{{ __('Noch keine Footer-Inhalte vorhanden.') }}

@else
@foreach($footers as $index => $item)
@if($index > 0) @endif @if($index < count($footers) - 1) @endif
{{ $item->content['headline'] ?? 'Footer' }}
{{ $item->content['subline'] ?? '' }}
{{ $item->is_active ? __('Aktiv') : __('Inaktiv') }} {{ $item->content['headline'] ?? '–' }}
{{ $item->content['subline'] ?? '' }} @if(!empty($item->content['url'])) {{ Str::limit($item->content['url'], 40) }} @endif
@endforeach
@endif