|
|
@@ -0,0 +1,29 @@
|
|
|
+<?php
|
|
|
+
|
|
|
+namespace App\View\Components;
|
|
|
+
|
|
|
+use Illuminate\View\Component;
|
|
|
+use Illuminate\Contracts\View\View;
|
|
|
+
|
|
|
+class LanguageSwitcher extends Component
|
|
|
+{
|
|
|
+ /**
|
|
|
+ * Create a new component instance.
|
|
|
+ *
|
|
|
+ * @return void
|
|
|
+ */
|
|
|
+ public function __construct()
|
|
|
+ {
|
|
|
+ //
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Get the view / contents that represent the component.
|
|
|
+ *
|
|
|
+ * @return \Illuminate\Contracts\View\View|\Closure|string
|
|
|
+ */
|
|
|
+ public function render(): View
|
|
|
+ {
|
|
|
+ return view('components.language-switcher');
|
|
|
+ }
|
|
|
+}
|