@extends('layouts.nova') @section('content') @php $contentTypes = $contentTypes ?? collect([ (object) [ 'name' => 'Categories', 'description' => null, 'roots' => $categories ?? collect(), ], ]); $subgroups = $subgroups ?? collect(); @endphp
Select a category to view its artworks.
{!! $ct->description ?? 'Browse artworks by content type.' !!}
@forelse ($ct->roots as $cat) @php $name = $cat->category_name ?? ''; $subs = $subgroups[$cat->category_id] ?? collect(); @endphp