table with hotels
This commit is contained in:
@@ -5,93 +5,118 @@
|
||||
<title>@yield('title', 'Админка')</title>
|
||||
<style>
|
||||
body {
|
||||
font-family: sans-serif;
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
||||
margin: 0;
|
||||
padding: 20px;
|
||||
background: #fafafa;
|
||||
padding: 0;
|
||||
background-color: #f5f7fa;
|
||||
color: #333;
|
||||
}
|
||||
.container {
|
||||
.wrapper {
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
padding: 20px;
|
||||
}
|
||||
header {
|
||||
background: #444;
|
||||
background-color: #4a4a4a;
|
||||
color: white;
|
||||
padding: 15px 20px;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: 25px;
|
||||
border-radius: 6px;
|
||||
}
|
||||
header h1 {
|
||||
margin: 0;
|
||||
font-size: 1.3rem;
|
||||
}
|
||||
nav a {
|
||||
color: white;
|
||||
text-decoration: none;
|
||||
margin-left: 20px;
|
||||
padding: 6px 12px;
|
||||
border-radius: 4px;
|
||||
transition: background-color 0.2s;
|
||||
}
|
||||
nav a:hover {
|
||||
background-color: #5a5a5a;
|
||||
}
|
||||
main {
|
||||
margin-top: 20px;
|
||||
background: white;
|
||||
padding: 25px;
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 2px 8px rgba(0,0,0,0.08);
|
||||
}
|
||||
h1 {
|
||||
color: #333;
|
||||
border-bottom: 2px solid #ddd;
|
||||
padding-bottom: 10px;
|
||||
h1, h2, h3 {
|
||||
color: #2d2d2d;
|
||||
margin-top: 0;
|
||||
}
|
||||
.btn {
|
||||
display: inline-block;
|
||||
background: #888;
|
||||
background-color: #6c757d;
|
||||
color: white;
|
||||
padding: 8px 16px;
|
||||
text-decoration: none;
|
||||
margin-right: 10px;
|
||||
border-radius: 4px;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
font-size: 0.95rem;
|
||||
transition: background-color 0.2s;
|
||||
}
|
||||
.btn:hover {
|
||||
background: #777;
|
||||
background-color: #5a6268;
|
||||
}
|
||||
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;
|
||||
padding: 12px 15px;
|
||||
text-align: left;
|
||||
border: 1px solid #ddd;
|
||||
border-bottom: 1px solid #eaeaea;
|
||||
}
|
||||
th {
|
||||
background: #eee;
|
||||
font-weight: bold;
|
||||
background-color: #f1f1f1;
|
||||
font-weight: 600;
|
||||
color: #444;
|
||||
}
|
||||
tr:nth-child(even) {
|
||||
background: #f9f9f9;
|
||||
tr:hover {
|
||||
background-color: #fafafa;
|
||||
}
|
||||
.success {
|
||||
background: #e0e0e0;
|
||||
padding: 10px;
|
||||
margin: 10px 0;
|
||||
border-left: 4px solid #999;
|
||||
.alert {
|
||||
padding: 12px;
|
||||
margin: 16px 0;
|
||||
border-radius: 4px;
|
||||
}
|
||||
.error {
|
||||
background: #ffdddd;
|
||||
padding: 10px;
|
||||
margin: 10px 0;
|
||||
border-left: 4px solid #cc0000;
|
||||
.alert-success {
|
||||
background-color: #e0f0e0;
|
||||
color: #2d5d2d;
|
||||
border-left: 4px solid #4caf50;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<h2>Админка</h2>
|
||||
<nav>
|
||||
<a href="{{ route('admin.hotels.index') }}">Отели</a>
|
||||
<a href="{{ route('admin.logout') }}">Выйти</a>
|
||||
</nav>
|
||||
</header>
|
||||
<div class="wrapper">
|
||||
<header>
|
||||
<nav>
|
||||
<a href="{{ route('admin.hotels.index') }}">Отели</a>
|
||||
<form action="{{ route('admin.logout') }}" method="POST" style="display: inline;">
|
||||
@csrf
|
||||
<button type="submit" style="background: none; border: none; color: white; cursor: pointer; padding: 6px 12px; border-radius: 4px;">
|
||||
Выйти
|
||||
</button>
|
||||
</form>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
<main class="container">
|
||||
@yield('content')
|
||||
</main>
|
||||
<main>
|
||||
@if(session('success'))
|
||||
<div class="alert alert-success">{{ session('success') }}</div>
|
||||
@endif
|
||||
|
||||
@yield('content')
|
||||
</main>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user