{{-- Stats Cards --}}

{{ $blockedLocations->total() }}

{{ __('Total Blocked Locations') }}

{{ $activeCount ?? 0 }}

{{ __('Active Rules') }}

{{ $countriesCount ?? 0 }}

{{ __('Countries Blocked') }}

{{-- Filter & Actions Panel --}}

{{ __('Blocked Locations') }}

{{ __('Manage geographic access restrictions by country, state, or city.') }}

{{ __('Reset') }}
{{-- Blocked Locations Table Panel --}}

{{ __('Location Directory') }}

{{ __('Showing') }} {{ $blockedLocations->count() }} {{ __('of') }} {{ $blockedLocations->total() }} {{ __('blocked locations.') }}

@forelse($blockedLocations as $location)
@csrf @method('DELETE')

Remove block for "{{ $location->country_name }}{{ $location->state ? ' / ' . $location->state : '' }}{{ $location->city ? ' / ' . $location->city : '' }}"?

{!! __('This location will be removed from the block list and users from this area will regain access.') !!}

@empty @endforelse
{{ __('Country') }} {{ __('State') }} {{ __('City') }} {{ __('Reason') }} {{ __('Status') }} {{ __('Created By') }} {{ __('Actions') }}
{{ $location->country_name }}

{{ $location->country_code }}

{{ $location->state ?? '--' }} {{ $location->city ?? '--' }} {{ $location->reason ?? '--' }} @if($location->is_active) {{ __('Active') }} @else {{ __('Inactive') }} @endif {{ $location->created_by_name ?? $location->createdBy->name ?? __('System') }}
{{ __('Edit') }}
{{ __('No blocked locations found.') }}
@if($blockedLocations->hasPages())
{{ $blockedLocations->withQueryString()->links() }}
@endif
{{-- Import Modal --}}
@csrf

{{ __('Import Blocked Locations') }}

{{ __('Upload a CSV file with location data (country_code, country_name, state, city, reason, is_active).') }}

{{-- Bulk Delete Modal --}}
@csrf

{{ __('Delete selected blocked locations?') }}

{!! __('You are about to remove the selected location blocks. Users from these areas will regain access.') !!}