97 lines
2.3 KiB
PHP
97 lines
2.3 KiB
PHP
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>@yield('title', 'Админка')</title>
|
|
<style>
|
|
body {
|
|
font-family: sans-serif;
|
|
margin: 0;
|
|
padding: 20px;
|
|
background: #fafafa;
|
|
color: #333;
|
|
}
|
|
.container {
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
}
|
|
header {
|
|
background: #444;
|
|
color: white;
|
|
padding: 15px 20px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
nav a {
|
|
color: white;
|
|
text-decoration: none;
|
|
margin-left: 20px;
|
|
}
|
|
main {
|
|
margin-top: 20px;
|
|
}
|
|
h1 {
|
|
color: #333;
|
|
border-bottom: 2px solid #ddd;
|
|
padding-bottom: 10px;
|
|
}
|
|
.btn {
|
|
display: inline-block;
|
|
background: #888;
|
|
color: white;
|
|
padding: 8px 16px;
|
|
text-decoration: none;
|
|
margin-right: 10px;
|
|
border-radius: 4px;
|
|
}
|
|
.btn:hover {
|
|
background: #777;
|
|
}
|
|
table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
margin: 20px 0;
|
|
background: white;
|
|
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
|
|
}
|
|
th, td {
|
|
padding: 12px;
|
|
text-align: left;
|
|
border: 1px solid #ddd;
|
|
}
|
|
th {
|
|
background: #eee;
|
|
font-weight: bold;
|
|
}
|
|
tr:nth-child(even) {
|
|
background: #f9f9f9;
|
|
}
|
|
.success {
|
|
background: #e0e0e0;
|
|
padding: 10px;
|
|
margin: 10px 0;
|
|
border-left: 4px solid #999;
|
|
}
|
|
.error {
|
|
background: #ffdddd;
|
|
padding: 10px;
|
|
margin: 10px 0;
|
|
border-left: 4px solid #cc0000;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<header>
|
|
<h2>Админка</h2>
|
|
<nav>
|
|
<a href="{{ route('admin.hotels.index') }}">Отели</a>
|
|
<a href="{{ route('admin.logout') }}">Выйти</a>
|
|
</nav>
|
|
</header>
|
|
|
|
<main class="container">
|
|
@yield('content')
|
|
</main>
|
|
</body>
|
|
</html> |