@extends('app::layouts.app') @section('title', 'Videos') @section('content')
@include('panel.partials.sidebar', ['activeMenu' => 'videos'])
@include('panel.partials.page-header', [ 'title' => 'Videos', 'description' => 'Upload listing videos and manage processing from one frontend workspace.', ])
@if (session('success'))
{{ session('success') }}
@endif
@csrf

My videos

@forelse($videos as $video) @php $statusClass = match ((string) $video->status?->value) { 'ready' => 'bg-emerald-100 text-emerald-700', 'failed' => 'bg-rose-100 text-rose-700', 'processing' => 'bg-sky-100 text-sky-700', default => 'bg-amber-100 text-amber-700', }; @endphp

{{ $video->titleLabel() }}

{{ $video->statusLabel() }} @if($video->is_active) Visible @endif

{{ $video->listing?->title ?? 'Listing removed' }}

Duration: {{ $video->durationLabel() }} Size: {{ $video->sizeLabel() }} Updated: {{ $video->updated_at?->format('d.m.Y H:i') ?? '-' }}
Edit
@csrf @method('DELETE')
@empty
No videos yet.
@endforelse
@if($videos->hasPages())
{{ $videos->links() }}
@endif
@endsection