@extends('layouts.app') @section('title', $playlist->name . ' | ' . config('app.name')) @push('head') @php $plDesc = trim($playlist->description ?? ''); if ($plDesc === '') { $plDesc = $playlist->video_count . ' videos' . ($playlist->user ? ' • by ' . $playlist->user->name : ''); } $plShareUrl = route('playlists.showByToken', $playlist->share_token); // Use the dedicated OG endpoint so previews always get a 1200x630 JPG under the // size/format limits of WhatsApp/Telegram/Discord/etc. $plOgImage = route('playlists.ogImage', $playlist); @endphp @endpush @section('extra_styles') @endsection @section('content') @php $canEdit = $playlist->canEdit(Auth::user()); $firstVideo = $videos->first(); $firstUrl = $firstVideo ? route('videos.show', $firstVideo) . '?playlist=' . $playlist->share_token : null; $thumbBg = $playlist->thumbnail_url; @endphp
Add videos to this playlist to start watching.