@extends('admin.layouts.app') @section('title', __('admin.banned_ips.title')) @section('content')
@if(($bannedIps ?? collect())->isEmpty())
{{ __('admin.banned_ips.no_banned') }}
@else @foreach($bannedIps as $ban) @endforeach
{{ __('common.table.ip_address') }}{{ __('admin.banned_ips.reason') }}{{ __('admin.banned_ips.banned_on') }}{{ __('admin.banned_ips.expires') }}{{ __('common.table.actions') }}
{{ $ban->ip }} {{ $ban->reason ?: '—' }} {{ $ban->created_at->timezone(display_tz())->format(datetime_fmt()) }} {{ $ban->expires_at?->timezone(display_tz())->format(datetime_fmt()) ?? __('admin.banned_ips.never') }}
@csrf @method('DELETE')
@endif
@endsection