@php /** * Admin → Design templates → menu-board slideshow: every active TV starter linked * into one full-screen rotation, with the transition and pace pickable live. The * stage + tv-player.js here are the same engine a paired wall device will run; * this page exists so the rotation can be judged on the platform's own boards * before any vendor screen or device carries it. * * @var string $title * @var array $boards [['name' => …, 'url' => …], …] — /tv/preview render URLs * @var string $transition seed from the builder (still adjustable live) * @var int $seconds */ $transition = in_array($transition ?? '', \App\Models\TvScreen::PLAYLIST_TRANSITIONS, true) ? $transition : 'fade'; $seconds = max(2, min(120, (int) ($seconds ?? 8))); $payload = json_encode( array_map(static fn (array $b): array => ['name' => $b['name'], 'url' => $b['url']], $boards), JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE ); @endphp {{ $title }}
{{ t_raw('common.back') }}