Updates to 03-2025

This commit is contained in:
Kevin Adametz 2025-04-01 10:39:21 +02:00
parent 6167273a48
commit 9b54eb0512
348 changed files with 34535 additions and 5774 deletions

View file

@ -62,8 +62,8 @@
{{ Form::text('address_2', $user->account->address_2, array('placeholder'=>__('Wohnung / Gebäude (optional)'), 'class'=>'form-control', 'id'=>'address_2', 'tabindex' => 6)) }}
</div>
<div class="form-group col-md-5">
<label for="birthday" class="form-label">{{ __('Geburtsdatum') }}*</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')) }}
<label for="birthday" class="form-label">{{ __('Geburtsdatum') }}</label>
{{ Form::text('birthday', $user->account->birthday, array('placeholder'=>Util::formatDate(), 'data-date-format'=>Util::formatDate(), 'data-start_view'=>2, 'required'=>false, 'class'=>'form-control datepicker-birthday')) }}
</div>
</div>
<div class="form-row">
@ -170,6 +170,69 @@
</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">{{ __('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">
<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'))) }}
</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">{{ __('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'), ($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">{{ __('account.reverse_charge_procedure') }}</span><br>
<em>{{ __('account.reverse_charge_copy_1') }}
<strong>{{ __('account.reverse_charge_note_1') }}</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> &nbsp;{{ __('account.reverse_charge_action_1') }}</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">{{ __('account.reverse_charge_action_2') }}</button>
@endif
@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>
</div>
<div class="card mb-4">
<div class="card-body">
<div class="form-row">