page.blade.php 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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. <title>{{ __('ui.h1_title') }}</title>
  7. <!-- Fonts -->
  8. <link href="https://fonts.googleapis.com/css?family=Nunito:200,600" rel="stylesheet">
  9. <!-- Bootstrap CDN -->
  10. <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
  11. <script src="https://code.jquery.com/jquery-3.4.1.slim.min.js" integrity="sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n" crossorigin="anonymous"></script>
  12. <script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script>
  13. <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js" integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6" crossorigin="anonymous"></script>
  14. <!-- Styles -->
  15. <link href="{{ asset('css/page.css') }}" rel="stylesheet">
  16. </head>
  17. <body>
  18. <div class="flex-center position-ref full-height">
  19. @if (Route::has('login'))
  20. <div class="top-right links">
  21. <a href="/lang/en">EN</a>
  22. <a href="/lang/ru">RU</a>
  23. @auth
  24. <a href="{{ url('/home') }}">🎧{{ __('ui.panel') }}</a>
  25. @else
  26. <a href="{{ route('login') }}">{{ __('ui.login') }}</a>
  27. @if (Route::has('register'))
  28. <a
  29. @if($srv_state['lockdown']=='yes')
  30. style="text-decoration: line-through; cursor: pointer"
  31. data-toggle="modal" data-target="#noticeModal"
  32. @else
  33. href="{{ route('register') }}"
  34. @endif
  35. >
  36. {{__('ui.register')}}
  37. </a>
  38. @endif
  39. @endauth
  40. </div>
  41. @endif
  42. <div class="content">
  43. @yield('content')
  44. </div>
  45. </div>
  46. <!-- Modal -->
  47. <div class="modal fade" id="noticeModal" tabindex="-1" role="dialog" aria-labelledby="noticeModal" aria-hidden="true">
  48. <div class="modal-dialog" role="document">
  49. <div class="modal-content">
  50. <div class="modal-header">
  51. <h5 class="modal-title" id="noticeModalLabel">{{ __('ui.lockdown_on') }}</h5>
  52. <button type="button" class="close" data-dismiss="modal" aria-label="Close">
  53. <span aria-hidden="true">&times;</span>
  54. </button>
  55. </div>
  56. <div class="modal-body">
  57. {{ $srv_state['lockdown_msg'] }}
  58. <a href="mailto:{{ $srv_state['srv_email'] }}">{{ $srv_state['srv_email'] }}</a>
  59. </div>
  60. <div class="modal-footer">
  61. </div>
  62. </div>
  63. </div>
  64. </div>
  65. </body>
  66. </html>