199 lines
7.9 KiB
PHP
199 lines
7.9 KiB
PHP
<div class="modal-content">
|
||
<div class="modal-header">
|
||
<h5 class="modal-title">
|
||
{{__('Business')}} {{__('Berater')}}<br>
|
||
@if(isset($user))
|
||
<span class="font-weight-light">{{ $user->account->first_name }} {{ $user->account->last_name }} <a class="font-weight-normal" href="mailto:{{ $user->email }}">{{ $user->email }}</a></span>
|
||
@endif
|
||
</h5>
|
||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">×</button>
|
||
</div>
|
||
<div class="modal-body modal-body-overflow">
|
||
<table class="table user-view-table m-0">
|
||
<tbody>
|
||
{{-- Status & Business --}}
|
||
<tr>
|
||
<td>{{ __('team.account') }}:</td>
|
||
<td>
|
||
@if($user->isActive())
|
||
<span class="badge badge-outline-success">{{ __('team.active') }}</span>
|
||
@else
|
||
<span class="badge badge-outline-danger">{{ __('team.not_active') }}</span>
|
||
@endif
|
||
@if($user->payment_account)
|
||
{{ __('team.until') }}: {{ $user->getPaymentAccountDateFormat(false) }}
|
||
@endif
|
||
</td>
|
||
</tr>
|
||
@if($user->payment_shop)
|
||
<tr>
|
||
<td>{{ __('team.shop') }}:</td>
|
||
<td>{{ __('team.until') }}: {{ $user->getPaymentShopDateFormat(false) }}</td>
|
||
</tr>
|
||
@endif
|
||
@if($user->account->m_account)
|
||
<tr>
|
||
<td>{{ __('team.ID') }}:</td>
|
||
<td>{{ $user->account->m_account }}</td>
|
||
</tr>
|
||
@endif
|
||
@if($user->user_level)
|
||
<tr>
|
||
<td>{{ __('team.career_level') }}:</td>
|
||
<td>{{ \App\Services\TranslationHelper::transUserLevelName($user->user_level->name) }}</td>
|
||
</tr>
|
||
@endif
|
||
@if($user->user_sponsor && $user->user_sponsor->account)
|
||
<tr>
|
||
<td>{{ __('team.sponsor') }}:</td>
|
||
<td>{{ $user->user_sponsor->account->first_name }} {{ $user->user_sponsor->account->last_name }} | {{ $user->user_sponsor->email }}</td>
|
||
</tr>
|
||
@endif
|
||
@if($user->last_login)
|
||
<tr>
|
||
<td>{{ __('team.last_login') }}:</td>
|
||
<td>{{ \Carbon\Carbon::parse($user->last_login)->format(\Util::formatDateTimeDB()) }}</td>
|
||
</tr>
|
||
@endif
|
||
<tr>
|
||
<td>{{ __('team.registered_at') }}:</td>
|
||
<td>{{ $user->created_at ? $user->created_at->format(\Util::formatDateDB()) : '-' }}</td>
|
||
</tr>
|
||
<tr><td colspan="2"></td></tr>
|
||
{{-- Stammdaten --}}
|
||
<tr>
|
||
<td>{{ __('Company name') }}:</td>
|
||
<td> {{ $user->account->company }} </td>
|
||
</tr>
|
||
<tr>
|
||
<td>{{ __('Salutation') }}:</td>
|
||
<td>{{ \App\Services\HTMLHelper::getSalutationLang($user->account->salutation) }}</td>
|
||
</tr>
|
||
<tr>
|
||
<td>{{ __('First name') }}:</td>
|
||
<td>{{ $user->account->first_name }}</td>
|
||
</tr>
|
||
<tr>
|
||
<td>{{ __('Last name') }}:</td>
|
||
<td>{{ $user->account->last_name }}</td>
|
||
</tr>
|
||
<tr>
|
||
<td>{{ __('Street') }} / {{ __('House number') }}:</td>
|
||
<td>{{ $user->account->address }}</td>
|
||
</tr>
|
||
<tr>
|
||
<td>{{ __('Flat Building optional') }}:</td>
|
||
<td>{{ $user->account->address_2 }}</td>
|
||
</tr>
|
||
<tr>
|
||
<td>{{ __('Postcode') }}:</td>
|
||
<td>{{ $user->account->zipcode }}</td>
|
||
</tr>
|
||
<tr>
|
||
<td>{{ __('City') }}:</td>
|
||
<td>{{ $user->account->city }}</td>
|
||
</tr>
|
||
<tr>
|
||
<td>{{ __('Country') }}:</td>
|
||
<td>{{ $user->account->country->getLocated() }}</td>
|
||
</tr>
|
||
<tr>
|
||
<td>{{ __('account.preferred_language') }}:</td>
|
||
<td>{{ \App\Models\UserAccount::getAvailableLanguages()[$user->account->getLocale()] ?? $user->account->getLocale() }}</td>
|
||
</tr>
|
||
<tr>
|
||
<td>{{ __('Date of birth') }}:</td>
|
||
<td>{{ $user->account->birthday }}</td>
|
||
</tr>
|
||
<tr>
|
||
<td>{{ __('Phone') }}:</td>
|
||
<td>{{ $user->account->getPhoneFull() }}</td>
|
||
</tr>
|
||
<tr>
|
||
<td>{{ __('Mobile Phone') }}:</td>
|
||
<td>{{ $user->account->getMobilFull() }}</td>
|
||
</tr>
|
||
<tr>
|
||
<td>{{ __('E-Mail') }}:</td>
|
||
<td>{{ $user->email }}</td>
|
||
</tr>
|
||
@if($user->account->tax_number)
|
||
<tr>
|
||
<td>{{ __('account.tax_number') }}:</td>
|
||
<td>{{ $user->account->tax_number }}</td>
|
||
</tr>
|
||
@endif
|
||
@if($user->account->tax_identification_number)
|
||
<tr>
|
||
<td>{{ __('account.VAT_ID_number') }}:</td>
|
||
<td>{{ $user->account->tax_identification_number }}</td>
|
||
</tr>
|
||
@endif
|
||
<tr>
|
||
</tr>
|
||
@if($user->account->same_as_billing)
|
||
<tr>
|
||
<td colspan="2">{{__('email.checkout_mail_same_address')}}</td>
|
||
</tr>
|
||
@else
|
||
<tr>
|
||
<td colspan="2">{{ __('account.delivery_address') }}</td>
|
||
</tr>
|
||
<tr>
|
||
<td>{{ __('Company name') }}:</td>
|
||
<td> {{ $user->account->shipping_company }} </td>
|
||
</tr>
|
||
<tr>
|
||
<td>{{ __('Salutation') }}:</td>
|
||
<td>{{ \App\Services\HTMLHelper::getSalutationLang($user->account->shipping_salutation) }}</td>
|
||
</tr>
|
||
<tr>
|
||
<td>{{ __('First name') }}:</td>
|
||
<td>{{ $user->account->shipping_firstname }}</td>
|
||
</tr>
|
||
<tr>
|
||
<td>{{ __('Last name') }}:</td>
|
||
<td>{{ $user->account->shipping_lastname }}</td>
|
||
</tr>
|
||
<tr>
|
||
<td>{{ __('Street') }} / {{ __('House number') }}:</td>
|
||
<td>{{ $user->account->shipping_address }}</td>
|
||
</tr>
|
||
<tr>
|
||
<td>{{ __('Flat Building optional') }}:</td>
|
||
<td>{{ $user->account->shipping_address_2 }}</td>
|
||
</tr>
|
||
<tr>
|
||
<td>{{ __('Postcode') }}:</td>
|
||
<td>{{ $user->account->shipping_zipcode }}</td>
|
||
</tr>
|
||
<tr>
|
||
<td>{{ __('City') }}:</td>
|
||
<td>{{ $user->account->shipping_city }}</td>
|
||
</tr>
|
||
<tr>
|
||
<td>{{ __('Country') }}:</td>
|
||
<td>{{ $user->account->shipping_country->getLocated() }}</td>
|
||
</tr>
|
||
<tr>
|
||
<td>{{ __('Phone') }}:</td>
|
||
<td>{{ $user->account->getShippingPhoneFull() }}</td>
|
||
</tr>
|
||
|
||
|
||
<tr>
|
||
@endif
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
<div class="modal-footer">
|
||
<button type="button" class="btn btn-default" data-dismiss="modal">{{ __('close') }}</button>
|
||
</div>
|
||
<script>
|
||
$( document ).ready(function() {
|
||
|
||
});
|
||
</script>
|
||
</div>
|
||
|
||
|