groups.blade.php 1.1 KB

12345678910111213141516171819202122232425262728
  1. @foreach($groupedEndpoints as $group)
  2. <h1 id="{!! Str::slug($group['name']) !!}"
  3. class="sl-text-5xl sl-leading-tight sl-font-prose sl-text-heading"
  4. >
  5. {!! $group['name'] !!}
  6. </h1>
  7. {!! Parsedown::instance()->text($group['description']) !!}
  8. @foreach($group['subgroups'] as $subgroupName => $subgroup)
  9. @if($subgroupName !== "")
  10. <h2 id="{!! Str::slug($group['name']) !!}-{!! Str::slug($subgroupName) !!}"
  11. class="sl-text-3xl sl-leading-tight sl-font-prose sl-text-heading sl-mt-5 sl-mb-3"
  12. >
  13. {{ $subgroupName }}
  14. </h2>
  15. @php($subgroupDescription = collect($subgroup)->first(fn ($e) => $e->metadata->subgroupDescription)?->metadata?->subgroupDescription)
  16. @if($subgroupDescription)
  17. {!! Parsedown::instance()->text($subgroupDescription) !!}
  18. @endif
  19. <br>
  20. @endif
  21. @foreach($subgroup as $endpoint)
  22. @include("scribe::themes.elements.endpoint")
  23. @endforeach
  24. @endforeach
  25. @endforeach