@php $shop = [ 'name' => \App\Models\Setting::get('shop_name'), 'owner' => \App\Models\Setting::get('shop_owner'), 'address' => \App\Models\Setting::get('shop_address'), 'email' => \App\Models\Setting::get('shop_email'), 'phone' => \App\Models\Setting::get('shop_phone'), 'vat_id' => \App\Models\Setting::get('shop_vat_id'), 'bank' => \App\Models\Setting::get('bank_name'), 'iban' => \App\Models\Setting::get('bank_iban'), 'bic' => \App\Models\Setting::get('bank_bic'), 'days' => \App\Models\Setting::get('invoice_payment_days', 14), ]; $billing = $order->billingAddress(); $due = $order->paid_at?->addDays((int)$shop['days']); @endphp
{{ $shop['owner'] }}
{!! nl2br(e($shop['address'])) !!}
{{ $shop['email'] }}
@if($shop['vat_id']) USt-IdNr.: {{ $shop['vat_id'] }} @endif
@if($due)@endif
Rechnungsnr.{{ $order->order_number }}
Datum{{ ($order->paid_at ?? $order->created_at)->format('d.m.Y') }}
Zahlungsziel{{ $due->format('d.m.Y') }}
Zahlungsart{{ $order->payment_label }}
Rechnungsadresse
@if($billing) {{ $billing->full_name }}
@if($billing->company) {{ $billing->company }}
@endif {{ $billing->street }}
@if($billing->street2) {{ $billing->street2 }}
@endif {{ $billing->zip }} {{ $billing->city }}
{{ $billing->country }} @endif

Rechnung {{ $order->order_number }}

@foreach($order->items as $item) @endforeach
Artikel Menge Einzelpreis MwSt. Gesamt
{{ $item->product_name }} @if($item->variant_label)
{{ $item->variant_label }}@endif
{{ $item->quantity }} {{ number_format($item->unit_price, 2, ',', '.') }} € {{ number_format($item->tax_rate, 0) }} % {{ number_format($item->line_total, 2, ',', '.') }} €
@php $taxGroups = $order->items->groupBy('tax_rate')->map(fn($g) => $g->sum('tax_amount')); @endphp @foreach($taxGroups as $rate => $amount) @endforeach
Nettobetrag{{ number_format($order->subtotal - $order->tax_total, 2, ',', '.') }} €
MwSt. {{ number_format($rate, 0) }} %{{ number_format($amount, 2, ',', '.') }} €
Versand{{ number_format($order->shipping_cost, 2, ',', '.') }} €
Gesamtbetrag{{ number_format($order->total, 2, ',', '.') }} €
@if($order->payment_method === 'invoice')
Bitte überweisen Sie den Betrag bis {{ $due?->format('d.m.Y') ?? 'baldmöglichst' }} auf:
Bank: {{ $shop['bank'] }} | IBAN: {{ $shop['iban'] }} | BIC: {{ $shop['bic'] }}
Verwendungszweck: {{ $order->order_number }}
@endif