scalar.blade.php 632 B

123456789101112131415161718192021222324252627
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <title>{!! $metadata['title'] !!}</title>
  5. <meta charset="utf-8"/>
  6. <meta
  7. name="viewport"
  8. content="width=device-width, initial-scale=1"/>
  9. <style>
  10. body {
  11. margin: 0;
  12. }
  13. </style>
  14. </head>
  15. <body>
  16. <script
  17. id="api-reference"
  18. @foreach($htmlAttributes as $attribute => $value)
  19. {{-- Attributes specified first override later ones --}}
  20. {!! $attribute !!}="{!! $value !!}"
  21. @endforeach
  22. data-url="{!! $metadata['openapi_spec_url'] !!}">
  23. </script>
  24. <script src="https://cdn.jsdelivr.net/npm/@scalar/api-reference"></script>
  25. </body>
  26. </html>