@extends('layouts.layout-2') @section('content')

{{ __('Einstellungen') }}

{!! Form::open(['action' => route('admin_setting_store'), 'method' => 'POST', 'class' => 'form-horizontal']) !!}

Kauf Einstellungen

{{ Form::hidden('settings[is_comp_me_order][type]', 'bool') }} {{ Form::hidden('settings[is_comp_me_abo][type]', 'bool') }}

Rechnungen / Gutschriften Einstellungen

{{--
{{--
{{ Form::text('settings[invoice-number][val]', \App\Models\Setting::getContentBySlug('invoice-number'), array('class'=>'form-control', 'disabled')) }} {{ Form::hidden('settings[invoice-number][type]', 'int') }}
{{ Form::text('settings[credit-number][val]', \App\Models\Setting::getContentBySlug('credit-number'), array('class'=>'form-control')) }} {{ Form::hidden('settings[credit-number][type]', 'int') }}
--}}
{{ Form::text('settings[day-exectute-business-structur][val]', \App\Models\Setting::getContentBySlug('day-exectute-business-structur'), array('class'=>'form-control')) }} {{ Form::hidden('settings[day-exectute-business-structur][type]', 'int') }}

Abo Einstellungen

{{ Form::text('settings[abo-min-duration][val]', \App\Models\Setting::getContentBySlug('abo-min-duration'), array('class'=>'form-control')) }} {{ Form::hidden('settings[abo-min-duration][type]', 'int') }}

Auszeitparty

Bonus Gutschein
{{ Form::text('settings[hp-bonus-value][val]', \App\Models\Setting::getContentBySlug('hp-bonus-value'), array('class'=>'form-control')) }} {{ Form::hidden('settings[hp-bonus-value][type]', 'int') }}
{{ Form::text('settings[hp-bonus-start][val]', \App\Models\Setting::getContentBySlug('hp-bonus-start'), array('class'=>'form-control')) }} {{ Form::hidden('settings[hp-bonus-start][type]', 'int') }}

Bonus Stufen
{{ Form::text('settings[hp-bonus-steps][val]', \App\Models\Setting::getContentBySlug('hp-bonus-steps'), array('class'=>'form-control')) }} {{ Form::hidden('settings[hp-bonus-steps][type]', 'int') }}
@if($hpBonusSteps = \App\Models\Setting::getContentBySlug('hp-bonus-steps')) @for ($i=1; $i<=$hpBonusSteps; $i++)
{{ Form::text('settings[hp-bonus-step-value-'.$i.'][val]', \App\Models\Setting::getContentBySlug('hp-bonus-step-value-'.$i), array('class'=>'form-control')) }} {{ Form::hidden('settings[hp-bonus-step-value-'.$i.'][type]', 'int') }}
{{ Form::text('settings[hp-bonus-step-start-'.$i.'][val]', \App\Models\Setting::getContentBySlug('hp-bonus-step-start-'.$i), array('class'=>'form-control')) }} {{ Form::hidden('settings[hp-bonus-step-start-'.$i.'][type]', 'int') }}
@endfor @endif

DHL Versandeinstellungen

@if(Session::has('alert-save-dhl')) @endif
Standard-Einstellungen @if(config('dhl.config_source') == 'database') Database @else Environment @endif
{{ Form::text('settings[dhl_base_url][val]', \App\Models\Setting::getContentBySlug('dhl_base_url') ?: 'https://api-eu.dhl.com', array('class'=>'form-control')) }} {{ Form::hidden('settings[dhl_base_url][type]', 'text') }}
{{ Form::text('settings[dhl_api_key][val]', \App\Models\Setting::getContentBySlug('dhl_api_key'), array('class'=>'form-control')) }} {{ Form::hidden('settings[dhl_api_key][type]', 'text') }}
{{ Form::text('settings[dhl_username][val]', \App\Models\Setting::getContentBySlug('dhl_username'), array('class'=>'form-control')) }} {{ Form::hidden('settings[dhl_username][type]', 'text') }}
{{ Form::password('settings[dhl_password][val]', array('class'=>'form-control', 'value' => \App\Models\Setting::getContentBySlug('dhl_password'))) }} {{ Form::hidden('settings[dhl_password][type]', 'text') }}
{{ Form::text('settings[dhl_billing_number][val]', \App\Models\Setting::getContentBySlug('dhl_billing_number'), array('class'=>'form-control')) }} {{ Form::hidden('settings[dhl_billing_number][type]', 'text') }}
@php $selectedDhlProduct = \App\Models\Setting::getContentBySlug('dhl_product') ?: 'V01PAK'; $selectedDhlProduct = $selectedDhlProduct === 'V62WP' ? 'V62KP' : $selectedDhlProduct; @endphp {{ Form::select('settings[dhl_product][val]', [ 'V01PAK' => 'V01PAK - DHL Paket National', 'V53PAK' => 'V53PAK - DHL Paket International', 'V62KP' => 'V62KP - DHL Kleinpaket' ], $selectedDhlProduct, array('class'=>'form-control custom-select')) }} {{ Form::hidden('settings[dhl_product][type]', 'text') }}
{{ Form::select('settings[dhl_label_format][val]', [ 'PDF' => 'PDF', 'ZPL' => 'ZPL' ], \App\Models\Setting::getContentBySlug('dhl_label_format') ?: 'PDF', array('class'=>'form-control custom-select')) }} {{ Form::hidden('settings[dhl_label_format][type]', 'text') }}
{{ Form::hidden('settings[dhl_use_queue][type]', 'bool') }} Aktiviert: Versandlabel werden im Hintergrund erstellt (erfordert Queue Worker)
Deaktiviert: Versandlabel werden sofort erstellt (synchron)
{{ Form::hidden('settings[dhl_print_only_if_codeable][type]', 'bool') }} Aktiviert für deutsche Empfängeradressen mustEncode=true. DHL erstellt dann nur ein Label, wenn die Adresse leitcodierbar ist.
@php $dhlInternationalCountries = (new \App\Services\DhlProductResolver())->getSupportedInternationalCountries(); $dhlCountryCodes = array_keys(\App\Services\DhlProductResolver::DHL_COUNTRY_CODES); $dhlInternationalCountryOptions = \App\Models\Country::query() ->where('active', 1) ->whereIn('code', $dhlCountryCodes) ->where('code', '!=', \App\Services\DhlProductResolver::DOMESTIC_COUNTRY) ->orderBy('de') ->get(); @endphp
@foreach ($dhlInternationalCountryOptions as $countryOption)
@endforeach
{{ Form::hidden('settings[dhl_international_countries][type]', 'object') }} Aktivierte Länder verwenden im DHL-Modul automatisch V53PAK. Deutschland bleibt separat über V01PAK/V62KP geregelt.

Account Nummern für verschiedene Produkte
{{ Form::text('settings[dhl_account_v01pak][val]', \App\Models\Setting::getContentBySlug('dhl_account_v01pak'), array('class'=>'form-control')) }} {{ Form::hidden('settings[dhl_account_v01pak][type]', 'text') }}
{{ Form::text('settings[dhl_account_v07pak][val]', \App\Models\Setting::getContentBySlug('dhl_account_v07pak'), array('class'=>'form-control')) }} {{ Form::hidden('settings[dhl_account_v07pak][type]', 'text') }}
{{ Form::text('settings[dhl_account_v53pak][val]', \App\Models\Setting::getContentBySlug('dhl_account_v53pak'), array('class'=>'form-control')) }} {{ Form::hidden('settings[dhl_account_v53pak][type]', 'text') }}
{{ Form::text('settings[dhl_account_v62kp][val]', \App\Models\Setting::getContentBySlug('dhl_account_v62kp') ?: \App\Models\Setting::getContentBySlug('dhl_account_v62wp'), array('class'=>'form-control')) }} {{ Form::hidden('settings[dhl_account_v62kp][type]', 'text') }}

Absenderadresse
{{ Form::text('settings[dhl_sender_company][val]', \App\Models\Setting::getContentBySlug('dhl_sender_company') ?: 'mivita care gmbh', array('class'=>'form-control')) }} {{ Form::hidden('settings[dhl_sender_company][type]', 'text') }}
{{ Form::text('settings[dhl_sender_name][val]', \App\Models\Setting::getContentBySlug('dhl_sender_name'), array('class'=>'form-control')) }} {{ Form::hidden('settings[dhl_sender_name][type]', 'text') }}
{{ Form::text('settings[dhl_sender_street][val]', \App\Models\Setting::getContentBySlug('dhl_sender_street') ?: 'Leinfeld', array('class'=>'form-control')) }} {{ Form::hidden('settings[dhl_sender_street][type]', 'text') }}
{{ Form::text('settings[dhl_sender_house_number][val]', \App\Models\Setting::getContentBySlug('dhl_sender_house_number') ?: '2', array('class'=>'form-control')) }} {{ Form::hidden('settings[dhl_sender_house_number][type]', 'text') }}
{{ Form::text('settings[dhl_sender_postal_code][val]', \App\Models\Setting::getContentBySlug('dhl_sender_postal_code') ?: '87755', array('class'=>'form-control')) }} {{ Form::hidden('settings[dhl_sender_postal_code][type]', 'text') }}
{{ Form::text('settings[dhl_sender_city][val]', \App\Models\Setting::getContentBySlug('dhl_sender_city') ?: 'Kirchhaslach', array('class'=>'form-control')) }} {{ Form::hidden('settings[dhl_sender_city][type]', 'text') }}
{{ Form::select('settings[dhl_sender_country][val]', [ 'DE' => 'Deutschland', 'AT' => 'Österreich', 'CH' => 'Schweiz' ], \App\Models\Setting::getContentBySlug('dhl_sender_country') ?: 'DE', array('class'=>'form-control custom-select')) }} {{ Form::hidden('settings[dhl_sender_country][type]', 'text') }}
{{ Form::email('settings[dhl_sender_email][val]', \App\Models\Setting::getContentBySlug('dhl_sender_email') ?: 'versand@mivita.care', array('class'=>'form-control')) }} {{ Form::hidden('settings[dhl_sender_email][type]', 'text') }}
{{ Form::text('settings[dhl_sender_phone][val]', \App\Models\Setting::getContentBySlug('dhl_sender_phone') ?: '+49 123 456789', array('class'=>'form-control')) }} {{ Form::hidden('settings[dhl_sender_phone][type]', 'text') }}
Papierformat
{{ Form::select('settings[dhl_print_format][val]', [ 'A4' => 'Common Label Laserdruck A4 Normalpapier', '910-300-600' => 'Common Label Thermodruck 103 x 199 mm (910-300-600)', '910-300-610' => 'Common Label Thermodruck 103 x 199 mm (910-300-610)', '910-300-700' => 'Common Label Laserdruck 105 x 205 mm (DIN A5 Normalpapier, 910-300-700)', '910-300-700-oz' => 'Common Label Laserdruck 105 x 205 mm (DIN A5 Normalpapier, 910-300-700) ohne Zusatzetiketten', '910-300-710' => 'Common Label Laserdruck 105 x 208 mm (910-300-710)', '910-300-300' => 'Common Label Laserdruck 105 x 148 mm (DIN A5 Normalpapier, 910-300-300)', '910-300-300-oz' => 'Common Label Laserdruck 105 x 148 mm (DIN A5 Normalpapier, 910-300-300) ohne Zusatzetiketten', '910-300-400' => 'Common Label Thermodruck 103 x 150 mm (910-300-400)', '910-300-410' => 'Common Label Thermodruck 103 x 150 mm (910-300-410)', '100x70mm' => '100x70mm', ], \App\Models\Setting::getContentBySlug('dhl_print_format') ?: 'A4', array('class'=>'form-control custom-select')) }} {{ Form::hidden('settings[dhl_print_format][type]', 'text') }}
{{ Form::select('settings[dhl_retoure_print_format][val]', [ 'A4' => 'Common Label Laserdruck A4 Normalpapier', '910-300-600' => 'Common Label Thermodruck 103 x 199 mm (910-300-600)', '910-300-610' => 'Common Label Thermodruck 103 x 199 mm (910-300-610)', '910-300-700' => 'Common Label Laserdruck 105 x 205 mm (DIN A5 Normalpapier, 910-300-700)', '910-300-700-oz' => 'Common Label Laserdruck 105 x 205 mm (DIN A5 Normalpapier, 910-300-700) ohne Zusatzetiketten', '910-300-710' => 'Common Label Laserdruck 105 x 208 mm (910-300-710)', '910-300-300' => 'Common Label Laserdruck 105 x 148 mm (DIN A5 Normalpapier, 910-300-300)', '910-300-300-oz' => 'Common Label Laserdruck 105 x 148 mm (DIN A5 Normalpapier, 910-300-300) ohne Zusatzetiketten', '910-300-400' => 'Common Label Thermodruck 103 x 150 mm (910-300-400)', '910-300-410' => 'Common Label Thermodruck 103 x 150 mm (910-300-410)', '100x70mm' => '100x70mm', ], \App\Models\Setting::getContentBySlug('dhl_retoure_print_format') ?: 'A4', array('class'=>'form-control custom-select')) }} {{ Form::hidden('settings[dhl_retoure_print_format][type]', 'text') }}
{!! Form::close() !!} @endsection @section('scripts') @endsection