app.blade.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <!DOCTYPE html>
  2. <html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1">
  6. <meta name="csrf-token" content="{{ csrf_token() }}">
  7. <title>{{ config('app.name', 'Laravel') }}</title>
  8. <!-- Fonts -->
  9. <link rel="preconnect" href="https://fonts.bunny.net">
  10. <link href="https://fonts.bunny.net/css?family=figtree:400,500,600&display=swap" rel="stylesheet" />
  11. <!-- Scripts -->
  12. @vite(['resources/css/app.css', 'resources/js/app.js'])
  13. </head>
  14. <body class="font-sans antialiased">
  15. <div class="min-h-screen bg-gray-100 dark:bg-gray-900">
  16. <livewire:layout.navigation />
  17. <!-- Page Heading -->
  18. @if (isset($header))
  19. <header class="bg-white dark:bg-gray-800 shadow">
  20. <div class="max-w-7xl mx-auto py-6 px-4 sm:px-6 lg:px-8">
  21. {{ $header }}
  22. </div>
  23. </header>
  24. @endif
  25. <!-- Page Content -->
  26. <main>
  27. {{ $slot }}
  28. </main>
  29. </div>
  30. </body>
  31. </html>