{{-- Half-page order receipt used by the BULK print (two orders per A4 page). Same information blocks as pdf/invoice.blade.php, condensed: identity + bill-to strip, items, totals. Long item lists are capped so a slip never spills into the other half; the full-page invoice remains the single-order download. Expects $order (real Order or the salad pseudo-order) and $invoice (invoicePayload()). No /
— it is written inside a bulk document. --}} @php $address = $order->address_snapshot ?? []; $customerName = $address['name'] ?? $order->user->name ?? '-'; $customerMobile = $address['mobile'] ?? $order->user->mobile ?? '-'; $customerAddress = collect([$address['address_line_1'] ?? null, $address['address_line_2'] ?? null, $address['city'] ?? null, $address['pincode'] ?? $order->selected_pincode ?? null])->filter()->join(', '); $maxRows = 9; $items = $order->items->values(); $hidden = max(0, $items->count() - $maxRows); $items = $items->take($maxRows); @endphp|
Bill To {{ $customerName }} {{ $customerAddress ?: '-' }} Ph: {{ $customerMobile }} |
Invoice No {{ $invoice['invoice_no'] }} Invoice Date {{ $invoice['invoice_date'] }} |
Order No {{ $order->order_no }} Payment {{ $invoice['payment_mode'] ?? '-' }} |
{{ $invoice['delivery_type_label'] }} · {{ $invoice['delivery_time_label'] }} {{ $invoice['delivery_time'] }} Delivered By {{ $invoice['delivery_person'] ?: '-' }} |
| # | Product | Unit | Qty | Price | Total |
|---|---|---|---|---|---|
| {{ $loop->iteration }} | {{ $item->product_name }}@foreach ($item->addons ?? [] as $addon) + {{ $addon['name'] }}@if ($addon['qty'] > 1) ×{{ $addon['qty'] }}@endif@endforeach | {{ $item->pricing_label ?? $item->pricing->unit->name ?? '-' }} | {{ $item->quantity }} | ₹{{ number_format((float) ($item->pricing->mrp ?? $item->price), 2) }} | ₹{{ number_format((float) $item->total, 2) }} |
| + {{ $hidden }} more {{ Str::plural('item', $hidden) }} — see the full invoice for the complete list. | |||||
|
{{ $invoice['total_quantity'] }} items · {{ $invoice['subject'] }} @if (($invoice['coupon_discount'] ?? 0) > 0)Coupon {{ $invoice['coupon_code'] ? '(' . $invoice['coupon_code'] . ')' : '' }} -₹{{ number_format($invoice['coupon_discount'], 2) }} @endif |
|