08 2024
This commit is contained in:
parent
04d677d37a
commit
bfa3bb1df4
1191 changed files with 637397 additions and 10619 deletions
|
|
@ -2,11 +2,11 @@
|
|||
<h5 class="card-header">
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-sm-6">
|
||||
Rechnungsadresse
|
||||
{{ __('account.invoice_address') }}
|
||||
</div>
|
||||
<div class="col-xs-12 col-sm-6">
|
||||
<span class="text-tiny float-right">* {{trans('register.required_fields')}}</span>
|
||||
<span class="d-none d-lg-inline">Lieferadresse</span>
|
||||
<span class="text-tiny float-right">* {{__('register.required_fields')}}</span>
|
||||
<span class="d-none d-lg-inline">{{ __('account.delivery_address') }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</h5>
|
||||
|
|
@ -17,7 +17,7 @@
|
|||
<div class="col-12 col-lg-6">
|
||||
<div class="form-row">
|
||||
<div class="form-group col-md-12">
|
||||
<label for="company" class="form-label">{{ __('Company name') }} (optional)</label>
|
||||
<label for="company" class="form-label">{{ __('Company name') }} ({{__('optional')}})</label>
|
||||
{{ Form::text('company', $user->account->company, array('placeholder'=>__('Company name'), 'class'=>'form-control', 'id'=>'company', 'tabindex' => 1)) }}
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -69,8 +69,8 @@
|
|||
</div>
|
||||
<div class="form-row">
|
||||
<div class="form-group col-md-12 {{ $errors->has('address_2') ? 'has-error' : '' }}">
|
||||
<label class="form-label" for="address_2">{{ __('Wohnung / Gebäude (optional)') }}</label>
|
||||
{{ Form::text('address_2', $user->account->address_2, array('placeholder'=>__('Wohnung / Gebäude (optional)'), 'class'=>'form-control', 'id'=>'address_2', 'tabindex' => 6)) }}
|
||||
<label class="form-label" for="address_2">{{ __('Flat Building optional') }}</label>
|
||||
{{ Form::text('address_2', $user->account->address_2, array('placeholder'=>__('Flat Building optional'), 'class'=>'form-control', 'id'=>'address_2', 'tabindex' => 6)) }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-row">
|
||||
|
|
@ -106,7 +106,7 @@
|
|||
@endif
|
||||
</div>
|
||||
<div class="form-group col-md-6">
|
||||
<label for="birthday" class="form-label">{{ __('Geburtsdatum') }}*</label>
|
||||
<label class="form-label">{{ __('Date of birth') }}*</label>
|
||||
{{ Form::text('birthday', $user->account->birthday, array('placeholder'=>Util::formatDate(), 'data-date-format'=>Util::formatDate(), 'data-start_view'=>2, 'required'=>true, 'class'=>'form-control datepicker-birthday')) }}
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -135,9 +135,9 @@
|
|||
</div>
|
||||
<div class="form-group col-md-12">
|
||||
@if($errors->has('phone') || $errors->has('mobil'))
|
||||
<div class="alert badge-danger block p-2">Fehler: Bitte {{ __('Phone') }} und/oder {{ __('Mobile Phone') }} angeben!*</div>
|
||||
<div class="alert badge-danger block p-2">{{ __('account.phone_need_error') }}</div>
|
||||
@else
|
||||
<div class="badge badge-default">Hinweis: Bitte {{ __('Phone') }} und/oder {{ __('Mobile Phone') }} angeben!*</div>
|
||||
<div class="badge badge-default">{{ __('account.phone_need_note') }}</div>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
|
|
@ -146,12 +146,12 @@
|
|||
<div class="col-12 col-lg-6">
|
||||
<div class="d-md-block d-lg-none">
|
||||
<hr>
|
||||
<h5 class="mt-4">Lieferadresse</h5>
|
||||
<h5 class="mt-4">{{ __('account.delivery_address') }}</h5>
|
||||
</div>
|
||||
<div id="show_shipping_address" style="@if($user->account->same_as_billing) display:none @endif">
|
||||
<div class="form-row">
|
||||
<div class="form-group col-md-12">
|
||||
<label for="shipping_company" class="form-label">{{ __('Company name') }} (optional)</label>
|
||||
<label for="shipping_company" class="form-label">{{ __('Company name') }} ({{__('optional')}})</label>
|
||||
{{ Form::text('shipping_company', $user->account->shipping_company, array('placeholder'=>__('Company name'), 'class'=>'form-control', 'id'=>'shipping_company', 'tabindex' => 16)) }}
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -202,8 +202,8 @@
|
|||
</div>
|
||||
<div class="form-row">
|
||||
<div class="form-group col-md-12 {{ $errors->has('shipping_address_2') ? 'has-error' : '' }}">
|
||||
<label class="form-label" for="shipping_address_2">{{ __('Wohnung / Gebäude (optional)') }}</label>
|
||||
{{ Form::text('shipping_address_2', $user->account->shipping_address_2, array('placeholder'=>__('Wohnung / Gebäude (optional)'), 'class'=>'form-control', 'id'=>'shipping_address_2', 'tabindex' => 21)) }}
|
||||
<label class="form-label" for="shipping_address_2">{{ __('Flat Building optional') }}</label>
|
||||
{{ Form::text('shipping_address_2', $user->account->shipping_address_2, array('placeholder'=>__('Flat Building optional'), 'class'=>'form-control', 'id'=>'shipping_address_2', 'tabindex' => 21)) }}
|
||||
@if ($errors->has('shipping_address_2'))
|
||||
<span class="help-block">
|
||||
<strong>{{ $errors->first('shipping_address_2') }}</strong>
|
||||
|
|
@ -262,7 +262,7 @@
|
|||
<div class="form-group">
|
||||
<label class="custom-control custom-checkbox m-0">
|
||||
<input type="checkbox" class="custom-control-input" name="same_as_billing" id="same_as_billing" @if($user->account->same_as_billing) checked="checked" @endif>
|
||||
<span class="custom-control-label">{{__('Versand an die gleiche Adresse')}}</span>
|
||||
<span class="custom-control-label">{{__('Shipping to the same address')}}</span>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -285,9 +285,9 @@
|
|||
@if(count($user->user_update_email) > 0)
|
||||
<p class="badge badge-primary" style=" color:#fff;">{{ $user->user_update_email->first()->email }} {{__('waiting for activation since')}} | {{ $user->user_update_email->first()->created_at->format('d.m.Y H:i') }}</p><br>
|
||||
@endif
|
||||
<a href="{{ route('admin_lead_change_mail', [$user->id]) }}" class="btn btn-default btn-sm"> {{ __('Contact') }} {{__('Change E-Mail')}}</a>
|
||||
<a href="{{ route('admin_lead_change_mail', [$user->id]) }}" class="btn btn-default btn-sm"> {{ __('Contact') }} {{__('register.change_email')}}</a>
|
||||
@else
|
||||
<a href="{{ route('user_update_email', [$user->id]) }}" class="btn btn-default btn-sm">{{__('Change E-Mail')}}</a>
|
||||
<a href="{{ route('user_update_email', [$user->id]) }}" class="btn btn-default btn-sm">{{__('register.change_email')}}</a>
|
||||
@endif
|
||||
@else
|
||||
<div class="form-row">
|
||||
|
|
@ -305,102 +305,132 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card mb-4">
|
||||
<div class="card-body">
|
||||
<div class="form-row">
|
||||
<div class="form-group col-md-12">
|
||||
<label class="form-label" for="taxable_sales">{{ __('Umsatzsteuerpflicht') }} @if($user->account->getCountryAttrAs('taxable_sales'))* @endif</label>
|
||||
<select class="selectpicker" name="taxable_sales" id="taxable_sales" data-style="btn-light" @if($user->account->getCountryAttrAs('taxable_sales')) required @endif>
|
||||
{!! HTMLHelper::getTaxSaleOptions($user->account->taxable_sales) !!}
|
||||
</select>
|
||||
<p class="badge">Wähle Kleinunternehmer, wenn Du nicht mehr als 22.000 EUR Umsatz pro Jahr mit Deinem Gewerbe erwirtschaftest.</p>
|
||||
</div>
|
||||
|
||||
<div class="form-group col-md-6">
|
||||
<label class="form-label" for="tax_number">{{ __('Steuernummer') }} @if($user->account->getCountryAttrAs('tax_number'))* @endif</label>
|
||||
{{ Form::text('tax_number', $user->account->tax_number, array('placeholder'=>__('Steuernummer'), 'class'=>'form-control', 'id'=>'tax_number', $user->account->getCountryAttrAs('tax_number','required'))) }}
|
||||
</div>
|
||||
{{-- !isset($step) && --}}
|
||||
@if($user->account->country_id && $user->account->country->eu_country)
|
||||
<div class="col-sm-12">
|
||||
<hr>
|
||||
</div>
|
||||
<div class="form-group col-md-6 {{ $errors->has('tax_identification_number') ? 'has-error' : '' }}">
|
||||
<label class="form-label" for="tax_identification_number">{{ __('USt-ID Nummer') }} @if($user->account->getCountryAttrAs('tax_id_number'))* @endif</label>
|
||||
|
||||
{{ Form::text('tax_identification_number', $user->account-> tax_identification_number, array('placeholder'=>__('USt-ID Nummer'), 'class'=>'form-control', 'id'=>'tax_identification_number', $user->account->getCountryAttrAs('tax_id_number','required'), ($user->account->reverse_charge_valid ? 'readonly' : ''))) }}
|
||||
@if ($errors->has('tax_identification_number'))
|
||||
<span class="help-block">
|
||||
<strong>{{ $errors->first('tax_identification_number') }}</strong>
|
||||
</span>
|
||||
@endif
|
||||
</div>
|
||||
<div class="form-group col-sm-12 {{ $errors->has('reverse_charge') ? 'has-error' : '' }}">
|
||||
<label class="custom-control custom-checkbox">
|
||||
{!! Form::checkbox('reverse_charge', 1, $user->account->reverse_charge, ['class'=>'custom-control-input']) !!}
|
||||
<span class="custom-control-label">Reverse Charge Verfahren</span><br>
|
||||
<em>Umkehrung der Steuerschuldnerschaft oder auch Abzugsverfahren. In diesem Spezialfall muss der Leistungsempfänger (Berater) und nicht der leistende Unternehmer (mivita) die Umsatzsteuer entrichten.
|
||||
<strong>Bei der Aktivierung wird die USt-ID benötigt und validiert.</strong></em>
|
||||
</label>
|
||||
@if($user->account->reverse_charge_valid)
|
||||
<div class="badge badge-secondary">Aktiv seit: {{ $user->account->getReverseChargeValidFormat() }}</div>
|
||||
<button type="submit" class="btn btn-xs btn-danger" name="reverse_charge_delete" value="1"><i class="fa fa-trash"></i> {{ __('Reverse Charge Verfahren und UST-ID löschen') }}</button>
|
||||
|
||||
@endif
|
||||
@if ($errors->has('reverse_charge'))
|
||||
<span class="help-block">
|
||||
<strong>{{ $errors->first('reverse_charge') }}</strong>
|
||||
</span>
|
||||
@endif
|
||||
</div>
|
||||
@if(!$user->account->reverse_charge_valid)
|
||||
<button type="submit" class="btn btn-sm btn-primary" name="reverse_charge_validate" value="1">{{ __('UST-ID validieren und Reverse Charge Verfahren aktivieren') }}</button>
|
||||
@endif
|
||||
@else
|
||||
<div class="form-group col-md-6">
|
||||
<label class="form-label" for="tax_identification_number">{{ __('USt-ID Nummer') }} @if($user->account->getCountryAttrAs('tax_id_number'))* @endif</label>
|
||||
{{ Form::text('tax_identification_number', $user->account-> tax_identification_number, array('placeholder'=>__('USt-ID Nummer'), 'class'=>'form-control', 'id'=>'tax_identification_number', $user->account->getCountryAttrAs('tax_id_number','required'))) }}
|
||||
</div>
|
||||
|
||||
@endif
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card mb-4">
|
||||
<h5 class="card-header">
|
||||
Bankdaten <span class=" text-muted small">(Wird für die Auszahlungen von Provisionen benötigt)</span>
|
||||
{{ __('account.bank_data') }} <span class=" text-muted small">({{ __('account.required_for_commission_payments') }})</span>
|
||||
</h5>
|
||||
<div class="card-body">
|
||||
<div class="form-row">
|
||||
<div class="form-group col-md-12">
|
||||
<label class="form-label" for="bank_owner">{{ __('Kontoinhaber') }}</label>
|
||||
{{ Form::text('bank_owner', $user->account->bank_owner, array('placeholder'=>__('Vorname Nachname'), 'class'=>'form-control', 'id'=>'bank_owner')) }}
|
||||
<label class="form-label" for="bank_owner">{{ __('account.account_holder') }}</label>
|
||||
{{ Form::text('bank_owner', $user->account->bank_owner, array('placeholder'=>__('account.firstname_lastname'), 'class'=>'form-control', 'id'=>'bank_owner')) }}
|
||||
</div>
|
||||
<div class="form-group col-md-6">
|
||||
<label class="form-label" for="bank_iban">{{ __('IBAN') }}</label>
|
||||
{{ Form::text('bank_iban', $user->account->bank_iban, array('placeholder'=>__('IBAN'), 'class'=>'form-control', 'id'=>'bank_iban')) }}
|
||||
<label class="form-label" for="bank_iban">{{ __('account.IBAN') }}</label>
|
||||
{{ Form::text('bank_iban', $user->account->bank_iban, array('placeholder'=>__('account.IBAN'), 'class'=>'form-control', 'id'=>'bank_iban')) }}
|
||||
</div>
|
||||
<div class="form-group col-md-6">
|
||||
<label class="form-label" for="bank_bic">{{ __('BIC') }}</label>
|
||||
{{ Form::text('bank_bic', $user->account->bank_bic, array('placeholder'=>__('BIC'), 'class'=>'form-control', 'id'=>'bank_bic')) }}
|
||||
<label class="form-label" for="bank_bic">{{ __('account.BIC') }}</label>
|
||||
{{ Form::text('bank_bic', $user->account->bank_bic, array('placeholder'=>__('account.BIC'), 'class'=>'form-control', 'id'=>'bank_bic')) }}
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="card mb-4">
|
||||
<h5 class="card-header">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
{{ __('account.vat_data') }}
|
||||
</div>
|
||||
</div>
|
||||
</h5>
|
||||
<div class="card-body" id="user-vat-validation">
|
||||
<div class="form-row">
|
||||
<div class="form-group col-md-12">
|
||||
<label class="form-label" for="taxable_sales">{{ __('account.VAT_liability') }} @if($user->account->getCountryAttrAs('taxable_sales'))* @endif</label>
|
||||
<select class="selectpicker" name="taxable_sales" id="taxable_sales" data-style="btn-light" @if($user->account->getCountryAttrAs('taxable_sales')) required @endif>
|
||||
{!! HTMLHelper::getTaxSaleOptions($user->account->taxable_sales) !!}
|
||||
</select>
|
||||
<p class="badge">{{ __('account.VAT_copy_1') }}</p>
|
||||
</div>
|
||||
|
||||
<div class="form-group col-md-6 {{ $errors->has('tax_number') ? 'has-error' : '' }}">
|
||||
<label class="form-label" for="tax_number">{{ __('account.tax_number') }} @if($user->account->getCountryAttrAs('tax_number'))* @endif</label>
|
||||
{{ Form::text('tax_number', $user->account->tax_number, array('placeholder'=>__('account.tax_number'), 'class'=>'form-control', 'id'=>'tax_number', $user->account->getCountryAttrAs('tax_number','required'))) }}
|
||||
@if ($errors->has('tax_number'))
|
||||
<span class="help-block">
|
||||
<strong>{{ $errors->first('tax_number') }}</strong>
|
||||
</span>
|
||||
@endif
|
||||
</div>
|
||||
@if($user->account->country_id && $user->account->country->eu_country)
|
||||
<div class="col-sm-12">
|
||||
<hr>
|
||||
</div>
|
||||
<div class="form-group col-md-6 {{ $errors->has('tax_identification_number') ? 'has-error' : '' }}">
|
||||
<label class="form-label" for="tax_identification_number">{{ __('account.VAT_ID_number') }} @if($user->account->getCountryAttrAs('tax_id_number'))* @endif</label>
|
||||
{{ Form::text('tax_identification_number', $user->account-> tax_identification_number, array('placeholder'=>__('account.VAT_ID_number'), 'class'=>'form-control', 'id'=>'tax_identification_number', $user->account->getCountryAttrAs('tax_id_number','required'), 'readonly')) }}
|
||||
@if ($errors->has('tax_identification_number'))
|
||||
<span class="help-block">
|
||||
<strong>{{ $errors->first('tax_identification_number') }}</strong>
|
||||
</span>
|
||||
@endif
|
||||
@if($user->account->reverse_charge_valid)
|
||||
<div class="mt-3">
|
||||
<div class="badge badge-primary">Aktiv seit: {{ $user->account->getReverseChargeValidFormat() }}</div>
|
||||
<button type="submit" class="btn btn-xs btn-default" name="action" value="reverse_charge_delete"><i class="fa fa-trash"></i> {{ __('account.reverse_charge_action_1') }}</button>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
{{-- ($user->account->reverse_charge_valid ? 'readonly' : '') --}}
|
||||
@if(!$user->account->reverse_charge_valid)
|
||||
<button type="button" class="btn btn-primary btn-sm mt-3" data-toggle="modal" data-target="#modal-user-vat-validation">
|
||||
<span class="ion ion-md-add"></span> {{ __('account.reverse_charge_action_2') }}
|
||||
</button>
|
||||
@endif
|
||||
</div>
|
||||
@else
|
||||
<div class="form-group col-md-6">
|
||||
<label class="form-label" for="tax_identification_number">{{ __('account.VAT_ID_number') }} @if($user->account->getCountryAttrAs('tax_id_number'))* @endif</label>
|
||||
{{ Form::text('tax_identification_number', $user->account-> tax_identification_number, array('placeholder'=>__('account.VAT_ID_number'), 'class'=>'form-control', 'id'=>'tax_identification_number', $user->account->getCountryAttrAs('tax_id_number','required'))) }}
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="form-group col-md-12">
|
||||
|
||||
@if($errors->has('tax_identification_number_validated'))
|
||||
<div class="alert badge-danger block p-2">
|
||||
<ul>
|
||||
@foreach ($errors->all() as $error)
|
||||
<li>{{ $error }}</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
@else
|
||||
@if(!$user->account-> tax_identification_number && !$user->account->tax_number)
|
||||
<div class="badge badge-default">{{ __('account.info_vat_numbers') }}</div>
|
||||
@endif
|
||||
{{-- @if($errors->has('tax_number') || $errors->has('tax_identification_number'))
|
||||
<div class="alert badge-danger block p-2">Fehler: Bitte {{ __('Steuernummer') }} und/oder {{ __('USt-ID Nummer') }} angeben!*</div>
|
||||
@else
|
||||
<div class="badge badge-default">Hinweis: Bitte {{ __('Steuernummer') }} und/oder {{ __('USt-ID Nummer') }} angeben!*</div>
|
||||
@endif
|
||||
--}}
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<div class="form-group col-md-12">
|
||||
<hr>
|
||||
<button type="submit" class=" float-right btn btn-sm btn-submit">{{ __('save') }}</button>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<script type="application/javascript">
|
||||
|
||||
$( document ).ready(function() {
|
||||
// Shipping Address show|hide
|
||||
$("#same_as_billing").on("change", function () {
|
||||
$('#show_shipping_address').slideToggle(200, function () {
|
||||
|
||||
// scroll down to shipping area.
|
||||
if ($('#show_shipping_address').is(":visible")) {
|
||||
_scrollTo('#show_shipping_address', 20);
|
||||
|
|
@ -409,22 +439,21 @@
|
|||
});
|
||||
|
||||
$.extend( $.validator.messages, {
|
||||
required: "Dieses Feld ist ein Pflichtfeld.",
|
||||
maxlength: $.validator.format( "Geben Sie bitte maximal {0} Zeichen ein." ),
|
||||
minlength: $.validator.format( "Geben Sie bitte mindestens {0} Zeichen ein." ),
|
||||
rangelength: $.validator.format( "Geben Sie bitte mindestens {0} und maximal {1} Zeichen ein." ),
|
||||
email: "Geben Sie bitte eine gültige E-Mail Adresse ein.",
|
||||
url: "Geben Sie bitte eine gültige URL ein.",
|
||||
date: "Bitte geben Sie ein gültiges Datum ein.",
|
||||
number: "Geben Sie bitte eine Nummer ein.",
|
||||
digits: "Geben Sie bitte nur Ziffern ein.",
|
||||
equalTo: "Bitte denselben Wert wiederholen.",
|
||||
range: $.validator.format( "Geben Sie bitte einen Wert zwischen {0} und {1} ein." ),
|
||||
max: $.validator.format( "Geben Sie bitte einen Wert kleiner oder gleich {0} ein." ),
|
||||
min: $.validator.format( "Geben Sie bitte einen Wert größer oder gleich {0} ein." ),
|
||||
creditcard: "Geben Sie bitte eine gültige Kreditkarten-Nummer ein."
|
||||
required: "{{__('account.validator_required')}}",
|
||||
maxlength: $.validator.format( "{{__('account.validator_maxlength')}}" ),
|
||||
minlength: $.validator.format( "{{__('account.validator_minlength')}}" ),
|
||||
rangelength: $.validator.format( "{{__('account.validator_rangelength')}}" ),
|
||||
email: "{{__('account.validator_email')}}",
|
||||
url: "{{__('account.validator_url')}}",
|
||||
date: "{{__('account.validator_date')}}",
|
||||
number: "{{__('account.validator_number')}}",
|
||||
digits: "{{__('account.validator_digits')}}",
|
||||
equalTo: "{{__('account.validator_equalTo')}}",
|
||||
range: $.validator.format( "{{__('account.validator_range')}}" ),
|
||||
max: $.validator.format( "{{__('account.validator_max')}}" ),
|
||||
min: $.validator.format( "{{__('account.validator_min')}}" ),
|
||||
creditcard: "{{__('account.validator_creditcard')}}"
|
||||
});
|
||||
|
||||
// Set up validator
|
||||
$('#lead-form-validation').validate({
|
||||
rules: {
|
||||
|
|
@ -478,7 +507,7 @@
|
|||
required: "{{__('This field is required.')}}",
|
||||
},
|
||||
salutation : {
|
||||
required: "{{__('Bitte angeben.')}}",
|
||||
required: "{{__('please specify')}}",
|
||||
},
|
||||
first_name : {
|
||||
required: "{{__('This field is required.')}}",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue