User Order all Margins / Checkout

This commit is contained in:
Kevin Adametz 2021-01-22 15:54:51 +01:00
parent a96d7d5c77
commit 224bf9e951
92 changed files with 3551 additions and 561 deletions

View file

@ -142,7 +142,7 @@
<!-- / Stats + Links -->
</div> --}}
<div class="d-flex col-xl-6 align-items-stretch">
<div class="d-flex col-md-6 align-items-stretch">
<!-- SHOP -->
<div class="card w-100 mb-4">
<h5 class="card-header with-elements">
@ -152,7 +152,7 @@
@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>
<strong>{{__('Vertriebspartner-Mitgliedschaft aktiv')}}</strong> {{__('bis zum:')}} <strong></strong>{{ $user->getPaymentAccountDateFormat() }}</div>
<hr>
<p><span class="ion ion-md-checkmark-circle-outline text-success"></span>
<strong>{{__('Aktive Rolle')}}:</strong>
@ -161,16 +161,47 @@
@endif
</p>
<hr>
<p><span class="ion ion-md-checkmark-circle-outline text-success"></span>
<strong>{{__('Guthaben')}}:</strong>
@if($user->payment_credit)
{{ $user->getFormattedPaymentCredit() }} &euro;
@endif
<h6>{{__('Umsätze')}} {{date('m.Y')}}</h6>
<table class="table table-striped table-bordered">
<tr>
<td class="text-left font-weight-semibold">{{__('Umsatz gesamt')}}:</td>
<td class="text-right font-weight-bold">
{!! \App\Services\UserMarign::getMontlyPrice($user, null, true) !!} &euro;*
</td>
</tr>
<tr>
<td class="text-left font-weight-semibold">{{__('Umsatz Staffelrabatt')}}:</td>
<td class="text-right font-weight-bold">
{!! \App\Services\UserMarign::getMontlyAmount($user, null, true) !!} &euro;*
</td>
</tr>
<tr>
<td class="text-left font-weight-semibold">{{__('Umsatz Zahlung offen')}}:</td>
<td class="text-right font-weight-bold">
{!! \App\Services\UserMarign::getMontlyPriceOpen($user, null, true) !!} &euro;*
</td>
</tr>
</table>
<hr>
<h6>{{__('Provision')}} {{date('m.Y')}}</h6>
<table class="table table-striped table-bordered">
<tr>
<td class="text-left font-weight-semibold">{{__('Vertriebspartner Provision')}}:</td>
<td class="text-right font-weight-bold">
{!! \App\Services\UserMarign::getMontlyPartnerCommission($user, null, true) !!} &euro;*
</td>
</tr>
</table>
<p class="text-right" style="font-size: 0.9em"><i>* Nettobeträge</i></p>
<hr>
<p><span class="ion ion-md-checkmark-circle-outline text-secondary"></span>
{{__('Guthaben')}} bis {{ $user->getPaymentAccountDateFormat(false) }}: <strong>{{ $user->getFormattedPaymentCredit() }} &euro;</strong>
</p>
<hr>
@else
<div class="badge badge-danger p-2">
<i class="ion ion-md-close-circle-outline text-white"></i>
<strong>{{__('Berater-Account inaktiv')}} </strong>
<strong>{{__('Vertriebspartner-Account inaktiv')}} </strong>
@if($user->payment_account)
{{__('abgelaufen am')}}: <strong></strong>{{ $user->getPaymentAccountDateFormat() }}
@endif
@ -184,7 +215,7 @@
</div>
<div class="d-flex col-xl-6 align-items-stretch">
<div class="d-flex col-md-6 align-items-stretch">
<div class="card w-100 mb-4">
<h5 class="card-header with-elements">
<div class="card-header-title">{{__('Activities') }}</div>
@ -220,7 +251,7 @@
@if($user->files->count())
@foreach($user->files()->whereIdentifier('contract')->get() as $file)
<div class="card-footer pt-3">
<a class="btn btn-secondary btn-block" href="{{ route('storage_file', [$file->id, 'user']) }}" target="_blank"><i class="ion ion-ios-download text-default mr-1"></i> Beratervertrag.pdf</a>
<a class="btn btn-secondary btn-block" href="{{ route('storage_file', [$file->id, 'user']) }}" target="_blank"><i class="ion ion-ios-download text-default mr-1"></i> Vertriebspartnervertrag.pdf</a>
</div>
@endforeach
@endif