@php /** * @var $server \Gameap\Models\Server * */ @endphp @php($title = __('servers.title_edit')) @extends('layouts.main') @section('breadclumbs') @endsection @section('content') @include('components.form.errors_block')
 {{ __('servers.settings') }}  {{ __('servers.control') }}
{!! Form::model($server, ['method' => 'PATCH', 'route' => ['admin.servers.update', $server->id], 'id' => 'adminServerForm']) !!}
{{ __('servers.basic_info') }}
{{ Form::checkbox('enabled', 'on', null, ['id' => 'enabled', 'class' => 'form-check-input']) }} {{ Form::label('enabled', __('labels.enabled'), ['class' => 'form-check-label']) }}
{{ Form::checkbox('blocked', 'on', null, ['id' => 'blocked', 'class' => 'form-check-input']) }} {{ Form::label('blocked', __('labels.blocked'), ['class' => 'form-check-label']) }}
{{ Form::bsText('uuid', null, null, ['disabled' => 'disabled']) }} {{ Form::bsText('name') }}
{{ Form::label('installed', __('servers.status'), ['class' => 'control-label']) }} {{ Form::select('installed', [ $server::NOT_INSTALLED => ucfirst(__('servers.not_installed')), $server::INSTALLED => ucfirst(__('servers.installed')), $server::INSTALLATION_PROCESS => ucfirst(__('servers.installation')), ], $server->installed, ['class' => 'form-control']) }}
{{ Form::label('rcon', null, ['class' => 'control-label']) }}
{{ Form::input('password', 'rcon', $server->rcon, ['class' => 'form-control password', 'autocomplete' => 'new-password']) }}
{{ Form::bsInput('text', [ 'name' => 'dir', 'description' => __('servers.d_dir') ]) }} {{ Form::bsText('su_user') }}
{{ __('servers.ds_ip_ports') }}
{{ __('servers.start_command') }}
{{ Form::bsTextArea('start_command', null, null, ['rows' => 3]) }}
@foreach ($server->aliases as $aliasName => $aliasValue) @endforeach
{{ __('main.name') }} {{ __('main.value') }}
{{{ $aliasName }}} {{ $aliasValue }}
{{ Form::submit(__('main.save'), ['class' => 'btn btn-success']) }}
{!! Form::close() !!} @endsection @section('footer-scripts') @endsection