updates for admin area

This commit is contained in:
Mark Gregory
2026-09-12 20:45:05 +01:00
parent 0704924aa8
commit 8c9dbfee08
50 changed files with 1337 additions and 152 deletions
+70 -1
View File
@@ -1 +1,70 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><meta name="description" content="Find and book outstanding DJs for weddings, parties, clubs and corporate events."><title>@yield('title','BeatBook — Find Your Perfect DJ')</title>@vite(['resources/css/app.css','resources/js/app.js'])</head><body><header><div class="shell nav"><a class="brand" href="{{ route('home') }}"><b>◉</b> BeatBook</a><nav class="navlinks"><a href="{{ route('djs.index') }}">Find a DJ</a><a href="/#how">How it works</a><a href="/#for-djs">For DJs</a><a href="/#pricing">Pricing</a></nav><div style="display:flex;gap:9px">@auth<a class="button ghost" href="{{ route('dashboard') }}">Dashboard</a>@else<a class="button ghost" href="/login">Sign in</a><a class="button" href="/register">Join</a>@endauth</div></div></header>@if(session('success'))<div class="shell" style="padding:14px;background:#064e3b;border-radius:12px">{{ session('success') }}</div>@endif>@yield('content')<footer class="section" style="border-top:1px solid #1e293b"><div class="shell"><b class="brand">BeatBook</b><p class="muted">DJs for every moment. Secure enquiries, bookings and verified reviews.</p><p><a href="{{ route('privacy') }}" class="muted">Privacy</a> · <a href="{{ route('cookies') }}" class="muted">Cookies</a> · <a href="{{ route('terms') }}" class="muted">Terms</a></p></div></footer><div class="cookie" id="cookie"><strong>Your privacy matters</strong><p style="margin:6px 0 12px">We use necessary cookies to run BeatBook. Analytics and marketing remain off until you choose them.</p><button class="button" onclick="localStorage.setItem('cookieChoice','necessary');document.getElementById('cookie').remove()">Necessary only</button> <button class="button ghost" style="color:#0f172a" onclick="localStorage.setItem('cookieChoice','all');document.getElementById('cookie').remove()">Accept all</button></div><script>if(localStorage.getItem('cookieChoice'))document.getElementById('cookie')?.remove()</script></body></html>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="csrf-token" content="{{ csrf_token() }}">
<meta name="description" content="Find and book outstanding DJs for weddings, parties, clubs and corporate events.">
<title>@yield('title', 'BeatBook — Find Your Perfect DJ')</title>
@vite(['resources/css/app.css', 'resources/js/app.js'])
</head>
<body>
<header>
<div class="shell nav">
<a class="brand" href="{{ route('home') }}"><b>◉</b> BeatBook</a>
<nav class="navlinks">
<a href="{{ route('djs.index') }}">Find a DJ</a>
<a href="{{ route('home') }}#how">How it works</a>
<a href="{{ route('home') }}#for-djs">For DJs</a>
<a href="{{ route('home') }}#pricing">Pricing</a>
</nav>
<div class="nav-actions">
@auth
@if(auth()->user()->hasAnyRole(['admin', 'super-admin']))
<a class="button ghost" href="{{ route('admin.dashboard') }}">Admin</a>
@endif
<a class="button ghost" href="{{ route('dashboard') }}">Dashboard</a>
<form method="post" action="{{ route('logout') }}" class="inline-form">
@csrf
<button class="button" type="submit">Sign out</button>
</form>
@else
<a class="button ghost" href="{{ route('login') }}">Sign in</a>
<a class="button" href="{{ route('register') }}">Join</a>
@endauth
</div>
</div>
</header>
@if(session('success'))
<div class="shell flash success">{{ session('success') }}</div>
@endif
@if(session('status'))
<div class="shell flash success">{{ session('status') }}</div>
@endif
@yield('content')
<footer class="section footer">
<div class="shell">
<b class="brand">BeatBook</b>
<p class="muted">DJs for every moment. Secure enquiries, bookings and verified reviews.</p>
<p>
<a href="{{ route('privacy') }}" class="muted">Privacy</a> ·
<a href="{{ route('cookies') }}" class="muted">Cookies</a> ·
<a href="{{ route('terms') }}" class="muted">Terms</a>
</p>
</div>
</footer>
<div class="cookie" id="cookie">
<strong>Your privacy matters</strong>
<p>We use necessary cookies to run BeatBook. Analytics and marketing remain off until you choose them.</p>
<button class="button" type="button" onclick="localStorage.setItem('cookieChoice','necessary');document.getElementById('cookie').remove()">Necessary only</button>
<button class="button ghost cookie-secondary" type="button" onclick="localStorage.setItem('cookieChoice','all');document.getElementById('cookie').remove()">Accept all</button>
</div>
<script>
if (localStorage.getItem('cookieChoice')) document.getElementById('cookie')?.remove();
</script>
</body>
</html>