From 86263db9d9488e45fe87ea05bf795b4fbc15d92d Mon Sep 17 00:00:00 2001 From: pacnpal <183241239+pacnpal@users.noreply.github.com> Date: Tue, 25 Mar 2025 11:33:47 -0400 Subject: [PATCH] refactor: remove designers table migration and update layout structure for improved readability and organization --- ...24_02_25_194500_create_designers_table.php | 27 --- resources/views/home.blade.php | 54 ++--- resources/views/layouts/app.blade.php | 209 +++--------------- 3 files changed, 54 insertions(+), 236 deletions(-) delete mode 100644 database/migrations/2024_02_25_194500_create_designers_table.php diff --git a/database/migrations/2024_02_25_194500_create_designers_table.php b/database/migrations/2024_02_25_194500_create_designers_table.php deleted file mode 100644 index 5871c91..0000000 --- a/database/migrations/2024_02_25_194500_create_designers_table.php +++ /dev/null @@ -1,27 +0,0 @@ -id(); - $table->string('name'); - $table->string('slug')->unique(); - $table->text('description')->nullable(); - $table->string('website')->nullable(); - $table->date('founded_date')->nullable(); - $table->string('headquarters')->nullable(); - $table->timestamps(); - }); - } - - public function down(): void - { - Schema::dropIfExists('designers'); - } -}; diff --git a/resources/views/home.blade.php b/resources/views/home.blade.php index 75ec833..09ece6f 100644 --- a/resources/views/home.blade.php +++ b/resources/views/home.blade.php @@ -1,38 +1,22 @@ - - @section('title', 'ThrillWiki - Your Ultimate Theme Park Guide') -
-
-

- Welcome to ThrillWiki -

- -

- Your ultimate guide to theme parks and attractions worldwide -

+@extends('layouts.app') - - -
-
-
{{ $total_parks ?? 0 }}
-
Theme Parks
-
-
-
{{ $total_attractions ?? 0 }}
-
Attractions
-
-
-
{{ $total_coasters ?? 0 }}
-
Roller Coasters
-
-
+@section('content') +
+
+
+

Total Parks

+

{{ $total_parks }}

+
+ +
+

Total Attractions

+

{{ $total_attractions }}

+
+ +
+

Total Roller Coasters

+

{{ $total_coasters }}

- \ No newline at end of file +
+@endsection diff --git a/resources/views/layouts/app.blade.php b/resources/views/layouts/app.blade.php index e4a4eef..1a92634 100644 --- a/resources/views/layouts/app.blade.php +++ b/resources/views/layouts/app.blade.php @@ -1,183 +1,44 @@ - - - - - - @yield('title', 'ThrillWiki') + + + + + - - + {{ config('app.name', 'ThrillWiki') }} - - + + @vite(['resources/css/app.css', 'resources/js/app.js']) - - + + @livewireStyles + + +
+ - @stack('scripts') - + +
+ @yield('content') +
+
+ + @livewireScripts +