{{ __('Leave everything empty to show the poll to all profiles. Each filter you set narrows the audience.') }}

@foreach (['App\Models\User' => __('Users'), 'App\Models\Organization' => __('Organizations'), 'App\Models\Bank' => __('Banks'), 'App\Models\Admin' => __('Admins')] as $class => $label) @endforeach
@include('polls.types._checkbox', ['model' => 'targeting.filter_by_location', 'label' => __('Only profiles in a location')]) {{-- x-show on $wire: the checkbox is deferred, so a server-side class would not follow it --}}
empty($targeting['filter_by_location'])])>

{{ __('Only the most specific level you select counts: a city inside a selected country narrows to that city.') }}

@include('polls.types._date', ['model' => 'targeting.last_login_from', 'key' => 'poll-' . $editingPollId . '-last_login_from', 'withTime' => false]) @include('polls.types._error', ['field' => 'targeting.last_login_from'])
@include('polls.types._date', ['model' => 'targeting.last_login_until', 'key' => 'poll-' . $editingPollId . '-last_login_until', 'withTime' => false]) @include('polls.types._error', ['field' => 'targeting.last_login_until'])
@include('polls.types._date', ['model' => 'targeting.registered_from', 'key' => 'poll-' . $editingPollId . '-registered_from', 'withTime' => false]) @include('polls.types._error', ['field' => 'targeting.registered_from'])
@include('polls.types._date', ['model' => 'targeting.registered_until', 'key' => 'poll-' . $editingPollId . '-registered_until', 'withTime' => false]) @include('polls.types._error', ['field' => 'targeting.registered_until'])
{{ __('Count matching profiles') }} @if ($matchingCounts !== null)

{{ trans_choice(':count profile|:count profiles', array_sum($matchingCounts), ['count' => number_format(array_sum($matchingCounts))]) }} ({{ collect($matchingCounts)->map(fn ($count, $type) => __($type . 's') . ': ' . number_format($count))->implode(', ') }})

@endif