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

{{ __('Blocked IPs') }}

{{ __('Manage blocked IP addresses and access restrictions.') }}

{{-- Inline Block IP Form --}}

{{ __('Block New IP Address') }}

@csrf
@error('ip_address')

{{ $message }}

@enderror
{{-- Search Filter --}}
{{ __('Reset') }}
{{-- Blocked IPs Table Panel --}}

{{ __('Blocked IP Directory') }}

{{ __('Showing') }} {{ $blockedIps->count() }} {{ __('of') }} {{ $blockedIps->total() }} {{ __('blocked IPs.') }}

{{-- List View --}}
@forelse($blockedIps as $blocked) @php $isPermanent = is_null($blocked->blocked_until); $isExpired = !$isPermanent && \Carbon\Carbon::parse($blocked->blocked_until)->isPast(); @endphp {{-- Unblock confirmation modal --}}
@csrf @method('DELETE')

{{ __('Unblock') }} "{{ $blocked->ip_address }}"?

{{ __('This IP address will be able to access the application again. You can always re-block it later.') }}

@empty @endforelse
{{ __('IP Address') }} {{ __('Reason') }} {{ __('Blocked By') }} {{ __('Status') }} {{ __('Blocked Until') }} {{ __('Created') }} {{ __('Actions') }}
{{ $blocked->ip_address }} {{ $blocked->reason ?? '-' }} {{ $blocked->blocked_by ?? __('System') }} @if($isPermanent) {{ __('Permanent') }} @elseif($isExpired) {{ __('Expired') }} @else {{ __('Active') }} @endif @if($isPermanent) {{ __('Never') }} @else {{ \Carbon\Carbon::parse($blocked->blocked_until)->format('M j, Y H:i') }} @endif {{ \Carbon\Carbon::parse($blocked->created_at)->format('M j, Y') }}
{{ __('No blocked IPs found.') }}
{{-- Grid View --}}
@forelse($blockedIps as $blocked) @php $isPermanent = is_null($blocked->blocked_until); $isExpired = !$isPermanent && \Carbon\Carbon::parse($blocked->blocked_until)->isPast(); @endphp
{{ $blocked->ip_address }}
{{ $blocked->reason ?? __('No reason') }}
{{ $blocked->blocked_by ?? __('System') }} @if($isPermanent) {{ __('Permanent') }} @elseif($isExpired) {{ __('Expired') }} @else {{ __('Active') }} @endif
@empty
{{ __('No blocked IPs found.') }}
@endforelse
@if($blockedIps->hasPages())
{{ $blockedIps->withQueryString()->links() }}
@endif
{{-- Bulk Unblock Modal --}}
@csrf

{{ __('Unblock selected IPs?') }}

{!! __('The selected IP address(es) will be removed from the block list and will be able to access the application again.') !!}