123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127 |
- <!DOCTYPE html>
- <html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1">
-
- <!-- CSRF Token -->
- <meta name="csrf-token" content="{{ csrf_token() }}">
-
- <title>@yield('title')</title>
-
- <!-- Fonts -->
- <link rel="dns-prefetch" href="//fonts.gstatic.com">
- <link href="https://fonts.googleapis.com/css?family=Nunito" rel="stylesheet">
-
- <!-- Styles -->
- <!-- Bootstrap CSS -->
- <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">
- <!-- Material Design Components -->
- <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
- {{-- <link href="https://unpkg.com/material-components-web@latest/dist/material-components-web.min.css" rel="stylesheet"> --}}
- <!-- Font Awesome Icons -->
- <script src="https://kit.fontawesome.com/1cc169c87a.js"></script>
- <link href="{{ asset('css/app.css') }}" rel="stylesheet">
- </head>
- <body class="mdc-typography">
- <nav class="navbar navbar-expand-md navbar-dark bg-dark shadow-sm fixed-top">
- <div class="container">
- <a class="navbar-brand" href="{{ url('/') }}">
- <img src="{{ asset('images/uprrp_logo.png') }}" width="64">
- </a>
- <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="{{ __('Toggle navigation') }}">
- <span class="navbar-toggler-icon"></span>
- </button>
-
- <div class="collapse navbar-collapse" id="navbarSupportedContent">
- <!-- Left Side Of Navbar -->
- <ul class="navbar-nav mr-auto">
- <li class="nav-item">
- <a class="nav-link mdc-typography--body1" href="{{ route('course.index') }}">Cursos</a>
- </li>
- <li class="nav-item">
- <a class="nav-link mdc-typography--body1" href="{{ route('professor.index') }}">Profesores</a>
- </li>
- <li class="nav-item dropdown">
- @php
- switch(Request()->session()->get('filter')) {
- case 'f': $division = App\Faculty::find(Request()->session()->get('faculty')); break;
- case 'd': $division = App\Department::find(Request()->session()->get('department')); break;
- default: break;
- }
- @endphp
- <a class="nav-link dropdown-toggle mdc-typography--body1" href="#" data-toggle="dropdown">
- {{ $division->name ?: $division->code ?? 'Departamento' }} <span class="caret"></span>
- </a>
- <ul class="dropdown-menu">
- @foreach (App\Faculty::orderBy('name')->get() as $faculty)
- @if ($faculty->departments->isNotEmpty())
- <li class="dropdown-submenu">
- <a class="dropdown-item dropdown-toggle mdc-typography--body1" href="#" data-toggle="dropdown">{{ $faculty->name }}</a>
- <ul class="dropdown-menu">
- @foreach ($faculty->departments as $dept)
- <li class="mdc-typography--body2">
- <a class="dropdown-item" href="{{ url()->current() }}?f=d&dept={{ $dept->id }}">
- {{ $dept->name ?: $dept->code }}
- </a>
- </li>
- @endforeach
- </ul>
- </li>
- @else
- <li>
- <a class="dropdown-item" href="{{ url()->current() }}?f=f&fclt={{ $faculty->id }}">{{ $faculty->name }}</a>
- </li>
- @endif
- @endforeach
- </ul>
- </li>
- </ul>
-
- <!-- Right Side Of Navbar -->
- <ul class="navbar-nav ml-auto">
- <!-- Authentication Links -->
- @guest
- <li class="nav-item">
- <a class="nav-link mdc-typography--body1" href="{{ route('login') }}">{{ __('Login') }}</a>
- </li>
- @if (Route::has('register'))
- <li class="nav-item">
- <a class="nav-link mdc-typography--body1" href="{{ route('register') }}">{{ __('Register') }}</a>
- </li>
- @endif
- @else
- <li class="nav-item dropdown">
- <a id="navbarDropdown" class="nav-link dropdown-toggle" href="#" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
- {{ Auth::user()->name }} <span class="caret"></span>
- </a>
- <div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdown">
- <a class="dropdown-item mdc-typography--body1" href="{{ route('dashboard') }}">Dashboard</a>
- <a class="dropdown-item mdc-typography--body1" href="{{ route('logout') }}">Log out</a>
- </div>
- </li>
- @endguest
- </ul>
- </div>
- </div>
- </nav>
-
- {{-- <div class="container-fluid mx-2"> --}}
- <main class="mdc-layout-grid py-4">
- @yield('content')
- </main>
-
- @auth
- @yield('modals')
- @endauth
-
- <!-- Optional JavaScript -->
- <!-- jQuery first, then Popper.js, then Bootstrap JS -->
- <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
- <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
- <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
- {{-- <script src="https://unpkg.com/material-components-web@latest/dist/material-components-web.min.js"></script> --}}
- <script src="/js/app.js"></script>
- @yield('scripts')
- </body>
- </html>
|