{{-- methods --}} @include('ipfirewall::settings.tabs.components.methods', ['methods' => @$$key['methods']]) {{-- routes --}} @include('ipfirewall::settings.tabs.components.routes', ['routes' => @$$key['routes']]) {{-- continents --}} @include('ipfirewall::settings.tabs.components.allow_block',[ 'middleware' => $key, 'component' => 'continents', 'text' => 'Continents', 'continents' => @$$key['continents'], // (optional) drop down options 'allowed_options' => $$key['continents']['hints'], 'blocked_options' => $$key['continents']['hints'], // (optional) description 'allowed_description' => __('Empty means all continents are allowed. We can allow only specific continents. And block all other. (case sensitive)'), 'blocked_description' => __('This has higher presidence, and will be blocked even if allowed in above.') ]) {{-- regions --}} @include('ipfirewall::settings.tabs.components.allow_block', [ 'middleware' => $key, 'component' => 'regions', 'text' => 'Regions', 'regions' => @$$key['regions'], // (optional) drop down options 'allowed_options' => $$key['regions']['hints'], 'blocked_options' => $$key['regions']['hints'], // description 'allowed_description' => __('Empty means all regions are allowed. We can allow only specific regions. And block all other. (case sensitive)'), 'blocked_description' => __('This has higher presidence, and will be blocked even if allowed in above.') ]) {{-- countries --}} @include('ipfirewall::settings.tabs.components.allow_block', [ 'middleware' => $key, 'component' => 'countries', 'text' => 'Countries', 'countries' => @$$key['countries'], // (optional) drop down options 'allowed_options' => $$key['countries']['hints'], 'blocked_options' => $$key['countries']['hints'], // description 'allowed_description' => __('Empty means all countries are allowed. We can allow only specific countries. And block all other. (case sensitive)'), 'blocked_description' => __('This has higher presidence, and will be blocked even if allowed in above.') ]) {{-- cities --}} @include('ipfirewall::settings.tabs.components.allow_block', [ 'middleware' => $key, 'component' => 'cities', 'text' => 'Cities', 'cities' => @$$key['cities'], // (optional) drop down options 'allowed_options' => $$key['cities']['hints'], 'blocked_options' => $$key['cities']['hints'], // description 'allowed_description' => __('Empty means all cities are allowed. We can allow only specific cities. And block all other. (case sensitive)'), 'blocked_description' => __('This has higher presidence, and will be blocked even if allowed in above.') ]) {{-- service --}}
{!! Form::label("middleware_{$key}_service", 'Location Resolver', ['class' => 'form-label fs-6 fw-semibold']) !!}
{!! Form::select("middleware_{$key}_service", [ 'ipapi' => 'IP API', 'extremeiplookup' => 'Extreme IP Lookup', 'ipstack' => 'IP Stack', 'ipdata' => 'IP Data', 'ipinfo' => 'IP Info', 'ipregistry' => 'IP Registry', 'ip2locationio' => 'IP2Location.io', ], @$$key['service'] ?? null, [ 'class' => 'form-select', 'data-kt-select2' => 'true', 'data-placeholder' => 'Select Location Resolver', 'data-allow-clear' => 'true', ]) !!} Location resolver service to get location information of IP address.
{{-- auto block --}} @include('ipfirewall::settings.tabs.components.auto_block', ['auto_block' => @$$key['auto_block']])