Update cover and list views to show selected category

This commit is contained in:
DariusIII
2026-03-05 12:11:39 +01:00
parent 128082852b
commit 7a736b56bb
2 changed files with 12 additions and 6 deletions
+1 -1
View File
@@ -41,7 +41,7 @@
<x-view-toggle
current-view="list"
:covgroup="$covgroup ?? null"
:category="$category ?? null"
:category="$catname ?? 'All'"
:parentcat="$parentcat ?? null"
:shows="$shows ?? false"
/>
+11 -5
View File
@@ -6,10 +6,16 @@
@section('content')
<div class="surface-panel rounded-xl shadow-sm" x-data="moviesPage" data-movie-layout="{{ $movie_layout ?? 2 }}">
<x-breadcrumb :items="[
['label' => 'Home', 'url' => url($site['home_link'] ?? '/'), 'icon' => 'fas fa-home'],
['label' => 'Movies'],
]" />
@php
$movieCrumbs = [
['label' => 'Home', 'url' => url($site['home_link'] ?? '/'), 'icon' => 'fas fa-home'],
['label' => 'Movies', 'url' => !empty($categorytitle) ? route('Movies') : null],
];
if (!empty($categorytitle)) {
$movieCrumbs[] = ['label' => $categorytitle];
}
@endphp
<x-breadcrumb :items="$movieCrumbs" />
{{-- Movies Filter Section --}}
<div class="px-6 py-5 surface-panel-alt border-b">
@@ -21,7 +27,7 @@
<x-view-toggle
current-view="covers"
covgroup="movies"
category="All"
:category="$categorytitle ?: 'All'"
parentcat="Movies"
:shows="false"
/>