Refactor Park model, update routes for parks management, and enhance database migrations for park areas and locations

This commit is contained in:
pacnpal
2025-02-25 14:17:13 -05:00
parent 45f9e45b9a
commit 15b2d4ebcf
12 changed files with 301 additions and 151 deletions

View File

@@ -0,0 +1,64 @@
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ $title ?? 'ThrillWiki' }}</title>
@vite(['resources/css/app.css', 'resources/js/app.js'])
@livewireStyles
</head>
<body class="min-h-screen bg-gray-100 dark:bg-gray-900 text-gray-900 dark:text-gray-100">
<header class="bg-white dark:bg-gray-800 shadow">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-4">
<div class="flex justify-between items-center">
<div class="flex items-center">
<a href="{{ route('home') }}" class="text-xl font-bold text-indigo-600 dark:text-indigo-400">
ThrillWiki
</a>
<nav class="ml-10 space-x-4 hidden md:flex">
<a href="{{ route('parks.index') }}" class="px-3 py-2 rounded-md text-sm font-medium {{ request()->routeIs('parks.*') ? 'bg-indigo-100 dark:bg-indigo-900 text-indigo-700 dark:text-indigo-300' : 'text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-700' }}">
Parks
</a>
<a href="{{ route('rides.index') }}" class="px-3 py-2 rounded-md text-sm font-medium {{ request()->routeIs('rides.*') ? 'bg-indigo-100 dark:bg-indigo-900 text-indigo-700 dark:text-indigo-300' : 'text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-700' }}">
Rides
</a>
</nav>
</div>
<div class="flex items-center space-x-4">
@livewire('theme-toggle-component')
@auth
@livewire('user-menu-component')
@else
@livewire('auth-menu-component')
@endauth
@livewire('mobile-menu-component')
</div>
</div>
</div>
</header>
<main>
{{ $slot }}
</main>
<footer class="bg-white dark:bg-gray-800 shadow mt-auto">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-4">
<div class="flex justify-between items-center">
<div class="text-sm text-gray-500 dark:text-gray-400">
&copy; {{ date('Y') }} ThrillWiki. All rights reserved.
</div>
<div class="flex space-x-4">
<a href="{{ route('terms') }}" class="text-sm text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-300">
Terms
</a>
<a href="{{ route('privacy') }}" class="text-sm text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-300">
Privacy
</a>
</div>
</div>
</div>
</footer>
@livewireScripts
</body>
</html>