@extends('su-admin.layout.master') @section('content') @php if(!isset($_GET['tab'])){ $tab = ''; }else{ $tab = $_GET['tab']; } @endphp
@if (session()->has('message')) @endif

Dati aziendali

@if (get_network_status())
@foreach ( get_networks() as $key => $network )
{!! Form::open(['url' => Request::url(), 'method' => 'post', 'class' => 'form-horizontal']) !!}
{!! Form::label('business_name', 'Ragione sociale', ['class' => 'form-label'] ) !!}
{!! Form::text('business_name', get_network_field($network['id'], 'company', 'app', 'business_name', 'companies' ), ['class' => 'form-control']) !!}
{!! Form::label('brand', 'Brand', ['class' => 'form-label'] ) !!}
{!! Form::text('brand', get_network_field($network['id'], 'company', 'app', 'brand', 'companies' ), ['class' => 'form-control']) !!}
{!! Form::label('address', 'Indirizzo', ['class' => 'form-label'] ) !!}
{!! Form::text('address', get_network_field($network['id'], 'company', 'app', 'address', 'companies' ), ['class' => 'form-control']) !!}
{!! Form::label('cap', 'Cap', ['class' => 'form-label'] ) !!}
{!! Form::text('cap', get_network_field($network['id'], 'company', 'app', 'cap', 'companies' ), ['class' => 'form-control']) !!}
{!! Form::label('city', 'Città', ['class' => 'form-label'] ) !!}
{!! Form::text('city', get_network_field($network['id'], 'company', 'app', 'city', 'companies' ), ['class' => 'form-control']) !!}
{!! Form::label('province', 'Provincia', ['class' => 'form-label'] ) !!}
{!! Form::text('province', get_network_field($network['id'], 'company', 'app', 'province', 'companies' ), ['class' => 'form-control']) !!}
{!! Form::label('country', 'Nazione', ['class' => 'form-label'] ) !!}
{!! Form::text('country', get_network_field($network['id'], 'company', 'app', 'country', 'companies' ), ['class' => 'form-control']) !!}
{!! Form::label('vat', 'Partita Iva', ['class' => 'form-label'] ) !!}
{!! Form::text('vat', get_network_field($network['id'], 'company', 'app', 'vat', 'companies' ), ['class' => 'form-control']) !!}
{!! Form::label('email', 'Email', ['class' => 'form-label'] ) !!}
{!! Form::email('email', get_network_field($network['id'], 'company', 'app', 'email', 'companies' ), ['class' => 'form-control']) !!}
{!! Form::label('phone', 'Telefono', ['class' => 'form-label'] ) !!}
{!! Form::text('phone', get_network_field($network['id'], 'company', 'app', 'phone', 'companies' ), ['class' => 'form-control']) !!}
{!! Form::label('fax', 'Fax', ['class' => 'form-label'] ) !!}
{!! Form::text('fax', get_network_field($network['id'], 'company', 'app', 'fax', 'companies' ), ['class' => 'form-control']) !!}
{!! Form::label('website', 'Sito web', ['class' => 'form-label'] ) !!}
{!! Form::text('website', get_network_field($network['id'], 'company', 'app', 'website', 'companies' ), ['class' => 'form-control']) !!}
{!! Form::label('social_capital', 'Capitale sociale', ['class' => 'form-label'] ) !!}
{!! Form::text('social_capital', get_network_field($network['id'], 'company', 'app', 'social_capital', 'companies' ), ['class' => 'form-control']) !!}
{!! Form::label('company_register', 'Registro imprese', ['class' => 'form-label'] ) !!}
{!! Form::text('company_register', get_network_field($network['id'], 'company', 'app', 'company_register', 'companies' ), ['class' => 'form-control']) !!}
{!! Form::label('expertise_forum', 'Foro di competenza', ['class' => 'form-label'] ) !!}
{!! Form::text('expertise_forum', get_network_field($network['id'], 'company', 'app', 'expertise_forum', 'companies' ), ['class' => 'form-control']) !!}
{!! Form::label('pec', 'PEC', ['class' => 'form-label'] ) !!}
{!! Form::text('pec', get_network_field($network['id'], 'company', 'app', 'pec', 'companies' ), ['class' => 'form-control']) !!}
{!! Form::hidden('id', $network['id'] ) !!} {!! Form::submit('Salva ' . $network['line'], ['class' => 'btn btn-primary btn-fw'] ) !!}
{!! Form::close() !!}
@endforeach
@else {!! Form::open(['url' => Request::url(), 'method' => 'post', 'class' => 'form-horizontal']) !!}
{!! Form::label('business_name', 'Ragione sociale', ['class' => 'form-label'] ) !!}
{!! Form::text('business_name', get_setting('app', 'business_name', 'company'), ['class' => 'form-control']) !!}
{!! Form::label('brand', 'Brand', ['class' => 'form-label'] ) !!}
{!! Form::text('brand', get_setting('app', 'brand', 'company'), ['class' => 'form-control']) !!}
{!! Form::label('address', 'Indirizzo', ['class' => 'form-label'] ) !!}
{!! Form::text('address', get_setting('app', 'address', 'company'), ['class' => 'form-control']) !!}
{!! Form::label('cap', 'Cap', ['class' => 'form-label'] ) !!}
{!! Form::text('cap', get_setting('app', 'cap', 'company' ), ['class' => 'form-control']) !!}
{!! Form::label('city', 'Città', ['class' => 'form-label'] ) !!}
{!! Form::text('city', get_setting('app', 'city', 'company' ), ['class' => 'form-control']) !!}
{!! Form::label('province', 'Provincia', ['class' => 'form-label'] ) !!}
{!! Form::text('province', get_setting('app', 'province', 'company' ), ['class' => 'form-control']) !!}
{!! Form::label('country', 'Nazione', ['class' => 'form-label'] ) !!}
{!! Form::text('country', get_setting('app', 'country', 'company' ), ['class' => 'form-control']) !!}
{!! Form::label('vat', 'Partita Iva', ['class' => 'form-label'] ) !!}
{!! Form::text('vat', get_setting('app', 'vat', 'company'), ['class' => 'form-control']) !!}
{!! Form::label('email', 'Email', ['class' => 'form-label'] ) !!}
{!! Form::email('email', get_setting('app', 'email', 'company'), ['class' => 'form-control']) !!}
{!! Form::label('phone', 'Telefono', ['class' => 'form-label'] ) !!}
{!! Form::text('phone', get_setting('app', 'phone', 'company'), ['class' => 'form-control']) !!}
{!! Form::label('fax', 'Fax', ['class' => 'form-label'] ) !!}
{!! Form::text('fax', get_setting('app', 'fax', 'company'), ['class' => 'form-control']) !!}
{!! Form::label('website', 'Sito web', ['class' => 'form-label'] ) !!}
{!! Form::text('website', get_setting('app', 'website', 'company' ), ['class' => 'form-control']) !!}
{!! Form::label('social_capital', 'Capitale sociale', ['class' => 'form-label'] ) !!}
{!! Form::text('social_capital', get_setting('app', 'social_capital', 'company' ), ['class' => 'form-control']) !!}
{!! Form::label('company_register', 'Registro imprese', ['class' => 'form-label'] ) !!}
{!! Form::text('company_register', get_setting('app', 'company_register', 'company' ), ['class' => 'form-control']) !!}
{!! Form::label('expertise_forum', 'Foro di competenza', ['class' => 'form-label'] ) !!}
{!! Form::text('expertise_forum', get_setting('app', 'expertise_forum', 'company' ), ['class' => 'form-control']) !!}
{!! Form::label('pec', 'PEC', ['class' => 'form-label'] ) !!}
{!! Form::text('pec', get_setting('app', 'pec', 'company' ), ['class' => 'form-control']) !!}
{!! Form::submit('Salva', ['class' => 'btn btn-primary btn-fw'] ) !!}
{!! Form::close() !!} @endif
@endsection