Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

company-settings.blade.php 1.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. @props([
  2. 'icon' => null,
  3. 'currentTenant' => null,
  4. ])
  5. @php
  6. $currentTenantName = filament()->getTenantName($currentTenant);
  7. $currentCompany = auth()->user()->currentCompany;
  8. $currentCompanyOwner = $currentCompany->owner;
  9. $items = filament()->getTenantMenuItems();
  10. $profileItem = $items['profile'] ?? null;
  11. $profileItemUrl = $profileItem?->getUrl();
  12. @endphp
  13. <li class="grid grid-flow-col auto-cols-max gap-x-2 items-start p-2">
  14. <div class="icon h-9 w-9 flex items-center justify-center rounded-full bg-gray-200 dark:bg-white/10">
  15. <x-filament::icon
  16. :icon="$icon"
  17. class="h-6 w-6 text-gray-600 dark:text-gray-200"
  18. />
  19. </div>
  20. <div>
  21. <div class="px-2 pb-2">
  22. <h2 class="text-gray-800 dark:text-gray-200 text-base font-semibold">
  23. {{ $currentTenantName }}
  24. </h2>
  25. <p class="text-sm font-normal text-gray-500 dark:text-gray-400">
  26. {{ $currentCompanyOwner->email }}
  27. </p>
  28. </div>
  29. </div>
  30. </li>
  31. <x-panel-shift-dropdown.item
  32. :url="\App\Filament\Company\Clusters\Settings::getUrl()"
  33. label="All Settings"
  34. icon="heroicon-m-cog-6-tooth"
  35. />
  36. <x-panel-shift-dropdown.item
  37. :url="$profileItemUrl ?? filament()->getTenantProfileUrl()"
  38. :label="$profileItem?->getLabel() ?? filament()->getTenantProfilePage()::getLabel()"
  39. icon="heroicon-m-briefcase"
  40. />
  41. <x-panel-shift-dropdown.toggle
  42. label="Switch Company"
  43. icon="heroicon-m-arrows-right-left"
  44. panel-id="company-switcher"
  45. />