Advertisement
Guest User

Untitled

a guest
Sep 20th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. <?php
  2.  
  3. namespace app\Admin\Widgets;
  4.  
  5. use AdminTemplate;
  6. use SleepingOwl\Admin\Widgets\Widget;
  7.  
  8. class NavigationNotifications extends Widget
  9. {
  10. /**
  11. * Get content as a string of HTML.
  12. *
  13. * @return string
  14. */
  15. public function toHtml()
  16. {
  17. return view(
  18. 'admin::navigation.notifications',
  19. [
  20. 'user' => auth()->user(),
  21. ]
  22. )->render();
  23. }
  24.  
  25. /**
  26. * @return string|array
  27. */
  28. public function template()
  29. {
  30. return AdminTemplate::getViewPath('_partials.header');
  31. }
  32.  
  33. /**
  34. * @return string
  35. */
  36. public function block()
  37. {
  38. return 'navbar.right';
  39. }
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement