@extends('layout.default') @section('head') @endsection @section('content') @if ($errors->any()) @foreach ($errors->all() as $error)

{{ $error }}

@endforeach @endif {{ html()->modelForm($setting, 'PUT', route('vpn_settings.update', $setting->id))->open() }}
設定名 * VPN_{{ html()->text('name', preg_replace('/^VPN_/', '', $setting->name))->id('name_input')->required() }}
VPNサーバアドレス(ローカル)* {{ html()->text('local_address')->id('local_address_input')->placeholder('例) 192.168.1.100') }}
VPNサーバアドレス(グローバル) * {{ html()->text('global_address')->id('global_address_input')->placeholder('例) x.x.x.x:15000') }}
VPNインターフェース名 * {{ html()->text('interface_name')->id('interface_input')->placeholder('例) wg0')->required() }}
DNSサーバアドレス {{ html()->text('dns_servers')->id('dns_servers_input')->placeholder('例) 8.8.8.8') }}
許可ホスト * {!! html()->textarea('allowed_hosts', $setting->AllowedHostsForTextArea)->id('allowed_hosts_input')->placeholder("例) 192.168.50.1\r\n例) 192.168.50.10")->required() !!}
{{ html()->submit('変更') }} @stop @section('script') @stop