157 lines
6.6 KiB
PHP
157 lines
6.6 KiB
PHP
@extends('layouts.layout-2')
|
|
|
|
@section('content')
|
|
<div class="card">
|
|
<h5 class="card-header">
|
|
{{__('Business')}} {{__('Übersicht')}} Berater
|
|
</h5>
|
|
<div class="media align-items-center pt-3 mb-0">
|
|
{{-- <img src="assets/img/avatars/5-small.png" alt="" class="d-block ui-w-100 rounded-circle">--}}
|
|
<div class="media-body ml-4">
|
|
<h4 class="font-weight-bold mb-0">{{ $user->account->first_name }} {{ $user->account->last_name }} <a class="font-weight-normal" href="mailto:{{ $user->email }}">{{ $user->email }}</a></h4>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="card-body">
|
|
<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->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>{{ $month }} {{ $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>
|
|
</div>
|
|
<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>
|
|
|
|
<script>
|
|
$( document ).ready(function() {
|
|
|
|
});
|
|
</script>
|
|
@endsection
|