mivita/resources/views/dashboard/_membership.blade.php
2023-07-03 10:07:08 +02:00

56 lines
2.9 KiB
PHP

<div class="d-flex col-xl-6 align-items-stretch">
<div class="card w-100 mb-4">
<h5 class="card-header with-elements">
<div class="card-header-title">{{__('Mitgliedschaft') }}</div>
</h5>
<div class="card-body">
@if($user->isActiveAccount() )
<div class="badge btn-success p-2">
<i class="ion ion-md-checkmark-circle-outline text-white"></i>
<strong>{{__('Berater-Mitgliedschaft aktiv')}}</strong> {{__('bis zum:')}} <strong></strong>{{ $user->getPaymentAccountDateFormat() }}</div>
@else
<div class="badge badge-danger p-2">
<i class="ion ion-md-close-circle-outline text-white"></i>
<strong>{{__('Berater-Account inaktiv')}} </strong>
@if($user->payment_account)
{{__('abgelaufen am')}}: <strong></strong>{{ $user->getPaymentAccountDateFormat() }}
@endif
</div>
@endif
@if($user->isActiveAccount() )
<hr>
<h6><span class="ion ion-md-checkmark-circle-outline text-success"></span>
<strong>{{__('Aktive Rolle')}}:</strong>
@if($user->m_level && $user->user_level) {{ $user->user_level->name }} @endif </h6>
<table class="table table-striped table-bordered">
<tr>
<td class="text-left font-weight-semibold">{{__('Provision')}}:</td>
<td class="text-left font-weight-semibold">{{__('Shop Provision')}}:</td>
<td class="text-left font-weight-semibold">{{__('Qualifikation')}}:</td>
<td class="text-left font-weight-semibold">{{__('Payline Qualifikation')}}:</td>
</tr>
@if($user->m_level && $user->user_level)
<tr>
<td class="text-left font-weight-bold">
{{ $user->user_level->margin }} %
</td>
<td class="text-left font-weight-bold">
{{ $user->user_level->margin_shop }} %
</td>
<td class="text-left font-weight-bold">
{{ $user->user_level->qual_kp }} Points
</td>
<td class="text-left font-weight-bold">
{{ $user->user_level->qual_pp }} Points
</td>
</tr>
@endif
</table>
@endif
</div>
<div class="card-footer py-3">
<a href="{{route('user_membership')}}" class="btn btn-secondary"><i class="ion ion-ios-people text-default mr-1"></i> {{__('Mitgliedschaft verwalten')}}</a>
</div>
</div>
</div>