2019-11-25 16:23:25 +01:00
|
|
|
<!doctype html>
|
|
|
|
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
|
|
<meta name="csrf-token" content="{{ csrf_token() }}">
|
2019-12-20 01:11:51 +01:00
|
|
|
<title> @CHECK | @yield('title') </title>
|
2019-11-25 16:23:25 +01:00
|
|
|
|
|
|
|
<!-- Scripts -->
|
2019-12-20 01:11:51 +01:00
|
|
|
<script src="http://code.jquery.com/jquery-1.11.1.min.js"></script>
|
2019-12-16 15:45:28 +01:00
|
|
|
<script src="{{ asset('js/app.js') }}" defer></script>
|
|
|
|
<script src="{{ asset('js/custom.js') }}" defer></script>
|
2019-12-13 23:28:16 +01:00
|
|
|
|
2019-11-25 16:23:25 +01:00
|
|
|
<!-- Fonts -->
|
|
|
|
<link rel="dns-prefetch" href="//fonts.gstatic.com">
|
2019-12-20 01:11:51 +01:00
|
|
|
<link href="https://fonts.googleapis.com/css?family=Nunito:200,600" rel="stylesheet">
|
2019-11-25 16:23:25 +01:00
|
|
|
|
|
|
|
<!-- Styles -->
|
2019-12-20 14:09:16 +01:00
|
|
|
<link rel="stylesheet" type="text/css" href="//maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
|
2019-12-16 15:45:28 +01:00
|
|
|
<link href="{{ asset('css/app.css') }}" rel="stylesheet">
|
|
|
|
<link rel="shortcut icon" href="{{ asset('img/favicon.png') }}">
|
2019-12-20 01:11:51 +01:00
|
|
|
@yield('additional_meta')
|
2019-11-25 16:23:25 +01:00
|
|
|
</head>
|
2019-12-20 01:11:51 +01:00
|
|
|
|
2019-11-25 16:23:25 +01:00
|
|
|
<body>
|
|
|
|
<div id="app">
|
2019-12-20 01:11:51 +01:00
|
|
|
|
2019-11-25 16:23:25 +01:00
|
|
|
<nav class="navbar navbar-expand-md navbar-light bg-white shadow-sm">
|
|
|
|
<div class="container">
|
|
|
|
<a class="navbar-brand" href="{{ url('/') }}">
|
2019-12-01 23:36:12 +01:00
|
|
|
@CHECK
|
2019-11-25 16:23:25 +01:00
|
|
|
</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">
|
|
|
|
<ul class="navbar-nav mr-auto">
|
|
|
|
</ul>
|
|
|
|
<ul class="navbar-nav ml-auto">
|
|
|
|
@guest
|
|
|
|
<li class="nav-item">
|
2019-12-06 22:34:25 +01:00
|
|
|
<a class="nav-link" href="{{ route('login') }}">{{ __('Zaloguj się') }}</a>
|
2019-11-25 16:23:25 +01:00
|
|
|
</li>
|
|
|
|
@if (Route::has('register'))
|
|
|
|
<li class="nav-item">
|
2019-12-06 22:34:25 +01:00
|
|
|
<a class="nav-link" href="{{ route('register') }}">{{ __('Zarejestruj się') }}</a>
|
2019-11-25 16:23:25 +01:00
|
|
|
</li>
|
|
|
|
@endif
|
|
|
|
@else
|
2019-12-13 23:28:16 +01:00
|
|
|
<a href="{{ route('user_subjects') }}" class="nav-link"> Moje przedmioty </a>
|
|
|
|
<a href="{{ route('user_classes') }}" class="nav-link"> Sprawdź obecność </a>
|
|
|
|
<a href="{{ route('user_attendances') }}" class="nav-link"> Obecności </a>
|
2019-11-30 21:32:42 +01:00
|
|
|
@if (Auth::user()->is_Admin)
|
|
|
|
<li class="nav-item">
|
2019-12-06 22:34:25 +01:00
|
|
|
<a class="nav-link" href="{{ route('admin') }}">{{ __('Panel admina') }}</a>
|
2019-11-30 21:32:42 +01:00
|
|
|
</li>
|
|
|
|
@endif
|
2019-11-25 16:23:25 +01:00
|
|
|
<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" v-pre>
|
2019-11-30 21:32:42 +01:00
|
|
|
{{ Auth::user()->name }} {{ Auth::user()->surname }} <span class="caret"></span>
|
2019-11-25 16:23:25 +01:00
|
|
|
</a>
|
|
|
|
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdown">
|
|
|
|
<a class="dropdown-item" href="{{ route('logout') }}"
|
|
|
|
onclick="event.preventDefault();
|
2019-12-20 14:09:16 +01:00
|
|
|
document.getElementById('logout-form').submit();"> <i class="fa fa-power-off"></i>
|
|
|
|
{{ __(' Wyloguj się ') }}
|
2019-11-25 16:23:25 +01:00
|
|
|
</a>
|
|
|
|
<form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;">
|
|
|
|
@csrf
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
@endguest
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</nav>
|
|
|
|
|
2019-12-20 01:11:51 +01:00
|
|
|
<main>
|
|
|
|
@yield('content')
|
2019-11-25 16:23:25 +01:00
|
|
|
</main>
|
2019-12-20 01:11:51 +01:00
|
|
|
|
2019-11-25 16:23:25 +01:00
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</html>
|