tabs.blade.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. @props([
  2. 'id' => 'tabs-' . rand(10000, 99999),
  3. 'active' => null,
  4. 'plugin' => 'tabs',
  5. 'orientation' => 'horizontal', // horizontal, vertical
  6. 'dropdown' => true,
  7. 'dropdown_title' => trans('admin.setting.system.menu'),
  8. ])
  9. <div class="nav-tabs-{{ $orientation }}" id="{{ $id }}" data-plugin="{{ $plugin }}">
  10. @if (isset($tabs))
  11. <ul class="nav nav-tabs" role="tablist">
  12. {{ $tabs }}
  13. @if ($dropdown)
  14. <li class="dropdown nav-item" role="presentation">
  15. <a class="dropdown-toggle nav-link" data-toggle="dropdown" href="#" aria-expanded="false">
  16. {{ $dropdown_title }}
  17. </a>
  18. <div class="dropdown-menu" role="menu">
  19. @if (isset($dropdown_items))
  20. {{ $dropdown_items }}
  21. @else
  22. {{ $tabs }}
  23. @endif
  24. </div>
  25. </li>
  26. @endif
  27. </ul>
  28. @endif
  29. <div class="tab-content {{ $attributes->get('content-class', 'py-35 px-35') }}">
  30. {{ $slot }}
  31. </div>
  32. </div>