@php($title = __('fastdl::fastdl.fastdl_ds_settings_title')) @extends('layouts.main') @section('breadclumbs') @endsection @section('content') @include('components.form.errors_block') {!! Form::model($fastdlDs, ['method' => 'PATCH', 'url' => route('admin.fastdl.save', ['id' => $dedicatedServer->getKey()])]) !!}
{{ Form::label('method', __('fastdl::fastdl.method'), ['class' => 'control-label']) }} {{ Form::select( 'method', [ 'link' => 'link', 'mount' => 'mount', 'copy' => 'copy', 'rsync' => 'rsync' ], empty($fastdlDs->method) ? 'rsync' : $fastdlDs->method, ['class' => 'form-control']) }}
{{-- {{ Form::bsText('host', $dedicatedServer->ip[0] ?? '0.0.0.0') }} --}}
{{ Form::label('host', __('fastdl::fastdl.host'), ['class' => 'control-label']) }} {{ Form::select( 'host', array_combine($dedicatedServer->ip, $dedicatedServer->ip), null, ['class' => 'form-control']) }}
{{ Form::bsText('port', $fastdlDs->port ?? '80') }}
{{ Form::checkbox('autoindex', 'on', true, ['id' => 'enabled', 'class' => 'form-check-input']) }} {{ Form::label('autoindex', __('fastdl::fastdl.autoindex'), ['class' => 'form-check-label']) }}
@if (empty($fastdlDs))
{{ Form::checkbox('autoinstall', 'on', true, ['id' => 'enabled', 'class' => 'form-check-input']) }} {{ Form::label('autoinstall', __('fastdl::fastdl.autoinstall'), ['class' => 'form-check-label']) }}
@endif
{{ Form::submit(__('main.save'), ['class' => 'btn btn-success']) }}
{!! Form::close() !!} @endsection