1{{--
2 Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0.
3 See the LICENCE file in the repository root for full licence text.
4--}}
5@foreach($groupedEndpoints as $group)
6 <h1 id="{!! Str::slug($group['name']) !!}">{!! $group['name'] !!}</h1>
7
8 {!! Parsedown::instance()->text($group['description']) !!}
9
10 @foreach($group['subgroups'] as $subgroupName => $subgroup)
11 @if($subgroupName !== "")
12 <h2 id="{!! Str::slug($group['name']) !!}-{!! Str::slug($subgroupName) !!}">{{ $subgroupName }}</h2>
13 @php($subgroupDescription = collect($subgroup)->first(fn ($e) => $e->metadata->subgroupDescription)?->metadata?->subgroupDescription)
14 @if($subgroupDescription)
15 <p>
16 {!! Parsedown::instance()->text($subgroupDescription) !!}
17 </p>
18 @endif
19 @endif
20 @foreach($subgroup as $endpoint)
21 @include("docs.endpoint")
22 @endforeach
23 @endforeach
24@endforeach
25