No Description

app.blade.php 4.9KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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. <!-- CSRF Token -->
  7. <meta name="csrf-token" content="{{ csrf_token() }}">
  8. <title>{{ config('app.name', 'Laravel') }}</title>
  9. <!-- Fonts -->
  10. <link rel="dns-prefetch" href="//fonts.gstatic.com">
  11. <link href="https://fonts.googleapis.com/css?family=Nunito" rel="stylesheet">
  12. <!-- Styles -->
  13. <!-- Bootstrap CSS -->
  14. <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
  15. <!-- Material Design Components -->
  16. <link href="https://unpkg.com/material-components-web@latest/dist/material-components-web.min.css" rel="stylesheet">
  17. <!-- Font Awesome Icons -->
  18. <script src="https://kit.fontawesome.com/1cc169c87a.js"></script>
  19. <!-- Material Icons -->
  20. <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
  21. <link href="{{ asset('css/app.css') }}" rel="stylesheet">
  22. </head>
  23. <body class="mdc-typography">
  24. <nav class="navbar navbar-expand-md navbar-dark bg-dark shadow-sm fixed-top">
  25. <div class="container">
  26. <a class="navbar-brand" href="{{ url('/') }}">
  27. <img src="{{ asset('images/uprrp_logo.png') }}" width="64">
  28. </a>
  29. <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="{{ __('Toggle navigation') }}">
  30. <span class="navbar-toggler-icon"></span>
  31. </button>
  32. <div class="collapse navbar-collapse" id="navbarSupportedContent">
  33. <!-- Left Side Of Navbar -->
  34. <ul class="navbar-nav mr-auto">
  35. <li class="nav-item">
  36. <a class="nav-link mdc-typography--body1" href="{{ route('course.index') }}">Cursos</a>
  37. </li>
  38. <li class="nav-item">
  39. <a class="nav-link mdc-typography--body1" href="{{ route('professor.index') }}">Profesores</a>
  40. </li>
  41. </ul>
  42. <!-- Right Side Of Navbar -->
  43. <ul class="navbar-nav ml-auto">
  44. <!-- Authentication Links -->
  45. @guest
  46. <li class="nav-item">
  47. <a class="nav-link mdc-typography--body1" href="{{ route('login') }}">{{ __('Login') }}</a>
  48. </li>
  49. @if (Route::has('register'))
  50. <li class="nav-item">
  51. <a class="nav-link mdc-typography--body1" href="{{ route('register') }}">{{ __('Register') }}</a>
  52. </li>
  53. @endif
  54. @else
  55. <li class="nav-item dropdown">
  56. <a id="navbarDropdown" class="nav-link dropdown-toggle" href="#" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
  57. {{ Auth::user()->name }} <span class="caret"></span>
  58. </a>
  59. <div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdown">
  60. <a class="dropdown-item mdc-typography--body1" href="{{ route('dashboard') }}">Dashboard</a>
  61. <a class="dropdown-item mdc-typography--body1" href="{{ route('logout') }}">Log out</a>
  62. </div>
  63. </li>
  64. @endguest
  65. </ul>
  66. </div>
  67. </div>
  68. </nav>
  69. {{-- <div class="container-fluid mx-2"> --}}
  70. <main class="mdc-layout-grid py-4">
  71. @yield('content')
  72. </main>
  73. @auth
  74. @yield('modals')
  75. @endauth
  76. <!-- Optional JavaScript -->
  77. <!-- jQuery first, then Popper.js, then Bootstrap JS -->
  78. <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
  79. <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
  80. <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
  81. <script src="https://unpkg.com/material-components-web@latest/dist/material-components-web.min.js"></script>
  82. <script src="/js/app.js"></script>
  83. @yield('scripts')
  84. </body>
  85. </html>