layout.blade.php 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <link rel="stylesheet" href="{{ asset('css/tailwind.min.css') }}">
  7. <title>Корочки.есть</title>
  8. </head>
  9. <body class=''>
  10. <header class="bg-indigo-800 text-white px-5">
  11. <article class='lg:flex hidden items-center flex-row justify-between py-3 px-5'>
  12. <a href="{{ route('home') }}">
  13. <img src="{{ asset('images/logo.webp') }}" alt="logo" loading="lazy" class="w-10">
  14. </a>
  15. <nav class="flex flex-row items-center gap-5">
  16. <a href="{{ route('apps') }}">Заявки</a>
  17. <a href="{{ route('apps.create') }}">Создать заявку</a>
  18. @if(Auth::check() && Auth::user()->login == 'Admin')
  19. <a href="{{ route('admin') }}">Админ-панель</a>
  20. @endif
  21. </nav>
  22. @guest
  23. <article class="flex flex-row items-center gap-5">
  24. <a href="{{ route('register') }}">Создать аккаунт</a>
  25. <a href="{{ route('login') }}">Войти</a>
  26. </article>
  27. @endguest
  28. @auth
  29. <a href="{{ route('logout') }}" class='hidden md:block'>Выйти</a>
  30. @endauth
  31. </article>
  32. <button class='font-black text-white lg:hodden block absolute top-3 right-8' onclick='headerswap()'>=</button>
  33. <article class='lg:hidden flex items-start flex-col py-3 px-5 gap-3' >
  34. <a href="{{ route('home') }}">
  35. <img src="{{ asset('images/logo.webp') }}" alt="logo" loading="lazy" class="w-10">
  36. </a>
  37. <article class='flex flex-col hidden' id='header_under'>
  38. <nav class="flex flex-col gap-3">
  39. <a href="{{ route('apps') }}">Заявки</a>
  40. <a href="{{ route('apps.create') }}">Создать заявку</a>
  41. @if(Auth::check() && Auth::user()->login == 'Admin')
  42. <a href="{{ route('admin') }}">Админ-панель</a>
  43. @endif
  44. </nav>
  45. @guest
  46. <article class="flex flex-col gap-3">
  47. <a href="{{ route('register') }}">Создать аккаунт</a>
  48. <a href="{{ route('login') }}">Войти</a>
  49. </article>
  50. @endguest
  51. @auth
  52. <a href="{{ route('logout') }}">Выйти</a>
  53. @endauth
  54. </article>
  55. </article>
  56. </header>
  57. <script>
  58. function headerswap() {
  59. document.getElementById('header_under').classList.toggle('hidden')
  60. }
  61. </script>
  62. @yield('content')
  63. <footer class=' text-white font-light text-center mt-40'>
  64. <article class='bg-indigo-800 text-light flex flex-row justify-around py-20'>
  65. <ul class='flex flex-col gap-1'>
  66. <li class='font-bold'>Навигация по сайту</li>
  67. <li><a href="{{ route('home') }}">Главная</a></li>
  68. <li><a href="{{ route('apps') }}">Заявки</a></li>
  69. <li><a href="{{ route('apps.create') }}">Создать заявку</a></li>
  70. </ul>
  71. <ul class='flex flex-col gap-1'>
  72. <li class='font-bold'>Спонсоры</li>
  73. <li><a href="https://online.sberbank.ru/CSAFront/index.do">СБЕР</a></li>
  74. <li><a href="https://www.tbank.ru/">ТБАНК</a></li>
  75. <li><a href="https://skysmart.ru/">SkySmart</a></li>
  76. </ul>
  77. </article>
  78. <p class='bg-indigo-900 py-4'>
  79. @2026 - "Корочки.есть"
  80. </p>
  81. </footer>
  82. </body>
  83. </html>