@extends('layouts.app') @section('title') {{ __('Quản lí IP') }} @endsection @section('partner') active @endsection @section('section.header')

{{ __('Quản lí IP') }}


@endsection @section('section.content')
@if (Session::has('success'))
{{ Session::get('success') }}
@endif @if (Session::has('error'))
{{ Session::get('error') }}
@endif
{{ __('Danh sách WhiteLists IP') }} ({{ __('Đối tác: :name', ['name' => $username->username]) }})
{{ __('Mỗi IP được cấp riêng theo từng mục đích:') }} {{ __('Đăng nhập') }} ({{ __('vào hậu đài') }}), {{ __('Xuất khoản') }} ({{ __('API xuất/nhập khoản') }}), {{ __('Tra cứu số dư') }} (API GetBalance).
{{ __('Tra cứu số dư') }} {{ __('chỉ bị chặn khi đối tác đã có ít nhất 1 IP bật mục đích này — chưa thêm thì API vẫn dùng bình thường.') }}
@php $defaultPurposes = [ \App\Models\User\WhitelistIP::PURPOSE_LOGIN, \App\Models\User\WhitelistIP::PURPOSE_API, ]; $oldPurposes = (array) old('purposes', $defaultPurposes); @endphp
@csrf
@foreach ($purposeOptions as $column => $label)
@endforeach
@error('whitelist_ip') * {{ $message }} @enderror @error('purposes') * {{ $message }} @enderror
@foreach ($whitelistIps as $whitelistIp) @endforeach
{{ __('IP Address') }} {{ __('Mục đích sử dụng') }} {{ __('status') }} {{ __('Thời gian tạo') }} {{ __('Cập nhật cuối') }} {{ __('operation') }}
{{ $whitelistIp->ip_address }}
@csrf @method('PUT')
@foreach ($purposeOptions as $column => $label)
{$column} ? 'checked' : '' }}>
@endforeach
@if ($whitelistIp->state) {{ __('Hoạt động') }} @else {{ __('Đã chặn') }} @endif {{ $whitelistIp->created_at ? formatTime($whitelistIp->created_at) : '-' }} {{ $whitelistIp->updated_at ? formatTime($whitelistIp->updated_at) : '-' }}
@endsection @section('styles') @endsection @section('scripts') @endsection