aboutsummaryrefslogtreecommitdiffstats
path: root/resources/views/layouts/app.blade.php
blob: c6c3b712bc4281b089b2194a1c7d7f19eeb5826a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<!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() }}">
    <title>@yield('title', 'Teacher Journal')</title>
    <link rel="stylesheet" href="{{ asset('css/common.css') }}">
    <link rel="stylesheet" href="{{ asset('css/layouts.css') }}">
    @stack('styles')
</head>

<body>
<nav>
    <a href="{{ route('dashboard') }}">Teacher Journal</a>
    <ul>
        <li><a href="{{ route('dashboard') }}">Dashboard</a></li>
        <li><a href="{{ route('teachers.index') }}">Teachers</a></li>
        <li><a href="{{ route('groups.index') }}">Groups</a></li>
        <li><a href="{{ route('sub-groups.index') }}">Sub Groups</a></li>
        <li><a href="{{ route('students.index') }}">Students</a></li>
        <li><a href="{{ route('lessons.index') }}">Lessons</a></li>
        <li><a href="{{ route('activities.index') }}">Activities</a></li>
        <li>
            <form method="POST" action="{{ route('logout') }}" style="display:inline">
                @csrf
                <button type="submit">Logout</button>
            </form>
        </li>
    </ul>
</nav>

<main>
    @if(session('success'))
        <p>{{ session('success') }}</p>
    @endif

    @if(session('error'))
        <p>{{ session('error') }}</p>
    @endif

    @if($errors->any())
        <ul>
            @foreach($errors->all() as $error)
                <li>{{ $error }}</li>
            @endforeach
        </ul>
    @endif

    @yield('content')
</main>

@stack('scripts')
</body>

</html>