@php($title = __('ftp::ftp_commands.title_edit')) @extends('layouts.main') @section('breadclumbs') @endsection @section('footer-scripts') @endsection @section('content') @include('components.form.errors_block')
{!! Form::open(['method' => 'PATCH','route' => 'admin.ftp.commands.update']) !!} @foreach($dedicatedServers as $ds)

{{ $ds->name }}

@if (empty($ftpCommands[$ds->id]->default_host) && empty($ftpCommands[$ds->id]->create_command))
{{ Form::button( ' ' . __('ftp::ftp_commands.autosetup'), [ 'class' => 'btn btn-sm btn-dark run-autosetup', 'data-ds-id' => $ds->id, 'type' => 'submit' ] ) }}
@endif {{ Form::bsText('default_host[' . $ds->id . ']', $ftpCommands[$ds->id]->default_host ?? '', __('ftp::ftp_commands.default_host')) }} {{ Form::bsInput('text', [ 'name' => 'create_command[' . $ds->id . ']', 'value' => $ftpCommands[$ds->id]->create_command ?? '', 'label' => __('ftp::ftp_commands.create_command'), 'description' => __('ftp::ftp_commands.d_create_command') ]) }} {{ Form::bsInput('text', [ 'name' => 'update_command[' . $ds->id . ']', 'value' => $ftpCommands[$ds->id]->update_command ?? '', 'label' => __('ftp::ftp_commands.update_command'), 'description' => __('ftp::ftp_commands.d_update_command') ]) }} {{ Form::bsInput('text', [ 'name' => 'delete_command[' . $ds->id . ']', 'value' => $ftpCommands[$ds->id]->delete_command ?? '', 'label' => __('ftp::ftp_commands.delete_command'), 'description' => __('ftp::ftp_commands.d_delete_command') ]) }}
@endforeach {{ Form::submit(__('main.save'), ['class' => 'btn btn-success']) }} {!! Form::close() !!} {!! Form::open(['id' => 'autosetup-form', 'method' => 'POST','route' => 'admin.ftp.commands.autosetup']) !!} {{ Form::hidden('dedicatedServer', null, ['id' => 'autosetup-ds-id']) }} {!! Form::close() !!} @endsection