documentarian.blade.php 627 B

12345678910111213141516171819
  1. ---
  2. {!! $frontmatter !!}
  3. ---
  4. <!-- START_INFO -->
  5. {!! $infoText !!}
  6. <!-- END_INFO -->
  7. {!! $prependMd !!}
  8. @foreach($parsedRoutes as $groupName => $routes)
  9. #{!! $groupName !!}
  10. {{-- We pick the first non-empty description we see. --}}
  11. {!! \Illuminate\Support\Arr::first($routes, function ($route) { return $route['groupDescription'] !== ''; })['groupDescription'] ?? '' !!}
  12. @foreach($routes as $parsedRoute)
  13. @if($writeCompareFile === true)
  14. {!! $parsedRoute['output'] !!}
  15. @else
  16. {!! isset($parsedRoute['modified_output']) ? $parsedRoute['modified_output'] : $parsedRoute['output'] !!}
  17. @endif
  18. @endforeach
  19. @endforeach{!! $appendMd !!}