@if(isset($parentcatlist)) @foreach($parentcatlist as $parentcat) @if($parentcat['id'] == App\Models\Category::TV_ROOT)
All TV
TV Series
@foreach($parentcat['categories'] as $subcat) @if($subcat['id'] == App\Models\Category::TV_FOREIGN)
{{ $subcat['title'] }}
All Foreign
@include('partials.foreign-language-links', ['foreignCategory' => App\Models\Category::TV_FOREIGN])
@else {{ $subcat['title'] }} @endif @endforeach
@elseif($parentcat['id'] == App\Models\Category::MOVIE_ROOT)
@if(auth()->check() && auth()->user()->movieview == "1") {{ $parentcat['title'] }} @else {{ $parentcat['title'] }} @endif
My Movies
@foreach($parentcat['categories'] as $subcat) @if($subcat['id'] == App\Models\Category::MOVIE_FOREIGN)
@if(auth()->check() && auth()->user()->movieview == "1") {{ $subcat['title'] }} @else {{ $subcat['title'] }} @endif
@if(auth()->check() && auth()->user()->movieview == "1") All Foreign @else All Foreign @endif
@include('partials.foreign-language-links', ['foreignCategory' => App\Models\Category::MOVIE_FOREIGN])
@elseif(auth()->check() && auth()->user()->movieview == "1") {{ $subcat['title'] }} @else {{ $subcat['title'] }} @endif @endforeach
@elseif($parentcat['id'] == App\Models\Category::GAME_ROOT)
@if(auth()->check() && auth()->user()->consoleview == "1") {{ $parentcat['title'] }} @else {{ $parentcat['title'] }} @endif
@foreach($parentcat['categories'] as $subcat) @if(auth()->check() && auth()->user()->consoleview == "1") {{ $subcat['title'] }} @else {{ $subcat['title'] }} @endif @endforeach
@elseif($parentcat['id'] == App\Models\Category::PC_ROOT)
{{ $parentcat['title'] }}
@foreach($parentcat['categories'] as $subcat) @if(auth()->check() && auth()->user()->gameview == "1" && $subcat['id'] == App\Models\Category::PC_GAMES) {{ $subcat['title'] }} @else {{ $subcat['title'] }} @endif @endforeach
@else @php $desktopIconMap = [ App\Models\Category::MUSIC_ROOT => 'fa-music', App\Models\Category::BOOKS_ROOT => 'fa-book', App\Models\Category::XXX_ROOT => 'fa-ban', ]; $desktopIcon = $desktopIconMap[$parentcat['id']] ?? 'fa-folder'; @endphp
{{ $parentcat['title'] }} @if(isset($parentcat['categories']) && count($parentcat['categories']) > 0)
@foreach($parentcat['categories'] as $subcat) {{ $subcat['title'] }} @endforeach @endif
@endif @endforeach @endif
@auth
My Download Basket My Movies My Shows My Invitations
Account Settings @if(auth()->user()->hasRole('Admin')) Admin @endif
Theme @include('partials.theme-switcher', ['switcherId' => 'dropdown-theme-switcher', 'btnClass' => 'dropdown-theme-btn', 'mobile' => false])
Color Scheme @include('partials.scheme-switcher', ['switcherId' => 'dropdown-scheme-switcher', 'btnClass' => 'dropdown-scheme-btn', 'mobile' => false])
Profile Sign Out
@csrf
@else
Login Register
@endauth
@if(isset($parentcatlist))
@foreach($parentcatlist as $parentcat)
@php $iconMap = [ App\Models\Category::TV_ROOT => 'fa-television', App\Models\Category::MOVIE_ROOT => 'fa-film', App\Models\Category::GAME_ROOT => 'fa-gamepad', App\Models\Category::PC_ROOT => 'fa-desktop', App\Models\Category::MUSIC_ROOT => 'fa-music', App\Models\Category::BOOKS_ROOT => 'fa-book', App\Models\Category::XXX_ROOT => 'fa-ban', ]; $catIcon = $iconMap[$parentcat['id']] ?? 'fa-folder'; @endphp
@if($parentcat['id'] == App\Models\Category::TV_ROOT) All TV TV Series @elseif($parentcat['id'] == App\Models\Category::MOVIE_ROOT) @if(auth()->check() && auth()->user()->movieview == "1") {{ $parentcat['title'] }} @else {{ $parentcat['title'] }} @endif My Movies @elseif($parentcat['id'] == App\Models\Category::GAME_ROOT) @if(auth()->check() && auth()->user()->consoleview == "1") {{ $parentcat['title'] }} @else {{ $parentcat['title'] }} @endif @elseif($parentcat['id'] == App\Models\Category::PC_ROOT) {{ $parentcat['title'] }} @else All {{ $parentcat['title'] }} @endif @if(isset($parentcat['categories'])) @foreach($parentcat['categories'] as $subcat) @if($parentcat['id'] == App\Models\Category::TV_ROOT) {{ $subcat['title'] }} @elseif($parentcat['id'] == App\Models\Category::MOVIE_ROOT) @if(auth()->check() && auth()->user()->movieview == "1") {{ $subcat['title'] }} @else {{ $subcat['title'] }} @endif @elseif($parentcat['id'] == App\Models\Category::GAME_ROOT) @if(auth()->check() && auth()->user()->consoleview == "1") {{ $subcat['title'] }} @else {{ $subcat['title'] }} @endif @elseif($parentcat['id'] == App\Models\Category::PC_ROOT && auth()->check() && auth()->user()->gameview == "1" && $subcat['id'] == App\Models\Category::PC_GAMES) {{ $subcat['title'] }} @else {{ $subcat['title'] }} @endif @endforeach @endif
@endforeach
@endif @auth
My Download Basket Account Settings @if(auth()->user()->hasRole('Admin')) Admin @endif
Theme @include('partials.theme-switcher', ['switcherId' => 'mobile-theme-switcher', 'btnClass' => 'mobile-theme-btn', 'mobile' => true])
Color Scheme @include('partials.scheme-switcher', ['switcherId' => 'mobile-scheme-switcher', 'btnClass' => 'mobile-scheme-btn', 'mobile' => true])
@endauth