@if($isAdmin)
{{ __('E-Mail') }}
@if($shopping_user->faker_mail) - @else {{ $shopping_user->billing_email }} @endif
{{ __('customer.customer_data') }}
{{$shopping_user->number}}
{{ __('customer.date') }}
{{$shopping_user->created_at->format("d.m.Y H:i")}}
@else
{{ __('E-Mail') }}
@if($shopping_user->faker_mail) - @else {{ $shopping_user->billing_email }} @endif
{{ __('customer.customer_data') }}
{{$shopping_user->number}}
{{ __('customer.created') }}
{{$shopping_user->firstEntryByNumber()->created_at->format("d.m.Y H:i")}}
@if(!$shopping_user->is_like) {{ __('customer.edit_customer_data') }} @endif
@endif

@if($isAdmin)
@if(isset($change_member_error) && $change_member_error)
  • {{ $change_member_error }}
@endif
{{ __('customer.assigned_counsellor') }}
@if($shopping_user->is_like) @else @if($shopping_user->member) {{$shopping_user->member->getFullName()}} #{{$shopping_user->member->number}} @endif @endif
{{ __('customer.about_shop') }}
@if($shopping_user->shopping_order && $shopping_user->shopping_order->user_shop) @if($shopping_user->shopping_order->user_shop->user && $shopping_user->shopping_order->user_shop->user->isActive() && $shopping_user->shopping_order->user_shop->user->isActiveShop()) {{$shopping_user->shopping_order->user_shop->getSubdomain(false)}} @else {{$shopping_user->shopping_order->user_shop->getSubdomain(false)}} @endif @endif
{{ __('customer.is_counsellor') }}
@if($shopping_user->auth_user) {{$shopping_user->auth_user->getFullName()}} #{{$shopping_user->auth_user->number}} @else @endif
@else
{{-- @if(!$shopping_user->is_like) Bestellung für diesen Kunden aufgeben @endif --}}
{{ __('customer.client_sovereignty') }}
@if($shopping_user->is_like) {{ __('customer.under_review') }} @else {{ __('customer.assigned') }} @endif
@endif

@include('admin.customer._customer_detail')
Kunde
@if($shopping_user->has_buyed) {{ __('customer.customer_has_already_purchased') }} @else {{ __('customer.customer_has_not_yet_purchased') }} @endif
@if($shopping_user->subscribed) {{ __('customer.customer_is_subscribed_to_newsletter') }} @else {{ __('customer.customer_is_not_subscribed_to_newsletter') }} @endif

{{ __('Comments') }}
{!! nl2br($shopping_user->remarks) !!}

@if($isAdmin)
{{ __('tables.order') }}
@if($shopping_user->shopping_order) @foreach($shopping_user->shopping_order->shopping_order_items as $shopping_order_item) @endforeach @endif
{{ __('tables.product') }} {{ __('tables.quantity') }} {{ __('tables.price') }}
@if($shopping_order_item->product->images) @if($image = $shopping_order_item->product->images->first()) @endif @endif
{{ $shopping_order_item->product->getLang('name') }} #{{ $shopping_order_item->product->number }} {{ __('order.content') }}: {{ $shopping_order_item->product->contents }}
{{ __('order.weight') }}: {{ $shopping_order_item->product->weight }} g
{{ __('order.points') }}: {{ $shopping_order_item->product->getFormattedPoints() }}
{{ $shopping_order_item->qty }} {{ $shopping_order_item->getFormattedPrice() }} €

Zahlung
@if($isAdmin)@endif @php($count=0) @if(isset($shopping_user->shopping_order) && $shopping_user->shopping_order) @foreach($shopping_user->shopping_order->shopping_payments as $shopping_payment) @if(isset($shopping_payment) && $shopping_payment) @if($isAdmin)@endif @if($isAdmin && $shopping_payment->payment_transactions) @php($ccount=0) @endif @endif @endforeach @endif
# {{ __('tables.payment_type') }}{{ __('tables.reference_number') }}{{ __('tables.total') }} {{ __('tables.status') }} {{ __('tables.date') }}
{{++$count}} {{$shopping_payment->getPaymentType()}}{{$shopping_payment->reference}}{{$shopping_payment->getPaymentAmount()}} {!! \App\Services\Payment::getShoppingPaymentBadge($shopping_payment) !!} {{$shopping_payment->created_at->format("d.m.Y H:i")}}
{{$count}}.{{++$ccount}} @foreach($shopping_payment->payment_transactions as $payment_transaction) @endforeach
Request {{ __('tables.status') }} TX-Action {{ __('tables.date') }}
{{$payment_transaction->request}} {{$payment_transaction->status}} {{$payment_transaction->txaction}} {{$payment_transaction->errormessage}} {{$payment_transaction->created_at->format("d.m.Y H:i")}}
@endif
{{ __('tables.previous_orders') }}
@if($shopping_user->shopping_order) @forelse($shopping_user->getAllOrdersByMember() as $shopping_order) @empty @endforelse @endif
# {{__('tables.date')}} {{__('tables.amount')}} {{__('tables.status')}} {{__('tables.shipping')}} {{__('tables.art')}}
@if($isAdmin) @else @endif {{ $shopping_order->created_at->format('d.m.Y') }} {{ $shopping_order->getFormattedTotalShipping() }} € {!! \App\Services\Payment::getShoppingOrderBadge($shopping_order) !!} {{ $shopping_order->getShippedType() }} {!! \App\Services\Payment::getPaymentForBadge($shopping_order) !!}
{{ __('order.no_orders_found') }}