Roman_applicant-site/resources/views/layouts/admin_layout.blade.php

80 lines
6.4 KiB
PHP
Raw Normal View History

2024-01-19 10:49:50 +03:00
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
2024-03-14 10:03:33 +03:00
<meta http-equiv="cache-control" content="no-cache, no-store, must-revalidate" />
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="expires" content="0" />
2024-01-19 10:49:50 +03:00
<meta name="csrf-token" content="{{ csrf_token() }}">
<meta name="csrf-param" content="_token"/>
2024-01-19 19:17:21 +03:00
<title>Панель администратора</title>
@vite(['resources/js/app.js'])
2024-01-19 10:49:50 +03:00
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
</head>
<body class="antialiased">
@include('layouts.tooltips')
2024-02-07 16:34:04 +03:00
<div class="container-fluid">
2024-01-19 10:49:50 +03:00
<header
class="d-flex flex-wrap align-items-center justify-content-center justify-content-md-between py-3 mb-4 border-bottom">
<ul class="nav col-9 col-md-auto mb-2 justify-content-start mb-md-0">
2024-02-07 16:34:04 +03:00
<li><a href="{{ route('dashboard') }}" class="nav-link px-2 link-secondary text-wrap" style="width: 4rem;">Главная</a>
</li>
2024-01-19 10:49:50 +03:00
</ul>
<div class="col-md-3 text-center">
2024-01-19 19:17:21 +03:00
<a href="{{ route('home') }}" class="nav-link px-2 link-secondary">Сайт abitur.mkgtu.ru</a>
2024-01-19 10:49:50 +03:00
</div>
<div class="col-md-3 text-end">
<div>
@guest()
<a href="{{ route("login") }}" class="btn btn-outline-primary me-2">
Войти
</a>
@endguest
@auth()
<form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;">
@csrf
</form>
<a href="{{ route("logout") }}" class="btn btn-primary"
onclick="event.preventDefault(); document.getElementById('logout-form').submit();">
Выйти
</a>
@endauth
</div>
</div>
</header>
2024-01-19 19:17:21 +03:00
<div class="row align-items-start">
<aside class="col-2">
<ul class="list-group ">
2024-03-20 13:09:39 +03:00
<li class="list-group-item {{ request()->is('admin/news*') ? 'active' : '' }}"><a class="{{ request()->is('admin/news*') ? 'link-light' : '' }}" href="{{ route('news.index') }}">Новости</a></li>
<li class="list-group-item {{ request()->is('admin/documents*') ? 'active' : '' }}"><a class="{{ request()->is('admin/documents*') ? 'link-light' : '' }}" href="{{ route('documents.index') }}">Документы</a></li>
<li class="list-group-item {{ request()->is('admin/admissions*') ? 'active' : '' }}"><a class="{{ request()->is('admin/admissions*') ? 'link-light' : '' }}" href="{{ route('admissions.index') }}">Экран Приема</a></li>
<li class="list-group-item {{ request()->is('admin/directions*') ? 'active' : '' }}"><a class="{{ request()->is('admin/directions*') ? 'link-light' : '' }}" href="{{ route('directions.index') }}">Направления</a></li>
2024-02-14 10:20:40 +03:00
@can('viewAny', Auth::user())
2024-02-07 16:34:04 +03:00
<li class="list-group-item"></li>
<li class="list-group-item {{ request()->is('admin/users*') ? 'active' : '' }}"><a class="{{ request()->is('admin/users*') ? 'link-light' : '' }}" href="{{ route('users.index') }}">Список администраторов</a></li>
2024-02-14 10:20:40 +03:00
@endcan
2024-02-07 16:34:04 +03:00
<li class="list-group-item"></li>
<li class="list-group-item">Справочники</li>
<li class="list-group-item {{ request()->is('admin/educational_institutions*') ? 'active' : '' }}"><a class="{{ request()->is('admin/educational_institutions*') ? 'link-light' : '' }}" href="{{ route('educational_institutions.index') }}">Учебные
2024-02-07 16:34:04 +03:00
заведения</a></li>
<li class="list-group-item {{ request()->is('admin/faculties*') ? 'active' : '' }}"><a class="{{ request()->is('admin/faculties*') ? 'link-light' : '' }}" href="{{ route('faculties.index') }}">Факультеты</a></li>
<li class="list-group-item {{ request()->is('admin/departments*') ? 'active' : '' }}"><a class="{{ request()->is('admin/departments*') ? 'link-light' : '' }}" href="{{ route('departments.index') }}">Кафедры</a></li>
2024-02-29 18:00:50 +03:00
<li class="list-group-item {{ request()->is('admin/entrance_examinations*') ? 'active' : '' }}"><a class="{{ request()->is('admin/entrance_examinations*') ? 'link-light' : '' }}" href="{{ route('entrance_examinations.index') }}">Вступ. экзамены</a></li>
<li class="list-group-item {{ request()->is('admin/education_levels*') ? 'active' : '' }}"><a class="{{ request()->is('admin/education_levels*') ? 'link-light' : '' }}" href="{{ route('education_levels.index') }}">Уровни образования</a></li>
<li class="list-group-item {{ request()->is('admin/education_forms*') ? 'active' : '' }}"><a class="{{ request()->is('admin/education_forms*') ? 'link-light' : '' }}" href="{{ route('education_forms.index') }}">Формы образования</a></li>
<li class="list-group-item {{ request()->is('admin/examination_types*') ? 'active' : '' }}"><a class="{{ request()->is('admin/examination_types*') ? 'link-light' : '' }}" href="{{ route('examination_types.index') }}">Типы Экзаменов</a></li>
<li class="list-group-item {{ request()->is('admin/subjects*') ? 'active' : '' }}"><a class="{{ request()->is('admin/subjects*') ? 'link-light' : '' }}" href="{{ route('subjects.index') }}">Предметы</a></li>
<li class="list-group-item {{ request()->is('admin/subject_types*') ? 'active' : '' }}"><a class="{{ request()->is('admin/subject_types*') ? 'link-light' : '' }}" href="{{ route('subject_types.index') }}">Типы Предметов</a></li>
<li class="list-group-item {{ request()->is('admin/direction_profiles*') ? 'active' : '' }}"><a class="{{ request()->is('admin/direction_profiles*') ? 'link-light' : '' }}" href="{{ route('direction_profiles.index') }}">Профили подготовки</a></li>
2024-01-19 19:17:21 +03:00
</ul>
</aside>
<main class="col-10">@yield('content')</main>
2024-01-19 19:17:21 +03:00
</div>
</div>
2024-01-19 10:49:50 +03:00
</body>
</html>