@extends('layouts.layout-2') @section('content') @include('admin.inventory.partials.wawi-ui')

{{ __('Bestell-Abwicklung') }}

{{ __('Tagesübersicht: konfektionieren, Dokumente drucken, versenden — versandfertig = bezahlt (Rechnung sofort, Vorkasse nach Zahlungseingang, API immer)') }}

{{ $counts['today'] }}
{{ __('Heute eingegangen') }}
{{ $counts['pick'] }}
{{ __('Zu konfektionieren') }}
{{ $counts['ready'] }}
{{ __('Versandfertig') }}
{{ $counts['shipped_today'] }}
{{ __('Heute versendet') }}
@if ($filter !== '') {{ __('Filter zurücksetzen') }} @endif {{-- AP-33b: Sammel-Druck der ausgewählten Bestellungen (öffnet ein PDF im neuen Tab) --}}
@csrf
@forelse ($orders as $order) @php $customer = $order->shopping_user ? trim(($order->shopping_user->shipping_firstname ?: $order->shopping_user->billing_firstname ?? '').' '.($order->shopping_user->shipping_lastname ?: $order->shopping_user->billing_lastname ?? '')) : ''; $clearingtype = $order->shopping_payment_last?->clearingtype; $readyToShip = $order->isReadyToShip(); $itemCount = $order->shopping_order_items->sum('qty'); @endphp @empty @endforelse
{{ __('Bestellung') }} {{ __('Kunde') }} {{ __('Status') }} {{ __('Dokumente') }} {{ __('Aktionen') }} {{ __('Pos.') }}
@if ($order->isApiOrder()) @else @endif #{{ $order->id }} @if ($order->isApiOrder()) API @elseif ($order->user_shop_id) {{ __('Shop') }} @elseif ($order->promotion_user_id) {{ __('Promo') }} @endif
{{ $order->created_at->format('d.m.Y H:i') }}
{{ $customer !== '' ? $customer : '—' }} @if ($order->shipping_country?->country) {{ strtoupper($order->shipping_country->country->code) }} @endif @if ((int) $order->shipped === 0) {{ __('offen') }} @else {{ $order->getShippedType() }} @endif
@if ($readyToShip) {{ __('versandfertig') }} @else {{ __('wartet auf Zahlung') }} @endif @if ($clearingtype === 'fnc') {{ __('Rechnung') }} @elseif ($clearingtype === 'vor') {{ __('Vorkasse') }} @endif
@if ($order->isApiOrder()) @if ($order->wp_invoice_path) {{ __('Extern') }} @else {{ __('extern') }} @endif @elseif (\App\Services\Invoice::isInvoice($order)) {{ __('Re.') }} {{ __('LS') }} @else
@csrf
@endif
@if ((int) $order->shipped === 0)
@csrf
@endif @if (in_array((int) $order->shipped, [0, 1], true))
@csrf
@endif
{{ __('Packliste') }} @if ($order->weight) · {{ __('Gewicht') }}: {{ number_format($order->weight / 1000, 2, ',', '.') }} kg @endif
    @foreach ($order->shopping_order_items as $item)
  • {{ $item->qty }} × {{ $item->product?->name ?? __('(Produkt gelöscht)') }} @if ($item->product?->is_set) SET
      @foreach ($item->product->setItems as $component)
    • {{ $item->qty * $component->pivot->quantity }} × {{ $component->name }}
    • @endforeach
    @endif
  • @endforeach
{{ __('Nichts zu tun — keine Bestellungen in diesem Filter.') }}
@if (($listLimit ?? null) !== null && $orders->count() >= $listLimit)

{{ __('Es werden die neuesten :n Bestellungen angezeigt.', ['n' => $listLimit]) }} {{ __('Alle anzeigen') }}

@endif
@endsection