@extends('layouts.main')
@push('modals')
@include('partials.release-modals')
@endpush
@section('content')
@php
$currentCategoryLabel = match (true) {
is_object($catname ?? null) => $catname->title ?? 'All',
is_string($catname ?? null) && strtolower($catname) !== 'all' => $catname,
default => 'All',
};
$browseTitle = !empty($parentcat) && $parentcat !== 'All' ? $parentcat : 'Browse releases';
@endphp
{{ number_format($results->total()) }} releases
{{ $currentCategoryLabel }}
@if($results->count() > 0)
@php
$searchPlaceholder = 'Search';
if (!empty($parentcat) && $parentcat !== 'All') {
$searchPlaceholder .= ' in ' . $parentcat;
if (!empty($catname) && $catname !== 'All' && $catname !== 'all') {
$searchPlaceholder .= ' ' . $catname;
}
}
$searchPlaceholder .= '...';
@endphp
@if(isset($shows))
@endif
@if(isset($covgroup) && $covgroup != '' || isset($shows) && $shows)
@endif
@else
@endif
{{-- All modals (preview, mediainfo, filelist, NFO) are included globally via layouts.main --}}
@endsection