<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta charset="UTF-8"> <link rel="stylesheet" href="http://code.jquery.com/qunit/qunit-1.14.0.css"> <link rel="stylesheet" href="{{ asset('css/app.css') }}"> <script type="text/javascript" src="{{ asset('js/app.js') }}"></script> <script src="http://code.jquery.com/qunit/qunit-1.14.0.js"></script> <script src="http://code.jquery.com/jquery-1.11.1.min.js"></script> <script type="text/javascript" src="{{ asset('js/custom.js') }}"></script> <link rel="shortcut icon" href="{{ asset('img/favicon.png') }}"> <title> @CHECK | @yield('map_title') </title> @yield('map_meta') </head> <body> <div id="app"> <nav class="navbar navbar-expand-md navbar-light bg-white shadow-sm"> <div class="container"> <a class="navbar-brand" href="{{ url('/') }}"> @CHECK </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"> </ul> <!-- Right Side Of Navbar --> <ul class="navbar-nav ml-auto"> <!-- Authentication Links --> @guest <li class="nav-item"> <a class="nav-link" href="{{ route('login') }}">{{ __('Zaloguj się') }}</a> </li> @if (Route::has('register')) <li class="nav-item"> <a class="nav-link" href="{{ route('register') }}">{{ __('Zarejestruj się') }}</a> </li> @endif @else <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> @if (Auth::user()->is_Admin) <li class="nav-item"> <a class="nav-link" href="{{ route('admin') }}">{{ __('Panel admina') }}</a> </li> @endif <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> {{ Auth::user()->name }} {{ Auth::user()->surname }} <span class="caret"></span> </a> <div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdown"> <a class="dropdown-item" href="{{ route('logout') }}" onclick="event.preventDefault(); document.getElementById('logout-form').submit();"> {{ __('Wyloguj się') }} </a> <form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;"> @csrf </form> </div> </li> @endguest </ul> </div> </div> </nav> </div> {{--<main class="py-4">--}} {{--<div class="container">--}} {{--@auth--}} {{--<div class="container">--}} {{--<div class="row justify-content-center">--}} {{--<div class="col-md-12">--}} {{--<div class="card">--}} {{--<div class="card-header">Mój Panel</div>--}} {{--<div class="card-body">--}} {{--@if (session('status'))--}} {{--<div class="alert alert-success" role="alert">--}} {{--{{ session('status') }}--}} {{--</div>--}} {{--@endif--}} {{--</div>--}} {{--<div class="card-body">--}} {{--<a href="{{ route('user_subjects') }}" class="btn btn-primary"> Moje przedmioty </a>--}} {{--<a href="{{ route('user_classes') }}" class="btn btn-primary"> My classes </a>--}} {{--<a href="{{ route('user_classes') }}" class="btn btn-primary"> Sprawdź obecność </a>--}} {{--<a href="{{ route('user_attendances') }}" class="btn btn-primary"> Obecności </a>--}} {{--<a href="{{ route('user_preview_classes', [0]) }}" name="preview-classes-btn" class="btn btn-primary"> Podgląd sali </a>--}} {{--</div>--}} {{--<div class="card-body">--}} {{--@yield('user_content')--}} {{--</div>--}} {{--</div>--}} {{--</div>--}} {{--</div>--}} {{--</div>--}} {{--@else--}} {{--<div class="container flex-center">--}} {{--<div class="row justify-content-center">--}} {{--<div class="flex-center position-ref full-height">--}} {{--<div class="content">--}} {{--<div class="title m-b-md">--}} {{--@CHECK--}} {{--</div>--}} {{--<h2>Witaj!</h2>--}} {{--</div>--}} {{--</div>--}} {{--</div>--}} {{--</div>--}} {{--@endauth--}} {{--</div>--}} {{--</main>--}} <div class="wrapper"> <div class="map-buttons"> <a href="{{ route('user_classes') }}" class="checkout-button end-button"> Zakończ zapisy </a> <button type="button" class="checkout-button end-button add-mn-btn"> Dodaj studenta ręcznie </button> </div> @yield('map_content') </div> </body> </html>