@extends('admin.layouts.main') @section('title', $server->exists ? 'Edit Server' : 'Create Server') @section('menu', 'Servers') @section('content')
@csrf @if($server->exists) @method('PUT') @endif
Server Details
@if ($errors->has('name')){{ $errors->first('name') }}@endif
@if ($errors->has('driver')){{ $errors->first('driver') }}@endif
@if ($errors->has('hostname')){{ $errors->first('hostname') }}@endif
@if ($errors->has('ip_address')){{ $errors->first('ip_address') }}@endif
@if ($errors->has('port')){{ $errors->first('port') }}@endif
@if ($errors->has('nameservers')){{ $errors->first('nameservers') }}@endif
@if ($errors->has('credentials_data')){{ $errors->first('credentials_data') }}@endif
Server Groups
@forelse($groups as $group)
id, old('server_groups', $server->exists ? $server->groups->pluck('id')->toArray() : [])) ? 'checked' : '' }}>
@empty

No server groups available.

@endforelse
Options
@if ($errors->has('max_accounts')){{ $errors->first('max_accounts') }}@endif
@if ($errors->has('status')){{ $errors->first('status') }}@endif
use_ssl ?? true) ? 'checked' : '' }}>
Publish
@endsection