diff --git a/app/Http/Controllers/LocationController.php b/app/Http/Controllers/LocationController.php new file mode 100644 index 0000000..f426384 --- /dev/null +++ b/app/Http/Controllers/LocationController.php @@ -0,0 +1,25 @@ +input('location_id'); + + // Store location ID in session + session(['location_id' => $locationId]); + + return response()->json(['success' => true]); + } +} diff --git a/app/View/Components/CountrySelector.php b/app/View/Components/LanguageSelector.php similarity index 78% rename from app/View/Components/CountrySelector.php rename to app/View/Components/LanguageSelector.php index f243598..13ae22e 100644 --- a/app/View/Components/CountrySelector.php +++ b/app/View/Components/LanguageSelector.php @@ -5,7 +5,7 @@ namespace App\View\Components; use Illuminate\View\Component; use Illuminate\View\View; -class CountrySelector extends Component +class LanguageSelector extends Component { /** * Create a new component instance. @@ -20,6 +20,6 @@ class CountrySelector extends Component */ public function render(): View { - return view('components.country-selector'); + return view('components.language-selector'); } } diff --git a/app/View/Components/LanguageSelectorSidebar.php b/app/View/Components/LanguageSelectorSidebar.php new file mode 100644 index 0000000..f40e829 --- /dev/null +++ b/app/View/Components/LanguageSelectorSidebar.php @@ -0,0 +1,25 @@ +selected = Location::where('id', $locationId)->first(); + + $this->locations = Location::whereNotNull('display_name') + ->whereNot('display_name', '=', '') + ->orderBy('display_name') + ->get(); + + } + + /** + * Get the view/contents that represent the component. + */ + public function render(): View + { + + return view('components.location-selector'); + } +} diff --git a/app/View/Components/LocationSelectorSidebar.php b/app/View/Components/LocationSelectorSidebar.php new file mode 100644 index 0000000..9d04cd2 --- /dev/null +++ b/app/View/Components/LocationSelectorSidebar.php @@ -0,0 +1,40 @@ +selected = Location::where('id', $locationId)->first(); + + $this->locations = Location::whereNotNull('display_name') + ->whereNot('display_name', '=', '') + ->orderBy('display_name') + ->get(); + + } + + /** + * Get the view/contents that represent the component. + */ + public function render(): View + { + + return view('components.location-selector-sidebar'); + } +} diff --git a/public/logo/icon.png b/public/logo/icon.png new file mode 100755 index 0000000..4da7ae4 Binary files /dev/null and b/public/logo/icon.png differ diff --git a/public/logo/logo-app.png b/public/logo/logo-app.png new file mode 100755 index 0000000..5fce545 Binary files /dev/null and b/public/logo/logo-app.png differ diff --git a/public/logo/logo-colored.png b/public/logo/logo-colored.png new file mode 100644 index 0000000..5363992 Binary files /dev/null and b/public/logo/logo-colored.png differ diff --git a/public/logo/logo_asiagolf_black_full.png b/public/logo/logo_asiagolf_black_full.png new file mode 100755 index 0000000..0fb8c2c Binary files /dev/null and b/public/logo/logo_asiagolf_black_full.png differ diff --git a/resources/views/components/language-selector-sidebar.blade.php b/resources/views/components/language-selector-sidebar.blade.php new file mode 100644 index 0000000..f5c0261 --- /dev/null +++ b/resources/views/components/language-selector-sidebar.blade.php @@ -0,0 +1,22 @@ + +
+
+
+