@extends('layouts.layout-2') @section('content')
Zahlungen / offene Gutschriften
@if(isset($add_credit_error) && $add_credit_error)
  • {{ $add_credit_error }}
@endif
@foreach ($ShoppingOrderMargins as $ShoppingOrderMargin) @endforeach @foreach ($onlyUserCreditMargins as $user_id => $onlyUserCreditMargin) @endforeach
{{__('Vorname')}} {{__('Nachname') }} {{__('E-Mail') }} {{__('Betrag') }} {{__('aus Bestellung / Gutschrift')}} {{__('#')}}
{{ $ShoppingOrderMargin->first_name }} {{ $ShoppingOrderMargin->last_name }} {{ $ShoppingOrderMargin->email }} {!! \App\Services\UserMarign::getMontlyPartnerCommissionOpenByID($ShoppingOrderMargin->user_id, null, true, true) !!} € @foreach (\App\Services\UserMarign::getOrderFromPartnerCommissionByID($ShoppingOrderMargin->user_id) as $order) @if($order->shopping_order)
{!! \App\Services\Payment::getPaymentForTypeBadge($order->shopping_order) !!} @if($order->shopping_order->payment_for === 7 || $order->shopping_order->payment_for === 8) @else @endif {{$order->shopping_order->shopping_user->billing_firstname }} {{$order->shopping_order->shopping_user->billing_lastname }} / {{ $order->shopping_order->getLastShoppingPayment('reference') }} ({{ $order->shopping_order->getFormattedTotalWithoutCredit()." €" }}) / {{ $order->shopping_order->created_at->format("d.m.Y") }} @if($order->shopping_order->shopping_order_margin->net_partner_commission) / {{ $order->shopping_order->shopping_order_margin->getFormattedNetPartnerCommission() }} € @endif
@endif @endforeach @foreach (\App\Services\UserMarign::getUserCreditMarginByID($ShoppingOrderMargin->user_id) as $creditMaring)
{!! nl2br($creditMaring->message) !!} / {{ $creditMaring->created_at->format("d.m.Y") }} / {!! formatNumber($creditMaring->credit) !!} € @if($deleteTime = $creditMaring->deleteTime()) / noch {{ $deleteTime }} min. @endif
@endforeach
{{ $onlyUserCreditMargin['first_name'] }} {{ $onlyUserCreditMargin['last_name'] }} {{ $onlyUserCreditMargin['email'] }} {!! formatNumber($onlyUserCreditMargin['sum']) !!} € @foreach ($onlyUserCreditMargin['entries'] as $key => $creditMaring)
{!! nl2br($creditMaring->message) !!} / {{ $creditMaring->created_at->format("d.m.Y") }} / {!! formatNumber($onlyUserCreditMargin['credit']) !!} € @if($deleteTime = $creditMaring->deleteTime()) / noch {{ $deleteTime }} min. @endif
@endforeach
Zahlungen / offene Gutschriften pending
@foreach ($ShoppingOrderMarginPendings as $ShoppingOrderMarginPending) @endforeach @foreach ($onlyShoppingOrderMargins as $user_id => $onlyUserCreditMargin) @endforeach
{{__('Vorname')}} {{__('Nachname') }} {{__('E-Mail') }} {{__('Betrag') }} {{__('aus Bestellung')}}
{{ $ShoppingOrderMarginPending->first_name }} {{ $ShoppingOrderMarginPending->last_name }} {{ $ShoppingOrderMarginPending->email }} {!! \App\Services\UserMarign::getMontlyPartnerCommissionPendingByID($ShoppingOrderMarginPending->user_id, null, true) !!} € @foreach (\App\Services\UserMarign::getOrderFromPartnerCommissionPendingByID($ShoppingOrderMarginPending->user_id) as $order) @if($order->shopping_order)
{!! \App\Services\Payment::getPaymentForTypeBadge($order->shopping_order) !!} @if($order->shopping_order->payment_for === 7 || $order->shopping_order->payment_for === 8) @else @endif {{$order->shopping_order->shopping_user->billing_firstname }} {{$order->shopping_order->shopping_user->billing_lastname }} / {{ $order->shopping_order->getLastShoppingPayment('reference') }} ({{$order->shopping_order->getFormattedTotalWithoutCredit()." €" }}) / {{ $order->shopping_order->created_at->format("d.m.Y") }} @if($order->shopping_order->shopping_order_margin->net_partner_commission) / {{ $order->shopping_order->shopping_order_margin->getFormattedNetPartnerCommission() }} € @endif
@endif @endforeach @foreach (\App\Services\UserMarign::getOrderFromShopPendingByID($ShoppingOrderMarginPending->user_id) as $order) @if($order->shopping_order)
{!! \App\Services\Payment::getPaymentForTypeBadge($order->shopping_order) !!} @if($order->shopping_order->payment_for === 7 || $order->shopping_order->payment_for === 8) @else @endif {{$order->shopping_order->shopping_user->billing_firstname }} {{$order->shopping_order->shopping_user->billing_lastname }} / {{ $order->shopping_order->getLastShoppingPayment('reference') }} ({{$order->shopping_order->getFormattedTotalWithoutCredit()." €" }}) / {{ $order->shopping_order->created_at->format("d.m.Y") }} @if($order->shopping_order->shopping_order_margin->net_partner_commission) / {{ $order->shopping_order->shopping_order_margin->getFormattedNetPartnerCommission() }} € @endif
@endif @endforeach
{{ $onlyUserCreditMargin['first_name'] }} {{ $onlyUserCreditMargin['last_name'] }} {{ $onlyUserCreditMargin['email'] }} {!! formatNumber($onlyUserCreditMargin['sum']) !!} € @foreach ($onlyUserCreditMargin['entries'] as $key => $order)
{!! \App\Services\Payment::getPaymentForTypeBadge($order->shopping_order) !!} @if($order->shopping_order->payment_for === 7 || $order->shopping_order->payment_for === 8) @else @endif {{$order->shopping_order->shopping_user->billing_firstname }} {{$order->shopping_order->shopping_user->billing_lastname }} / {{ $order->shopping_order->getLastShoppingPayment('reference') }} ({{$order->shopping_order->getFormattedTotalWithoutCredit()." €" }}) / {{ $order->shopping_order->created_at->format("d.m.Y") }} @if($order->shopping_order->shopping_order_margin->net_partner_commission) / {{ $order->shopping_order->shopping_order_margin->getFormattedNetDiscount() }} € @endif
@endforeach
Zahlungen / erstellte Gutschriften
{!! Form::open(['action' => route('admin_payments_credit'), 'class' => 'form-horizontal', 'id'=>'form_filter_sales_year']) !!} {!! Form::close() !!}
ID {{__('G.Nr.')}} {{__('Gutschrift')}} {{__('Vorname')}} {{__('Nachname') }} {{__('E-Mail') }} {{__('Betrag') }} {{__('Datum') }} {{__('Zahlung')}} {{__('aus Bestellung / Gutschrift')}}
@endsection