SortMenuComponent.php 694 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. namespace App\View\Components;
  3. use App\Helpers\Utils;
  4. use App\Models\Parameter\Modal;
  5. use Illuminate\View\Component;
  6. class SortMenuComponent extends Component
  7. {
  8. /**
  9. * Create a new component instance.
  10. *
  11. * @return void
  12. */
  13. public function __construct()
  14. {
  15. }
  16. /**
  17. * Get the view / contents that represent the component.
  18. *
  19. * @return \Illuminate\Contracts\View\View|\Closure|string
  20. */
  21. public function render()
  22. {
  23. $sortMenuPage = Utils::getSortMenu()['Page'] ?? [];
  24. return view('components.sort-menu-component', compact('sortMenuPage'))
  25. ->with('codeTitle', [ "sort_type('sort-type')" ]);
  26. }
  27. }