@extends('su-admin.layout.master') @section('content')
@if (session()->has('message')) @endif

Connessione

{!! Form::open(['url' => Request::url(), 'method' => 'post', 'class' => 'form-horizontal']) !!}
{!! Form::label('type', 'Tipo connessione', ['class' => 'form-label'] ) !!}
{!! Form::select('type', array('local' => 'Locale', 'remote' => 'Remota'), get_setting('app', 'type', 'connection'), ['class' => 'form-select' ]) !!}
{!! Form::label('url', 'Url connessione remota', ['class' => 'form-label'] ) !!}
{!! Form::text('url', get_setting('app', 'url', 'connection'), ['class' => 'form-control']) !!}
{!! Form::label('path', 'Path connessione remota', ['class' => 'form-label'] ) !!}
{!! Form::text('path', get_setting('app', 'path', 'connection'), ['class' => 'form-control']) !!}
{!! Form::label('port', 'Porta', ['class' => 'form-label'] ) !!}
{!! Form::text('port', get_setting('app', 'port', 'connection'), ['class' => 'form-control']) !!}
{!! Form::label('domain', 'Dominio gateway', ['class' => 'form-label'] ) !!}
{!! Form::text('domain', get_setting('app', 'domain', 'connection'), ['class' => 'form-control']) !!}
{!! Form::label('secret', 'Secret', ['class' => 'input-group-text', 'style' => 'width:100px'] ) !!} {!! Form::text('secret', get_setting('app', 'secret', 'connection'), ['class' => 'form-control']) !!}
{!! Form::label('key', 'Key', ['class' => 'input-group-text', 'style' => 'width:100px'] ) !!} {!! Form::text('key', get_setting('app', 'key', 'connection'), ['class' => 'form-control']) !!}
{!! Form::submit('Salva', ['class' => 'btn btn-primary btn-fw'] ) !!}
{!! Form::close() !!}
@endsection