NavbarFormComponent.php 681 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. namespace App\View\Components\Myapp;
  3. use App\Helpers\Utils;
  4. use Illuminate\View\Component;
  5. use App\Models\Parameter\Modal;
  6. class NavbarFormComponent extends Component
  7. {
  8. /**
  9. * Create a new component instance.
  10. *
  11. * @return void
  12. */
  13. public function __construct()
  14. {
  15. //
  16. }
  17. /**
  18. * Get the view / contents that represent the component.
  19. *
  20. * @return \Illuminate\Contracts\View\View|\Closure|string
  21. */
  22. public function render()
  23. {
  24. $form = (new Modal('/etc/common/user-menu', null, 'pro'))->getData();
  25. return view('front.dabory.myapp.components.navbar-form-component', compact('form'));
  26. }
  27. }