@extends($site->themeView('layout'))
{{-- Cinema home: featured title, carousels, personal recommendations, editorial selections. --}}
@section('content')
@if ($hero)
! $hero['backdrop']])>
{{ __('movies.featured') }}
{{ $hero['title'] }}
@if ($hero['rating']) {{ number_format($hero['rating'], 1) }}@endif
@if ($hero['year']){{ $hero['year'] }}@endif
{{ $hero['type'] === 'tv' ? __('movies.tv_short') : __('movies.movie_short') }}
{{ $hero['overview'] }}
@else
{{ $site->localized('home_heading') ?: $site->name }}
@if ($site->localized('tagline')){{ $site->localized('tagline') }}
@endif
@endif
@unless ($available)
{{ __('movies.catalogue_unavailable') }}
@endunless
@include($site->themeView('movies.partials.row'), ['key' => 'streaming', 'title' => __('movies.row_streaming'), 'items' => $rows['streaming'] ?? [], 'more' => lpath('/'.seg('movies')).'?liste=streaming'])
{{-- Filled by cinema.js from the visitor's favourites (stored on their device). --}}
{{ __('movies.for_you') }}
{{ __('movies.for_you_text') }}
@include($site->themeView('movies.partials.row'), ['key' => 'added', 'title' => __('movies.row_added'), 'items' => $rows['added'] ?? []])
@include($site->themeView('movies.partials.row'), ['key' => 'movies', 'title' => __('movies.row_movies'), 'items' => $rows['movies'] ?? [], 'more' => lpath('/'.seg('movies'))])
@include($site->themeView('movies.partials.row'), ['key' => 'series', 'title' => __('movies.row_series'), 'items' => $rows['series'] ?? [], 'more' => lpath('/'.seg('series'))])
@if ($collections->isNotEmpty())
@endif
@include($site->themeView('movies.partials.row'), ['key' => 'top', 'title' => __('movies.row_top'), 'items' => array_values(array_filter($rows['top'] ?? [], fn ($c) => $c['rating']))])
@if ($latestPosts->isNotEmpty())
@foreach ($latestPosts as $post)@include($site->themeView('partials.post-card'))@endforeach
@endif
@endsection