{{-- Header with count --}}
@if ($headerText && $showCount && $totalCount > 0)
{{-- Count by type if multiple guards --}}
@if (count($countByType) > 1)
@foreach ($countByType as $type => $count)
{{ __($modelLabels[$type]) ?? __(class_basename($type)) }}: {{ $count }}
@endforeach
@endif
@endif
{{-- Profiles Display --}}
@if ($groupByModel && is_array($onlineReactedProfiles))
{{-- Grouped by Model Type --}}
@foreach ($onlineReactedProfiles as $modelType => $profiles)
{{ __($modelLabels[$modelType]) ?? __(class_basename($modelType)) }}
@foreach ($profiles as $profile)
@endforeach
@endforeach
@else
{{-- Not grouped --}}
@if(count($onlineReactedProfiles) > 0)
@foreach($onlineReactedProfiles as $profile)
@endforeach
@else
{{trans_choice('messages.reactions_contacts_online', 0, ['count' => 0]) }}
@endif
@endif
{{-- Logout Confirmation Modal --}}
@if (getActiveProfileType() === 'Admin')
{{ __('Log out user') }}
{{ __('Are you sure you want to log out this user?') }}
@if ($selectedProfileId && $selectedProfileType)
@php
$selectedProfile = $selectedProfileType::find($selectedProfileId);
@endphp
@if ($selectedProfile)
{{ $selectedProfile->name }}
{{ $selectedProfile->getLocationFirst()['name_short'] ?? '' }}
@endif
@endif
{{ __('Cancel') }}
{{ __('Log out') }}
{{ __('Loading...') }}
@endif
{{-- Include JavaScript for real-time updates --}}
@push('scripts')
@endpush