207 lines
No EOL
11 KiB
PHP
Executable file
207 lines
No EOL
11 KiB
PHP
Executable file
|
|
<div class="card mb-2">
|
|
|
|
<h5 class="card-header">
|
|
{{ __('Country') }}
|
|
<label class="custom-control custom-checkbox float-right">
|
|
{!! Form::checkbox('active', 1, $country->active, ['class'=>'custom-control-input']) !!}
|
|
<span class="custom-control-label">{{__('activ')}}</span>
|
|
</label>
|
|
|
|
</h5>
|
|
<div class="card-body">
|
|
<div class="form-row">
|
|
<div class="form-group col-sm-6">
|
|
<label class="form-label" for="de">{{ __('Name DE') }}*</label>
|
|
{{ Form::text('name', $country->de, array('placeholder'=>__('Land DE'), 'class'=>'form-control', 'id'=>'de', 'required')) }}
|
|
</div>
|
|
<div class="form-group col-sm-6">
|
|
<label class="form-label" for="en">{{ __('Name EN') }}</label>
|
|
{{ Form::text('en', $country->en, array('placeholder'=>__('Land EN'), 'class'=>'form-control', 'id'=>'en')) }}
|
|
</div>
|
|
<div class="form-group col-sm-6">
|
|
<label class="form-label" for="es">{{ __('Name ES') }}*</label>
|
|
{{ Form::text('es', $country->es, array('placeholder'=>__('Land ES'), 'class'=>'form-control', 'id'=>'es')) }}
|
|
</div>
|
|
<div class="form-group col-sm-6">
|
|
<label class="form-label" for="fr">{{ __('Name FR') }}</label>
|
|
{{ Form::text('fr', $country->fr, array('placeholder'=>__('Land FR'), 'class'=>'form-control', 'id'=>'fr')) }}
|
|
</div>
|
|
<div class="form-group col-sm-6">
|
|
<label class="form-label" for="it">{{ __('Name IT') }}</label>
|
|
{{ Form::text('it', $country->it, array('placeholder'=>__('Land IT'), 'class'=>'form-control', 'id'=>'it')) }}
|
|
</div>
|
|
<div class="form-group col-sm-6">
|
|
<label class="form-label" for="ru">{{ __('Name RU') }}</label>
|
|
{{ Form::text('ru', $country->ru, array('placeholder'=>__('Land RU'), 'class'=>'form-control', 'id'=>'ru')) }}
|
|
</div>
|
|
</div>
|
|
<hr>
|
|
<div class="form-row">
|
|
<div class="form-group col-sm-6">
|
|
<label class="form-label" for="code">{{ __('Country code') }}</label>
|
|
{{ Form::text('code', $country->code, array('placeholder'=>__('code'), 'class'=>'form-control', 'id'=>'code')) }}
|
|
</div>
|
|
<div class="form-group col-sm-6">
|
|
<label class="form-label" for="phone">{{ __('Phone code') }}</label>
|
|
{{ Form::text('phone', $country->phone, array('placeholder'=>__('phone'), 'class'=>'form-control', 'id'=>'phone')) }}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="card mb-2">
|
|
<h5 class="card-header">
|
|
{{ __('Delivery country') }}
|
|
</h5>
|
|
<div class="card-body">
|
|
<div class="form-group col-sm-12">
|
|
<label class="custom-control custom-checkbox">
|
|
{!! Form::checkbox('eu_country', 1, $country->eu_country, ['class'=>'custom-control-input']) !!}
|
|
<span class="custom-control-label">Reverse Charge Verfahren (Berater aus diesen Ländern (EU-Ausland) können mit ihrer UST-ID steuerfrei kaufen) </span>
|
|
</label>
|
|
<p class="small">Hinweis: Die UST-ID muss erst im Kundenkonto des Beraters (https://my.mivita.care/user/edit) verifiziert werden, im Land des Beraters muss das Reverse Charge Verfahren aktiviert sein. </p>
|
|
</div>
|
|
<div class="form-group col-sm-12">
|
|
<label class="form-label">EU-Land - / Drittland (UST)</label>
|
|
<div class="custom-controls-stacked">
|
|
<label class="custom-control custom-radio">
|
|
{!! Form::radio('supply_country', 0, !$country->supply_country, ['class'=>'custom-control-input']) !!}
|
|
<span class="custom-control-label">EU-Land (innerhalb dieser Länder wird die UST berechnet, Ausnahme Reverse Charge Verfahren )</span>
|
|
</label>
|
|
<label class="custom-control custom-radio">
|
|
{!! Form::radio('supply_country', 1, $country->supply_country, ['class'=>'custom-control-input']) !!}
|
|
<span class="custom-control-label">Drittland (innerhalb dieser Länder wird <strong>keine</strong> UST berechnert, bsp. Schweiz,)</span>
|
|
</label>
|
|
</div>
|
|
<p class="small">Hinweis: Drittland, die Bestellung ist UST-frei solange die Bestellung in ein Drittland geliefert wird. Wird aus einem Drittland in ein EU-Land geliefert, wird die UST berechnet.
|
|
Reverse Charge Verfahren kann nur in einem EU-Land angewendet werden, wenn es auch in das selbe Land gesendet wird. Ausnahme DE -> DE.
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="card mb-2">
|
|
<h5 class="card-header">
|
|
Anzeige und Währung
|
|
</h5>
|
|
<div class="card-body">
|
|
<div class="form-row">
|
|
<div class="form-group col-sm-12">
|
|
<label class="custom-control custom-checkbox">
|
|
{!! Form::checkbox('switch', 1, $country->switch, ['class'=>'custom-control-input']) !!}
|
|
<span class="custom-control-label">Länderwechsel | Land als Auswahl auf den Shopseiten anzeigen</span>
|
|
</label>
|
|
<p class="small">Hinweis: Die hier aktivierten Länder werden auf den Shopseiten zum Länderwächsel angezeigt, allerdings müssen auch die Versandkosten angelegt sein.</p>
|
|
</div>
|
|
|
|
{{--
|
|
<div class="form-group col-sm-12">
|
|
<label class="custom-control custom-checkbox">
|
|
{!! Form::checkbox('translate', 1, $country->translate, ['class'=>'custom-control-input']) !!}
|
|
<span class="custom-control-label">Sprachwechsel | Land als Auswahl auf den Shopseiten und im Salescenter anzeigen</span>
|
|
</label>
|
|
<p class="small">Hinweis: Die hier aktivierten Länder werden auf den Shopseiten und im Salescenter zum Sprachwechsel angezeigt, allerdings muss auch die Übersetzung mit dem Länderkürzel ({{ strtolower($country->code) }}) angelegt sein.</p>
|
|
</div>
|
|
--}}
|
|
|
|
|
|
<div class="form-group col-sm-12">
|
|
<label class="custom-control custom-checkbox">
|
|
{!! Form::checkbox('own_eur', 1, $country->own_eur, ['class'=>'custom-control-input']) !!}
|
|
<span class="custom-control-label">Land hat eigenen EURO Preis</span>
|
|
</label>
|
|
<p class="small">Hinweis: Hier kann bei den Produkten der EURO-Preis überschrieben werden, in diesem Land gelten dann höhere oder niedrigere Preise</p>
|
|
</div>
|
|
<div class="col-12">
|
|
<hr class="mt-0">
|
|
</div>
|
|
<div class="form-group col-sm-12">
|
|
<label class="form-label">Eigene Währung</label>
|
|
<label class="custom-control custom-checkbox">
|
|
{!! Form::checkbox('currency', 1, $country->currency, ['class'=>'custom-control-input', 'id'=>'currency']) !!}
|
|
<span class="custom-control-label">Land hat eigene Währung</span>
|
|
</label>
|
|
<p class="small">Hinweis: Währung wird nur zuzsätzlich zum EUR angezeigt, wenn für das jeweilige Land bestellt wird, bezahlt wird in EUR</p>
|
|
</div>
|
|
|
|
</div>
|
|
<div id="show_currency_calc" style="display: @if($country->currency) block @else none @endif">
|
|
<div class="form-row">
|
|
<div class="col-12">
|
|
<hr class="mt-0" >
|
|
</div>
|
|
<div class="form-group col-sm-6">
|
|
<label class="form-label" for="currency_unit">Abkürzung der Währung</label>
|
|
{{ Form::text('currency_unit', $country->currency_unit, array('placeholder'=>__('CHF'), 'class'=>'form-control', 'id'=>'currency_unit')) }}
|
|
</div>
|
|
{{-- <div class="form-group col-sm-6">
|
|
<label class="form-label">Umrechnungsfaktor zum EUR {{$country->currency_calc}}</label>
|
|
<div class="custom-controls-stacked">
|
|
<label class="custom-control custom-radio">
|
|
{!! Form::radio('currency_calc', 0, !$country->currency_calc, ['class'=>'custom-control-input']) !!}
|
|
<span class="custom-control-label">dient nur als Anzeigungshilfe, jeder Preis wird manuell angegeben</span>
|
|
</label>
|
|
<label class="custom-control custom-radio">
|
|
{!! Form::radio('currency_calc', 1, $country->currency_calc, ['class'=>'custom-control-input']) !!}
|
|
<span class="custom-control-label">berechnet den Preis automatisch</span>
|
|
</label>
|
|
</div>
|
|
<p class="small">Hinweis: Ist für die Einstellungen bei den Produktenpreisen.</p>
|
|
</div>--}}
|
|
<div class="form-group col-sm-6">
|
|
<label class="form-label" for="currency_faktor">Faktor Währungen zum Euro (z.B. 1 Euro zu 1,07 CHF)</label>
|
|
{{ Form::text('currency_faktor', formatNumber($country->currency_faktor, 4), array('placeholder'=>__('1,07'), 'class'=>'form-control', 'id'=>'currency_faktor')) }}
|
|
</div>
|
|
<p class="small">Hinweis: Der Preis berechnet sich automatisch nach dem Faktor.</p>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="card mb-2">
|
|
<h5 class="card-header">
|
|
{{__('register.required_fields')}}
|
|
</h5>
|
|
<div class="card-body">
|
|
<div class="form-row">
|
|
<div class="form-group col-sm-3">
|
|
<label class="custom-control custom-checkbox">
|
|
{!! Form::checkbox('attr[tax_number]', 1, $country->getAttrByKey('tax_number'), ['class'=>'custom-control-input']) !!}
|
|
<span class="custom-control-label">{{__('SteuerNr.')}}</span>
|
|
</label>
|
|
</div>
|
|
<div class="form-group col-sm-3">
|
|
<label class="custom-control custom-checkbox">
|
|
{!! Form::checkbox('attr[tax_id_number]', 1, $country->getAttrByKey('tax_id_number'), ['class'=>'custom-control-input']) !!}
|
|
<span class="custom-control-label">{{__('UST-ID')}}</span>
|
|
</label>
|
|
</div>
|
|
<div class="form-group col-sm-3">
|
|
<label class="custom-control custom-checkbox">
|
|
{!! Form::checkbox('attr[taxable_sales]', 1, $country->getAttrByKey('taxable_sales'), ['class'=>'custom-control-input']) !!}
|
|
<span class="custom-control-label">{{__('Umsatzsteuerpflichtig')}}</span>
|
|
</label>
|
|
</div>
|
|
|
|
</div>
|
|
<p class="small">Hinweis: Bei der Registierung eines Beraters gelten für dieses Land diese Pflichtfelder</p>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<script type="application/javascript">
|
|
$( document ).ready(function() {
|
|
|
|
$('input#currency').on('change', function () {
|
|
if($(this).prop('checked')){
|
|
$('input#show_currency_calc').prop('checked', true);
|
|
$('#show_currency_calc').show('slow');
|
|
}else{
|
|
$('input#show_currency_calc').prop('checked', false);
|
|
$('#show_currency_calc').hide('slow');
|
|
}
|
|
});
|
|
});
|
|
</script> |