@php $settings = \TomatoPHP\FilamentSettingsHub\Facades\FilamentSettingsHub::load()->groupBy('group')->reverse(); $tenant = \Filament\Facades\Filament::getTenant(); @endphp @if($tenant) @foreach($settings as $settingGroup=>$setting)

{{ str($settingGroup)->contains(['.','::']) ? trans($settingGroup) : $settingGroup }}

@foreach($setting as $item)
@if(isset($item->icon)) @if($item->color) @else @endif @else @endif

{{ str($item->label)->contains(['.','::']) ? trans($item->label) : $item->label }}

{{ str($item->description)->contains(['.','::']) ? trans($item->description) : $item->description}}

@endforeach
@endforeach @else @foreach($settings as $settingGroup=>$setting)

{{ str($settingGroup)->contains(['.','::']) ? trans($settingGroup) : $settingGroup }}

@foreach($setting as $item)
@if(isset($item->icon)) @if($item->color) @else @endif @else @endif

{{ str($item->label)->contains(['.','::']) ? trans($item->label) : $item->label }}

{{ str($item->description)->contains(['.','::']) ? trans($item->description) : $item->description}}

@endforeach
@endforeach @endif