groups.blade.php 872 B

123456789101112131415161718192021
  1. @foreach($groupedEndpoints as $group)
  2. <h1 id="{!! Str::slug($group['name']) !!}">{!! $group['name'] !!}</h1>
  3. {!! Parsedown::instance()->text($group['description']) !!}
  4. @foreach($group['subgroups'] as $subgroupName => $subgroup)
  5. @if($subgroupName !== "")
  6. <h2 id="{!! Str::slug($group['name']) !!}-{!! Str::slug($subgroupName) !!}">{{ $subgroupName }}</h2>
  7. @php($subgroupDescription = collect($subgroup)->first(fn ($e) => $e->metadata->subgroupDescription)?->metadata?->subgroupDescription)
  8. @if($subgroupDescription)
  9. <p>
  10. {!! Parsedown::instance()->text($subgroupDescription) !!}
  11. </p>
  12. @endif
  13. @endif
  14. @foreach($subgroup as $endpoint)
  15. @include("scribe::themes.default.endpoint")
  16. @endforeach
  17. @endforeach
  18. @endforeach