{{-- The showcase's frame, and the package's own app shell at work: the rail groups every section, collapses and expands from `lg`, and opens as a modal from the app bar's menu button on a phone. Pages move with wire:navigate, so the rail keeps its place and the theme stays. --}} @php $sections ??= \NoNameWeb\LivewireMaterial\Showcase\Sections::all(); $section ??= null; $title = $section !== null ? $sections[$section]['title'] : 'Livewire Material'; $destinations = [[ 'title' => 'Overview', 'icon' => 'home', 'url' => route('livewire-material.showcase'), 'active' => $section === null, 'bar' => false, ]]; foreach ($sections as $key => $entry) { $destinations[] = [ 'title' => $entry['title'], 'icon' => $entry['icon'], 'url' => route('livewire-material.section', $key), 'active' => $key === $section, 'section' => $entry['group'], 'bar' => false, ]; } @endphp