any fix layouts

This commit is contained in:
aslan 2024-01-19 19:17:21 +03:00
parent 9a8db88d6d
commit 604d5a902c
3 changed files with 28 additions and 20 deletions

View File

@ -6,7 +6,8 @@
<meta name="csrf-token" content="{{ csrf_token() }}"> <meta name="csrf-token" content="{{ csrf_token() }}">
<meta name="csrf-param" content="_token"/> <meta name="csrf-param" content="_token"/>
<title>{{ __('layout.title') }}</title> <title>Панель администратора</title>
@vite(['resources/js/app.js'])
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet"> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
<link href="https://getbootstrap.su/docs/5.3/assets/css/docs.css" rel="stylesheet"> <link href="https://getbootstrap.su/docs/5.3/assets/css/docs.css" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
@ -16,12 +17,12 @@
<header <header
class="d-flex flex-wrap align-items-center justify-content-center justify-content-md-between py-3 mb-4 border-bottom"> 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"> <ul class="nav col-9 col-md-auto mb-2 justify-content-start mb-md-0">
<li><a href="#" class="nav-link px-2 link-secondary text-wrap" style="width: 4rem;">Главная</a></li> <li><a href="{{ route('dashboard') }}" class="nav-link px-2 link-secondary text-wrap" style="width: 4rem;">Главная</a></li>
</ul> </ul>
<div class="col-md-3 text-center"> <div class="col-md-3 text-center">
<a href="#" class="nav-link px-2 link-secondary">Сайт abitur.mkgtu.ru</a> <a href="{{ route('home') }}" class="nav-link px-2 link-secondary">Сайт abitur.mkgtu.ru</a>
</div> </div>
<div class="col-md-3 text-end"> <div class="col-md-3 text-end">
@ -45,21 +46,28 @@
</div> </div>
</header> </header>
<aside> <div class="row align-items-start">
<ul class="list-group col-2"> <aside class="list-group col-2">
<li class="list-group-item"> <ul>
<a href="{{ route('documents-online.index') }}">Подать Документы онлайн</a> <li class="list-group-item">
</li> <a href="{{ route('online-documents.index') }}">Подать Документы онлайн</a>
<li class="list-group-item"><a href="">Абитуриенту</a></li> </li>
<li class="list-group-item"><a href="">Экран Приема</a></li> <li class="list-group-item"><a href="">Абитуриенту</a></li>
<li class="list-group-item"><a href="">Иностранным абитурентам</a></li> <li class="list-group-item"><a href="">Экран Приема</a></li>
<li class="list-group-item"><a href="">Дни открытых дверей</a></li> <li class="list-group-item"><a href="">Иностранным абитурентам</a></li>
<li class="list-group-item"><a href="">Стоимость обучения</a></li> <li class="list-group-item"><a href="">Дни открытых дверей</a></li>
<li class="list-group-item"><a href="">Олимпиады для школьников</a></li> <li class="list-group-item"><a href="">Стоимость обучения</a></li>
<li class="list-group-item"><a href="">Подготовительные курсы</a></li> <li class="list-group-item"><a href="">Олимпиады для школьников</a></li>
</ul> <li class="list-group-item"><a href="">Подготовительные курсы</a></li>
</aside> @if(Auth::getUser()->name === 'admin')
@yield('content') <li class="list-group-item"></li>
<li class="list-group-item"><a href="{{ route('users.index') }}">Список администраторов</a></li>
@endif
</ul>
</aside>
<div class="col-10">@yield('content')</div>
</div>
</div>
</body> </body>
</html> </html>

View File

@ -12,7 +12,7 @@
<link href="https://fonts.bunny.net/css?family=figtree:400,500,600&display=swap" rel="stylesheet" /> <link href="https://fonts.bunny.net/css?family=figtree:400,500,600&display=swap" rel="stylesheet" />
<!-- Scripts --> <!-- Scripts -->
@vite(['resources/sass/app.scss', 'resources/js/app.js']) @vite(['resources/css/app.css', 'resources/js/app.js'])
</head> </head>
<body class="font-sans antialiased"> <body class="font-sans antialiased">
<div class="min-h-screen bg-gray-100 dark:bg-gray-900"> <div class="min-h-screen bg-gray-100 dark:bg-gray-900">

View File

@ -12,7 +12,7 @@
<link href="https://fonts.bunny.net/css?family=figtree:400,500,600&display=swap" rel="stylesheet" /> <link href="https://fonts.bunny.net/css?family=figtree:400,500,600&display=swap" rel="stylesheet" />
<!-- Scripts --> <!-- Scripts -->
@vite(['resources/sass/app.scss', 'resources/js/app.js']) @vite(['resources/css/app.css', 'resources/js/app.js'])
</head> </head>
<body class="font-sans text-gray-900 antialiased" > <body class="font-sans text-gray-900 antialiased" >
<div class="min-h-screen flex flex-col sm:justify-center items-center pt-6 sm:pt-0 bg-gray-100 dark:bg-gray-900" style="background-color:#006147"> <div class="min-h-screen flex flex-col sm:justify-center items-center pt-6 sm:pt-0 bg-gray-100 dark:bg-gray-900" style="background-color:#006147">