533 lines
20 KiB
PHP
Executable File
533 lines
20 KiB
PHP
Executable File
<!DOCTYPE html>
|
|
<html lang="de">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<meta name="csrf-token" content="{{ csrf_token() }}">
|
|
<title>@yield('title', 'NeoNail DB')</title>
|
|
|
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap" rel="stylesheet">
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
|
|
|
<style>
|
|
:root {
|
|
--primary: #7c3aed;
|
|
--primary-dark: #5b21b6;
|
|
--accent: #ec4899;
|
|
--accent-dark: #be185d;
|
|
--t: .22s cubic-bezier(.4,0,.2,1);
|
|
--r: 18px;
|
|
}
|
|
|
|
* { box-sizing: border-box; }
|
|
html { scroll-behavior: smooth; }
|
|
|
|
body {
|
|
font-family: 'Inter', sans-serif;
|
|
background: linear-gradient(135deg, #2d1b69 0%, #6d28d9 45%, #9d174d 100%) fixed;
|
|
min-height: 100vh;
|
|
-webkit-font-smoothing: antialiased;
|
|
}
|
|
|
|
/* ─── Scrollbar ─── */
|
|
::-webkit-scrollbar { width: 5px; }
|
|
::-webkit-scrollbar-track { background: transparent; }
|
|
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.22); border-radius: 3px; }
|
|
|
|
/* ─── Navbar ─── */
|
|
.navbar {
|
|
background: rgba(10, 5, 35, 0.82) !important;
|
|
backdrop-filter: blur(24px);
|
|
-webkit-backdrop-filter: blur(24px);
|
|
border-bottom: 1px solid rgba(255,255,255,0.09);
|
|
padding: 10px 0;
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 1030;
|
|
}
|
|
.navbar-brand {
|
|
color: #fff !important;
|
|
font-weight: 800;
|
|
font-size: 1.1rem;
|
|
letter-spacing: -0.03em;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 9px;
|
|
}
|
|
.brand-icon {
|
|
width: 32px;
|
|
height: 32px;
|
|
background: linear-gradient(135deg, var(--primary), var(--accent));
|
|
border-radius: 9px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 15px;
|
|
flex-shrink: 0;
|
|
}
|
|
.nav-link {
|
|
color: rgba(255,255,255,0.75) !important;
|
|
font-weight: 500;
|
|
font-size: 0.875rem;
|
|
padding: 7px 13px !important;
|
|
border-radius: 10px;
|
|
transition: var(--t);
|
|
}
|
|
.nav-link:hover, .nav-link.active {
|
|
color: #fff !important;
|
|
background: rgba(255,255,255,0.11);
|
|
}
|
|
.dropdown-menu {
|
|
background: rgba(12, 6, 38, 0.96);
|
|
backdrop-filter: blur(20px);
|
|
border: 1px solid rgba(255,255,255,0.11);
|
|
border-radius: 14px;
|
|
padding: 7px;
|
|
box-shadow: 0 20px 48px rgba(0,0,0,0.45);
|
|
min-width: 180px;
|
|
}
|
|
.dropdown-item {
|
|
color: rgba(255,255,255,0.82) !important;
|
|
border-radius: 9px;
|
|
padding: 8px 13px;
|
|
font-size: 0.875rem;
|
|
font-weight: 500;
|
|
transition: var(--t);
|
|
}
|
|
.dropdown-item:hover {
|
|
background: rgba(255,255,255,0.11);
|
|
color: #fff !important;
|
|
}
|
|
.dropdown-item.text-danger { color: #f87171 !important; }
|
|
.dropdown-item.text-danger:hover { background: rgba(248,113,113,0.12); }
|
|
.navbar-toggler { border-color: rgba(255,255,255,0.28); }
|
|
.navbar-toggler-icon { filter: invert(1); }
|
|
.badge.bg-primary {
|
|
background: linear-gradient(135deg, var(--primary), var(--accent)) !important;
|
|
font-size: 0.68rem;
|
|
padding: 3px 7px;
|
|
border-radius: 50px;
|
|
}
|
|
|
|
/* ─── Main ─── */
|
|
main { padding: 28px 0 52px; }
|
|
|
|
/* ─── Cards ─── */
|
|
.card {
|
|
background: #fff;
|
|
border: none;
|
|
border-radius: var(--r);
|
|
box-shadow: 0 4px 20px rgba(0,0,0,0.09);
|
|
overflow: hidden;
|
|
}
|
|
.card-header {
|
|
background: transparent;
|
|
border-bottom: 1px solid #f3f4f6;
|
|
padding: 16px 20px;
|
|
font-weight: 600;
|
|
font-size: 0.95rem;
|
|
}
|
|
.card-body { padding: 20px; }
|
|
|
|
/* ─── Nail-polish cards ─── */
|
|
.np-card { transition: transform var(--t), box-shadow var(--t); }
|
|
.np-card:hover {
|
|
transform: translateY(-6px);
|
|
box-shadow: 0 20px 50px rgba(0,0,0,0.18);
|
|
}
|
|
.np-img {
|
|
width: 100%;
|
|
height: 200px;
|
|
object-fit: cover;
|
|
display: block;
|
|
}
|
|
.np-placeholder {
|
|
width: 100%;
|
|
height: 200px;
|
|
background: linear-gradient(135deg, #6d28d9 0%, #9d174d 100%);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: rgba(255,255,255,0.4);
|
|
font-size: 2.4rem;
|
|
}
|
|
.np-card .card-body { padding: 14px 16px; }
|
|
.np-name {
|
|
font-weight: 600;
|
|
font-size: 0.92rem;
|
|
color: #111827;
|
|
line-height: 1.3;
|
|
margin-bottom: 2px;
|
|
}
|
|
.np-number {
|
|
font-size: 0.76rem;
|
|
color: #9ca3af;
|
|
font-weight: 500;
|
|
letter-spacing: 0.02em;
|
|
}
|
|
.np-brand {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
background: #f3f4f6;
|
|
color: #6b7280;
|
|
font-size: 0.7rem;
|
|
font-weight: 600;
|
|
padding: 2px 8px;
|
|
border-radius: 20px;
|
|
margin-top: 7px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.04em;
|
|
}
|
|
|
|
/* ─── Buttons ─── */
|
|
.btn {
|
|
font-weight: 600;
|
|
font-size: 0.875rem;
|
|
border-radius: 50px;
|
|
transition: var(--t);
|
|
letter-spacing: 0.01em;
|
|
}
|
|
.btn-primary {
|
|
background: linear-gradient(135deg, var(--primary), var(--accent));
|
|
border: none;
|
|
color: #fff;
|
|
}
|
|
.btn-primary:hover, .btn-primary:focus {
|
|
background: linear-gradient(135deg, var(--primary-dark), var(--accent-dark));
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 8px 24px rgba(124,58,237,0.42);
|
|
color: #fff;
|
|
}
|
|
.btn-success {
|
|
background: linear-gradient(135deg, #059669, #0d9488);
|
|
border: none;
|
|
color: #fff;
|
|
}
|
|
.btn-success:hover, .btn-success:focus {
|
|
background: linear-gradient(135deg, #047857, #0f766e);
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 8px 24px rgba(5,150,105,0.38);
|
|
color: #fff;
|
|
}
|
|
/* Glass button — for use on gradient background */
|
|
.btn-glass {
|
|
border: 1.5px solid rgba(255,255,255,0.32);
|
|
color: rgba(255,255,255,0.9);
|
|
background: rgba(255,255,255,0.10);
|
|
border-radius: 50px;
|
|
font-weight: 600;
|
|
font-size: 0.875rem;
|
|
transition: var(--t);
|
|
}
|
|
.btn-glass:hover {
|
|
background: rgba(255,255,255,0.20);
|
|
border-color: rgba(255,255,255,0.50);
|
|
color: #fff;
|
|
transform: translateY(-2px);
|
|
}
|
|
.btn-outline-secondary {
|
|
border-radius: 50px;
|
|
font-weight: 600;
|
|
}
|
|
.btn-outline-danger { border-radius: 50px; }
|
|
.btn-sm { padding: 6px 15px; font-size: 0.8rem; }
|
|
.btn-lg { padding: 13px 28px; font-size: 1rem; }
|
|
|
|
/* ─── Page hero (text on gradient) ─── */
|
|
.page-hero { margin-bottom: 24px; }
|
|
.page-hero h1 {
|
|
color: #fff;
|
|
font-weight: 800;
|
|
font-size: 1.85rem;
|
|
letter-spacing: -0.035em;
|
|
margin: 0 0 4px;
|
|
}
|
|
.page-hero p {
|
|
color: rgba(255,255,255,0.62);
|
|
margin: 0;
|
|
font-size: 0.92rem;
|
|
}
|
|
.count-chip {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
background: rgba(255,255,255,0.13);
|
|
backdrop-filter: blur(10px);
|
|
color: #fff;
|
|
font-size: 0.8rem;
|
|
font-weight: 600;
|
|
padding: 6px 14px;
|
|
border-radius: 50px;
|
|
border: 1px solid rgba(255,255,255,0.18);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
/* ─── Search ─── */
|
|
.search-wrap { position: relative; }
|
|
.search-icon {
|
|
position: absolute;
|
|
left: 16px;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
color: rgba(255,255,255,0.5);
|
|
pointer-events: none;
|
|
font-size: 0.85rem;
|
|
z-index: 1;
|
|
}
|
|
.search-input {
|
|
background: rgba(255,255,255,0.12) !important;
|
|
border: 1.5px solid rgba(255,255,255,0.22) !important;
|
|
border-radius: 50px !important;
|
|
color: #fff !important;
|
|
padding: 11px 96px 11px 40px !important;
|
|
font-size: 0.9rem;
|
|
transition: var(--t);
|
|
height: auto;
|
|
}
|
|
.search-input::placeholder { color: rgba(255,255,255,0.45) !important; }
|
|
.search-input:focus {
|
|
background: rgba(255,255,255,0.18) !important;
|
|
border-color: rgba(255,255,255,0.50) !important;
|
|
box-shadow: 0 0 0 4px rgba(255,255,255,0.07) !important;
|
|
color: #fff !important;
|
|
outline: none;
|
|
}
|
|
.search-submit {
|
|
position: absolute;
|
|
right: 6px;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
background: rgba(255,255,255,0.18);
|
|
border: none;
|
|
border-radius: 50px;
|
|
color: #fff;
|
|
padding: 5px 14px;
|
|
font-size: 0.78rem;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: var(--t);
|
|
}
|
|
.search-submit:hover { background: rgba(255,255,255,0.28); }
|
|
.search-clear {
|
|
position: absolute;
|
|
right: 70px;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
color: rgba(255,255,255,0.5);
|
|
font-size: 0.8rem;
|
|
cursor: pointer;
|
|
line-height: 1;
|
|
padding: 4px 6px;
|
|
border-radius: 50%;
|
|
transition: var(--t);
|
|
}
|
|
.search-clear:hover { color: #fff; background: rgba(255,255,255,0.12); }
|
|
|
|
/* ─── Alerts ─── */
|
|
.alert {
|
|
border: none;
|
|
border-radius: 13px;
|
|
padding: 13px 16px;
|
|
font-size: 0.875rem;
|
|
font-weight: 500;
|
|
background: rgba(255,255,255,0.97);
|
|
backdrop-filter: blur(12px);
|
|
}
|
|
.alert-success {
|
|
color: #065f46;
|
|
border-left: 4px solid #059669;
|
|
}
|
|
.alert-danger {
|
|
color: #7f1d1d;
|
|
border-left: 4px solid #dc2626;
|
|
}
|
|
.alert-warning {
|
|
color: #78350f;
|
|
border-left: 4px solid #d97706;
|
|
}
|
|
.alert-info {
|
|
color: #1e3a8a;
|
|
border-left: 4px solid #2563eb;
|
|
}
|
|
|
|
/* ─── Empty state ─── */
|
|
.empty-state { text-align: center; padding: 56px 20px; }
|
|
.empty-icon {
|
|
width: 88px;
|
|
height: 88px;
|
|
background: rgba(255,255,255,0.12);
|
|
border-radius: 50%;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 2.2rem;
|
|
color: rgba(255,255,255,0.55);
|
|
margin-bottom: 18px;
|
|
border: 1px solid rgba(255,255,255,0.18);
|
|
}
|
|
.empty-state h4 { color: #fff; font-weight: 700; font-size: 1.25rem; margin-bottom: 7px; }
|
|
.empty-state p { color: rgba(255,255,255,0.60); margin-bottom: 22px; font-size: 0.92rem; }
|
|
|
|
/* ─── Pagination ─── */
|
|
.pagination { gap: 4px; }
|
|
.pagination .page-link {
|
|
background: rgba(255,255,255,0.12);
|
|
border: 1px solid rgba(255,255,255,0.18);
|
|
color: rgba(255,255,255,0.85);
|
|
border-radius: 10px !important;
|
|
padding: 7px 13px;
|
|
font-size: 0.85rem;
|
|
font-weight: 500;
|
|
transition: var(--t);
|
|
}
|
|
.pagination .page-link:hover { background: rgba(255,255,255,0.22); color: #fff; }
|
|
.pagination .page-item.active .page-link {
|
|
background: linear-gradient(135deg, var(--primary), var(--accent));
|
|
border-color: transparent;
|
|
color: #fff;
|
|
}
|
|
.pagination .page-item.disabled .page-link {
|
|
background: rgba(255,255,255,0.05);
|
|
color: rgba(255,255,255,0.28);
|
|
}
|
|
|
|
/* ─── Form controls (inside white cards) ─── */
|
|
.form-label { font-weight: 600; font-size: 0.85rem; color: #374151; margin-bottom: 5px; }
|
|
.form-control, .form-select {
|
|
border: 1.5px solid #e5e7eb;
|
|
border-radius: 11px;
|
|
padding: 9px 13px;
|
|
font-size: 0.9rem;
|
|
transition: var(--t);
|
|
color: #111827;
|
|
}
|
|
.form-control:focus, .form-select:focus {
|
|
border-color: var(--primary);
|
|
box-shadow: 0 0 0 3px rgba(124,58,237,0.12);
|
|
}
|
|
.form-text { font-size: 0.78rem; color: #9ca3af; }
|
|
|
|
/* ─── Mobile ─── */
|
|
@media (max-width: 767px) {
|
|
main { padding: 18px 0 40px; }
|
|
.page-hero h1 { font-size: 1.45rem; }
|
|
.page-hero { margin-bottom: 18px; }
|
|
.np-img, .np-placeholder { height: 160px; }
|
|
}
|
|
</style>
|
|
|
|
@yield('styles')
|
|
</head>
|
|
<body>
|
|
<nav class="navbar navbar-expand-lg">
|
|
<div class="container">
|
|
<a class="navbar-brand" href="{{ route('user-nail-polishes.index') }}">
|
|
<span class="brand-icon">💅</span>
|
|
NeoNail DB
|
|
</a>
|
|
|
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse"
|
|
data-bs-target="#navbarNav" aria-label="Navigation öffnen">
|
|
<span class="navbar-toggler-icon"></span>
|
|
</button>
|
|
|
|
<div class="collapse navbar-collapse" id="navbarNav">
|
|
<ul class="navbar-nav me-auto gap-1">
|
|
@auth
|
|
<li class="nav-item">
|
|
<a class="nav-link {{ request()->routeIs('user-nail-polishes.index') ? 'active' : '' }}"
|
|
href="{{ route('user-nail-polishes.index') }}">
|
|
<i class="fas fa-home me-1"></i>Meine Sammlung
|
|
</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link {{ request()->routeIs('user-nail-polishes.available') ? 'active' : '' }}"
|
|
href="{{ route('user-nail-polishes.available') }}">
|
|
<i class="fas fa-plus me-1"></i>Verfügbare Lacke
|
|
</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link {{ request()->routeIs('manufacturers.*') ? 'active' : '' }}"
|
|
href="{{ route('manufacturers.index') }}">
|
|
<i class="fas fa-industry me-1"></i>Hersteller
|
|
</a>
|
|
</li>
|
|
@if(auth()->user()->isAdmin())
|
|
<li class="nav-item dropdown">
|
|
<a class="nav-link dropdown-toggle {{ request()->routeIs('admin.*') || request()->routeIs('nail-polishes.*') ? 'active' : '' }}"
|
|
href="#" role="button" data-bs-toggle="dropdown">
|
|
<i class="fas fa-shield-alt me-1"></i>Admin
|
|
</a>
|
|
<ul class="dropdown-menu">
|
|
<li><a class="dropdown-item" href="{{ route('admin.dashboard') }}">
|
|
<i class="fas fa-chart-line me-2"></i>Dashboard</a></li>
|
|
<li><a class="dropdown-item" href="{{ route('admin.users.index') }}">
|
|
<i class="fas fa-users me-2"></i>Benutzer</a></li>
|
|
<li><a class="dropdown-item" href="{{ route('nail-polishes.index') }}">
|
|
<i class="fas fa-palette me-2"></i>Nagellacke</a></li>
|
|
<li><a class="dropdown-item" href="{{ route('admin.statistics') }}">
|
|
<i class="fas fa-chart-bar me-2"></i>Statistiken</a></li>
|
|
</ul>
|
|
</li>
|
|
@endif
|
|
@endauth
|
|
</ul>
|
|
|
|
<ul class="navbar-nav">
|
|
@guest
|
|
<li class="nav-item">
|
|
<a class="nav-link" href="{{ route('login') }}">Anmelden</a>
|
|
</li>
|
|
@else
|
|
<li class="nav-item dropdown">
|
|
<a class="nav-link dropdown-toggle" href="#" role="button" data-bs-toggle="dropdown">
|
|
<i class="fas fa-user-circle me-1"></i>{{ Auth::user()->name }}
|
|
@if(auth()->user()->isAdmin())
|
|
<span class="badge bg-primary ms-1">Admin</span>
|
|
@endif
|
|
</a>
|
|
<ul class="dropdown-menu dropdown-menu-end">
|
|
<li>
|
|
<a class="dropdown-item text-danger" href="{{ route('logout') }}"
|
|
onclick="event.preventDefault(); document.getElementById('logout-form').submit();">
|
|
<i class="fas fa-sign-out-alt me-2"></i>Abmelden
|
|
</a>
|
|
<form id="logout-form" action="{{ route('logout') }}" method="POST" class="d-none">
|
|
@csrf
|
|
</form>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
@endguest
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
|
|
<main>
|
|
<div class="container">
|
|
@foreach(['success' => 'alert-success', 'error' => 'alert-danger', 'warning' => 'alert-warning'] as $key => $cls)
|
|
@if(session($key))
|
|
<div class="alert {{ $cls }} alert-dismissible fade show mb-4" role="alert">
|
|
@if($key === 'success')<i class="fas fa-check-circle me-2"></i>
|
|
@elseif($key === 'error')<i class="fas fa-exclamation-circle me-2"></i>
|
|
@else<i class="fas fa-exclamation-triangle me-2"></i>@endif
|
|
{{ session($key) }}
|
|
<button type="button" class="btn-close" data-bs-dismiss="alert"></button>
|
|
</div>
|
|
@endif
|
|
@endforeach
|
|
|
|
@yield('content')
|
|
</div>
|
|
</main>
|
|
|
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
|
|
@yield('scripts')
|
|
</body>
|
|
</html>
|