162 lines
6.2 KiB
PHP
162 lines
6.2 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">
|
||
@if(isset($TreeCalcBot))
|
||
|
||
<table class="table user-view-table m-0">
|
||
<tbody>
|
||
<tr>
|
||
<td>Account ID:</td>
|
||
<td>{{ $user->account->m_account }}</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Level:</td>
|
||
<td>
|
||
@if($user->user_level)
|
||
{{ $user->user_level->name }}
|
||
@else
|
||
-
|
||
@endif
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Kundenprovision:</td>
|
||
<td>
|
||
{{ $TreeCalcBot->user->margin }} %
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Shop Provision:</td>
|
||
<td>
|
||
{{ $TreeCalcBot->user->margin_shop }} %
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Account:</td>
|
||
<td>
|
||
@if($user->isActiveAccount())
|
||
<span class="badge badge-outline-success">aktiv</span>
|
||
@else
|
||
<span class="badge badge-outline-danger">nicht aktiv</span>
|
||
@endif
|
||
|
||
@if($user->payment_account)
|
||
bis: {{ $user->getPaymentAccountDateFormat(false) }}
|
||
@endif
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Sponsor:</td>
|
||
<td>@if($user->user_sponsor)
|
||
@if($user->user_sponsor->account)
|
||
{{ $user->user_sponsor->account->first_name }} {{ $user->user_sponsor->account->last_name }} |
|
||
@endif
|
||
{{ $user->user_sponsor->email }} |
|
||
@if($user->user_sponsor->account)
|
||
{{ $user->user_sponsor->account->m_account }} |
|
||
@endif
|
||
{{-- <a href="{{ route('admin_business_user_detail', [$user->user_sponsor->id]) }}" class="btn icon-btn btn-xs btn-secondary"><span class="far fa-calculator"></span></a> --}}
|
||
|
||
@else
|
||
-
|
||
@endif
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>Datum:</td>
|
||
<td><strong>{{ HTMLHelper::getMonth($data['month']) }} {{ $data['year'] }}</strong></td>
|
||
</tr>
|
||
<tr>
|
||
<td>Points:</td>
|
||
<td>
|
||
<strong>{{ $TreeCalcBot->user->sales_volume_points_sum }}</strong>
|
||
| Berater: {{ $TreeCalcBot->user->sales_volume_points }} | Shop: {{ $TreeCalcBot->user->sales_volume_points_shop }}
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Umsatz:</td>
|
||
<td>
|
||
<strong>{{ $TreeCalcBot->user->sales_volume_total_sum }} €</strong>
|
||
| Berater: {{ $TreeCalcBot->user->sales_volume_total }} € | Shop: {{ $TreeCalcBot->user->sales_volume_total_shop }} €
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Persönliches Volumen:</td>
|
||
<td>
|
||
<span class="badge {{ $TreeCalcBot->user->isQualKP() ? 'badge-outline-success' : 'badge-outline-danger' }}"> KD {{ $TreeCalcBot->user->qual_kp }}</span>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Qualifikation:</td>
|
||
<td>
|
||
TP {{ formatNumber($TreeCalcBot->user->qual_tp, 0) }} /
|
||
@if($TreeCalcBot->user->isQualKP())
|
||
<strong> TP {{ formatNumber($TreeCalcBot->total_qual_tp, 0) }}</strong>
|
||
@if($TreeCalcBot->qual_user_level)
|
||
<span class="badge badge-outline-success">{{ formatNumber($TreeCalcBot->qual_user_level->qual_tp, 0) }} | {{ $TreeCalcBot->qual_user_level->name }}</span>
|
||
@endif
|
||
@else
|
||
<span class="ion ion-md-close text-danger"></span>
|
||
@endif
|
||
</td>
|
||
</tr>
|
||
|
||
</tbody>
|
||
</table>
|
||
<hr class="border-light m-0">
|
||
<div class="table-responsive">
|
||
<table class="table card-table m-0">
|
||
<tbody>
|
||
<tr>
|
||
<th>Linie</th>
|
||
<th>Points</th>
|
||
<th>Provision</th>
|
||
<th>Provision</th>
|
||
</tr>
|
||
@for ($line=1; $line<=6; $line++)
|
||
<tr>
|
||
<td>
|
||
<div class="font-weight-bolder line-height-1 my-2 text-dark badge badge-outline-dark">{{ $line }}</div>
|
||
</td>
|
||
<td>{{ formatNumber($TreeCalcBot->getKeybyLine($line, 'points'), 0) }}</td>
|
||
<td>{{ formatNumber($TreeCalcBot->getKeybyLine($line, 'margin'), 0) }} %</td>
|
||
<td>{{ formatNumber($TreeCalcBot->getKeybyLine($line, 'commission'), 2) }}</td>
|
||
|
||
</tr>
|
||
@endfor
|
||
</tbody>
|
||
<tfoot>
|
||
<tr>
|
||
<td>Gesamt</td>
|
||
<td>{{ formatNumber($TreeCalcBot->total_tp, 0) }}</td>
|
||
<td></td>
|
||
<td><strong>{{ formatNumber($TreeCalcBot->commission_total, 2) }}</strong></td>
|
||
</tr>
|
||
|
||
</tfoot>
|
||
</table>
|
||
</div>
|
||
@endif
|
||
|
||
</div>
|
||
<div class="modal-footer">
|
||
<button type="button" class="btn btn-default" data-dismiss="modal">schließen</button>
|
||
</div>
|
||
|
||
|
||
<script>
|
||
$( document ).ready(function() {
|
||
|
||
});
|
||
</script>
|
||
</div>
|
||
|