Adicionar Mídia Editar @if (session('success'))
{{ session('success') }}
@endif @php $active = $terminal->status; $portrait = $terminal->calculated_orientation === 'vertical'; $mw = $portrait ? 22 : 36; $mh = $portrait ? 36 : 22; @endphp {{-- ── HERO CARD ──────────────────────────────────────────────────── --}}
{{-- Gradient header --}}
{{-- Orbs --}}
{{-- Screen mockup --}}
{{-- Icon + status --}}
{{ $active ? 'Ativo' : 'Inativo' }}
{{-- Name --}}

{{ $terminal->name }}

{{-- UUID with copy --}}
{{-- Quick specs --}}

{{ $terminal->resolution_width }}×{{ $terminal->resolution_height }}

Resolução

{{ $terminal->auto_sync }}s

Sync

{{ $stats['total'] }}

Mídias

{{-- ── INDICATOR CARDS ─────────────────────────────────────────────── --}} @if ($stats['total'] > 0)
{{-- Total --}}

{{ $stats['total'] }}

Total

{{-- Imagens --}}

{{ $stats['images'] }}

Imagens

{{-- Vídeos --}}

{{ $stats['videos'] }}

Vídeos

{{-- Ativas --}}

{{ $stats['active'] }}

Ativas

{{-- Orientação --}}

{{ $stats['horizontal'] }}

/{{ $stats['vertical'] }}

H / V

{{-- Processando --}}

{{ $stats['processing'] }}

Processando

{{-- Barra de composição (imagens vs vídeos) --}} @if ($stats['images'] > 0 || $stats['videos'] > 0)

Composição do conteúdo

Imagens {{ $stats['total'] > 0 ? round($stats['images'] / $stats['total'] * 100) : 0 }}% Vídeos {{ $stats['total'] > 0 ? round($stats['videos'] / $stats['total'] * 100) : 0 }}% @if ($stats['inactive'] > 0) Inativas {{ $stats['total'] > 0 ? round($stats['inactive'] / $stats['total'] * 100) : 0 }}% @endif
@if ($stats['images'] > 0)
@endif @if ($stats['videos'] > 0)
@endif @if ($stats['inactive'] > 0)
@endif
@endif @endif {{-- ── TABELA DE MÍDIAS ────────────────────────────────────────────── --}}

Mídias

{{ $stats['total'] }} {{ Str::plural('item', $stats['total']) }} na playlist

Adicionar
@if ($terminal->items->isEmpty())

Nenhuma mídia adicionada

Adicionar primeira mídia
@else @foreach ($terminal->items as $item) @endforeach
# Nome Tipo Orientação Transição Status
{{ $item->order }}

{{ $item->name }}

@if ($item->processing) Processando... @endif
@if ($item->type === 'image') Imagem @else Vídeo @endif {{ $item->orientation === 'horizontal' ? '⟷ Horizontal' : '↕ Vertical' }} {{ $item->transition }} · {{ $item->transition_speed }}ms {{ $item->status ? 'Ativa' : 'Inativa' }}
@if ($item->url) @endif
@csrf @method('DELETE')
@endif