- Laravel 11, Blade, Alpine.js, Tailwind CSS - Produkt- & Kategorieverwaltung mit Varianten - Checkout (Vorkasse + Rechnung), Session-Warenkorb - Admin-Backend (Dashboard, Bestellungen, Kunden, CMS) - DSGVO-konform: Cookie-Consent, Impressum, Widerruf, AGB - PDF-Rechnung via dompdf, SMTP-Mailversand - Kundenverwaltung mit manueller Freischaltung Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
66 lines
2.8 KiB
PHP
66 lines
2.8 KiB
PHP
<!DOCTYPE html>
|
|
<html lang="de">
|
|
<head><meta charset="UTF-8"><style>
|
|
body { font-family: Arial, sans-serif; color: #333; max-width: 600px; margin: 0 auto; }
|
|
h1 { color: #1d4ed8; }
|
|
table { width: 100%; border-collapse: collapse; }
|
|
th, td { padding: 8px; border-bottom: 1px solid #eee; text-align: left; }
|
|
th { background: #f8fafc; }
|
|
.total { font-weight: bold; font-size: 1.1em; }
|
|
.box { background: #f8fafc; padding: 16px; border-radius: 8px; margin: 16px 0; }
|
|
</style></head>
|
|
<body>
|
|
<h1>Vielen Dank für Ihre Bestellung!</h1>
|
|
<p>Guten Tag {{ $order->billingAddress()?->full_name ?? $order->guest_email }},</p>
|
|
<p>wir haben Ihre Bestellung <strong>{{ $order->order_number }}</strong> erhalten und bestätigen sie hiermit.</p>
|
|
|
|
@if($order->payment_method === 'prepayment')
|
|
<div class="box">
|
|
<strong>Bitte überweisen Sie den Betrag auf folgendes Konto:</strong><br>
|
|
Empfänger: {{ \App\Models\Setting::get('shop_owner') }}<br>
|
|
Bank: {{ \App\Models\Setting::get('bank_name') }}<br>
|
|
IBAN: {{ \App\Models\Setting::get('bank_iban') }}<br>
|
|
BIC: {{ \App\Models\Setting::get('bank_bic') }}<br>
|
|
Verwendungszweck: <strong>{{ $order->order_number }}</strong><br>
|
|
Betrag: <strong>{{ number_format($order->total, 2, ',', '.') }} €</strong>
|
|
</div>
|
|
@else
|
|
<div class="box">
|
|
Sie erhalten Ihre Rechnung separat per E-Mail sobald Ihre Bestellung bearbeitet wird.<br>
|
|
Zahlungsziel: {{ \App\Models\Setting::get('invoice_payment_days', 14) }} Tage nach Rechnungserhalt.
|
|
</div>
|
|
@endif
|
|
|
|
<h2>Bestellübersicht</h2>
|
|
<table>
|
|
<thead><tr><th>Artikel</th><th>Menge</th><th>Einzelpreis</th><th>Gesamt</th></tr></thead>
|
|
<tbody>
|
|
@foreach($order->items as $item)
|
|
<tr>
|
|
<td>{{ $item->product_name }}@if($item->variant_label) <small>({{ $item->variant_label }})</small>@endif</td>
|
|
<td>{{ $item->quantity }}</td>
|
|
<td>{{ number_format($item->unit_price, 2, ',', '.') }} €</td>
|
|
<td>{{ number_format($item->line_total, 2, ',', '.') }} €</td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
<tfoot>
|
|
<tr><td colspan="3">Zwischensumme</td><td>{{ number_format($order->subtotal, 2, ',', '.') }} €</td></tr>
|
|
<tr><td colspan="3">Versand</td><td>{{ number_format($order->shipping_cost, 2, ',', '.') }} €</td></tr>
|
|
<tr class="total"><td colspan="3">Gesamt (inkl. MwSt.)</td><td>{{ number_format($order->total, 2, ',', '.') }} €</td></tr>
|
|
</tfoot>
|
|
</table>
|
|
|
|
@if($addr = $order->billingAddress())
|
|
<h3>Rechnungsadresse</h3>
|
|
<p>{{ $addr->full_name }}<br>{{ $addr->street }}<br>{{ $addr->zip }} {{ $addr->city }}</p>
|
|
@endif
|
|
|
|
<hr>
|
|
<p style="font-size:0.85em;color:#666;">
|
|
{{ \App\Models\Setting::get('shop_name') }} | {{ \App\Models\Setting::get('shop_address') }}<br>
|
|
Bei Fragen: <a href="mailto:{{ \App\Models\Setting::get('shop_email') }}">{{ \App\Models\Setting::get('shop_email') }}</a>
|
|
</p>
|
|
</body>
|
|
</html>
|