visuddhinanda 2 месяцев назад
Родитель
Сommit
88074dcaae

+ 29 - 0
api-v12/app/View/Components/BookItem.php

@@ -0,0 +1,29 @@
+<?php
+
+namespace App\View\Components;
+
+use Illuminate\View\Component;
+use Illuminate\Contracts\View\View;
+
+class BookItem 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.book-item');
+    }
+}

+ 29 - 0
api-v12/app/View/Components/BookList.php

@@ -0,0 +1,29 @@
+<?php
+
+namespace App\View\Components;
+
+use Illuminate\View\Component;
+use Illuminate\Contracts\View\View;
+
+class BookList 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.book-list');
+    }
+}

+ 29 - 0
api-v12/app/View/Components/LanguageSwitcher.php

@@ -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');
+    }
+}