mivita/dev/payment-dashboard/resources/views/layouts/dashboard.blade.php
2026-04-14 18:07:45 +02:00

402 lines
14 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!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', 'Payment Dashboard') mivita</title>
<style>
/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
--bg: #0d0f14;
--surface: #161920;
--surface-2: #1e2230;
--border: #2a2f3f;
--text: #e8eaf0;
--text-muted: #7c839a;
--accent: #4f8ef7;
--accent-soft: #1a2a4a;
--red: #ef4444;
--red-soft: #3a1515;
--orange: #f97316;
--orange-soft: #3a2010;
--yellow: #eab308;
--yellow-soft: #332d00;
--green: #22c55e;
--green-soft: #0f2d1a;
--radius: 10px;
--shadow: 0 4px 24px rgba(0,0,0,0.4);
}
body {
font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
background: var(--bg);
color: var(--text);
min-height: 100vh;
font-size: 14px;
line-height: 1.6;
}
/* ── Layout ── */
.layout { display: flex; min-height: 100vh; }
.sidebar {
width: 220px;
background: var(--surface);
border-right: 1px solid var(--border);
padding: 24px 0;
flex-shrink: 0;
display: flex;
flex-direction: column;
}
.sidebar-logo {
padding: 0 20px 24px;
border-bottom: 1px solid var(--border);
margin-bottom: 16px;
}
.sidebar-logo span {
font-size: 11px;
font-weight: 600;
letter-spacing: 0.12em;
text-transform: uppercase;
color: var(--text-muted);
}
.sidebar-logo strong {
display: block;
font-size: 16px;
font-weight: 700;
color: var(--text);
margin-top: 2px;
}
.sidebar-nav { padding: 0 12px; flex: 1; }
.nav-section {
font-size: 10px;
font-weight: 600;
letter-spacing: 0.1em;
text-transform: uppercase;
color: var(--text-muted);
padding: 16px 8px 6px;
}
.nav-link {
display: flex;
align-items: center;
gap: 10px;
padding: 9px 10px;
border-radius: 7px;
color: var(--text-muted);
text-decoration: none;
font-size: 13px;
font-weight: 500;
transition: all 0.15s;
margin-bottom: 2px;
}
.nav-link:hover, .nav-link.active {
background: var(--surface-2);
color: var(--text);
}
.nav-link.active { color: var(--accent); }
.nav-icon { font-size: 15px; width: 20px; text-align: center; }
/* ── Main ── */
.main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.topbar {
background: var(--surface);
border-bottom: 1px solid var(--border);
padding: 16px 32px;
display: flex;
align-items: center;
justify-content: space-between;
}
.topbar-title { font-size: 18px; font-weight: 700; }
.topbar-meta { font-size: 12px; color: var(--text-muted); }
.content { padding: 32px; overflow-y: auto; flex: 1; }
/* ── Cards & Grid ── */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.card {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 20px;
}
.card-title {
font-size: 11px;
font-weight: 600;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--text-muted);
margin-bottom: 16px;
}
/* ── Stat Cards ── */
.stat-card {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 20px;
}
.stat-label {
font-size: 11px;
font-weight: 600;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--text-muted);
margin-bottom: 8px;
}
.stat-value {
font-size: 32px;
font-weight: 800;
line-height: 1;
margin-bottom: 4px;
}
.stat-sub { font-size: 12px; color: var(--text-muted); }
.stat-card.danger { border-color: var(--red); background: var(--red-soft); }
.stat-card.warning { border-color: var(--orange); background: var(--orange-soft); }
.stat-card.ok { border-color: var(--green); background: var(--green-soft); }
/* ── Badges ── */
.badge {
display: inline-flex;
align-items: center;
gap: 5px;
padding: 3px 10px;
border-radius: 20px;
font-size: 11px;
font-weight: 600;
letter-spacing: 0.03em;
}
.badge-critical { background: var(--red-soft); color: var(--red); border: 1px solid var(--red); }
.badge-high { background: var(--orange-soft); color: var(--orange); border: 1px solid var(--orange); }
.badge-medium { background: var(--yellow-soft); color: var(--yellow); border: 1px solid var(--yellow); }
.badge-low { background: var(--green-soft); color: var(--green); border: 1px solid var(--green); }
.badge-open { background: #1a1a2e; color: #818cf8; border: 1px solid #818cf8; }
.badge-in_progress { background: #1a2a3a; color: var(--accent); border: 1px solid var(--accent); }
.badge-waiting_provider { background: var(--orange-soft); color: var(--orange); border: 1px solid var(--orange); }
.badge-resolved { background: var(--green-soft); color: var(--green); border: 1px solid var(--green); }
.badge-closed { background: var(--surface-2); color: var(--text-muted); border: 1px solid var(--border); }
/* ── Table ── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th {
text-align: left;
font-size: 11px;
font-weight: 600;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--text-muted);
padding: 10px 14px;
border-bottom: 1px solid var(--border);
}
td {
padding: 12px 14px;
border-bottom: 1px solid var(--border);
font-size: 13px;
vertical-align: middle;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--surface-2); }
/* ── Timeline ── */
.timeline { position: relative; padding-left: 28px; }
.timeline::before {
content: '';
position: absolute;
left: 8px; top: 8px; bottom: 8px;
width: 2px;
background: var(--border);
}
.timeline-item {
position: relative;
margin-bottom: 20px;
}
.timeline-dot {
position: absolute;
left: -24px;
top: 4px;
width: 12px; height: 12px;
border-radius: 50%;
background: var(--accent);
border: 2px solid var(--bg);
}
.timeline-title {
font-size: 13px;
font-weight: 600;
margin-bottom: 2px;
}
.timeline-meta { font-size: 11px; color: var(--text-muted); margin-bottom: 4px; }
.timeline-content {
font-size: 13px;
color: var(--text-muted);
background: var(--surface-2);
padding: 10px 14px;
border-radius: 7px;
margin-top: 6px;
border: 1px solid var(--border);
}
/* ── Provider Status ── */
.provider-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.provider-card {
background: var(--surface-2);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 16px;
text-align: center;
}
.provider-name { font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.provider-incidents { font-size: 28px; font-weight: 800; margin-bottom: 2px; }
.provider-sub { font-size: 11px; color: var(--text-muted); }
.provider-card.has-issues { border-color: var(--red); }
.provider-card.has-issues .provider-incidents { color: var(--red); }
.provider-card.ok .provider-incidents { color: var(--green); }
/* ── Forms ── */
.btn {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 8px 16px;
border-radius: 7px;
font-size: 13px;
font-weight: 600;
cursor: pointer;
border: none;
transition: all 0.15s;
text-decoration: none;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #3a7ef0; }
.btn-ghost { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-danger { background: var(--red-soft); color: var(--red); border: 1px solid var(--red); }
select, input, textarea {
background: var(--surface-2);
border: 1px solid var(--border);
color: var(--text);
padding: 8px 12px;
border-radius: 7px;
font-size: 13px;
font-family: inherit;
width: 100%;
outline: none;
transition: border-color 0.15s;
}
select:focus, input:focus, textarea:focus { border-color: var(--accent); }
label { display: block; font-size: 12px; font-weight: 600; color: var(--text-muted); margin-bottom: 5px; }
.form-group { margin-bottom: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
/* ── Alert ── */
.alert {
padding: 12px 16px;
border-radius: 7px;
margin-bottom: 20px;
font-size: 13px;
font-weight: 500;
}
.alert-success { background: var(--green-soft); color: var(--green); border: 1px solid var(--green); }
.alert-danger { background: var(--red-soft); color: var(--red); border: 1px solid var(--red); }
/* ── Modal ── */
.modal-overlay {
display: none;
position: fixed; inset: 0;
background: rgba(0,0,0,0.7);
z-index: 100;
align-items: center;
justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 28px;
width: 560px;
max-width: 95vw;
max-height: 90vh;
overflow-y: auto;
box-shadow: var(--shadow);
}
.modal-title { font-size: 16px; font-weight: 700; margin-bottom: 20px; }
/* ── Misc ── */
.text-muted { color: var(--text-muted); }
.text-red { color: var(--red); }
.text-green { color: var(--green); }
.text-accent { color: var(--accent); }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.section-title {
font-size: 14px;
font-weight: 700;
margin-bottom: 16px;
padding-bottom: 10px;
border-bottom: 1px solid var(--border);
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&display=swap');
</style>
@stack('styles')
</head>
<body>
<div class="layout">
<aside class="sidebar">
<div class="sidebar-logo">
<span>mivita</span>
<strong>Payment Monitor</strong>
</div>
<nav class="sidebar-nav">
<div class="nav-section">Ansichten</div>
<a href="{{ route('payment-dashboard.developer') }}" class="nav-link {{ request()->routeIs('payment-dashboard.developer') ? 'active' : '' }}">
<span class="nav-icon">⚙️</span> Entwickler
</a>
<a href="{{ route('payment-dashboard.management') }}" class="nav-link {{ request()->routeIs('payment-dashboard.management') ? 'active' : '' }}">
<span class="nav-icon">📊</span> Management
</a>
</nav>
</aside>
<div class="main">
<div class="topbar">
<div>
<div class="topbar-title">@yield('page-title', 'Dashboard')</div>
</div>
<div class="topbar-meta">
Stand: {{ now()->format('d.m.Y H:i') }} Uhr
</div>
</div>
<div class="content">
@if(session('success'))
<div class="alert alert-success"> {{ session('success') }}</div>
@endif
@if(session('error'))
<div class="alert alert-danger"> {{ session('error') }}</div>
@endif
@yield('content')
</div>
</div>
</div>
@stack('scripts')
</body>
</html>