@if ($orders->isEmpty()) @else
Print in one PDF for the ticked orders (or everything in this list if none are ticked, up to 100):
@foreach ($orders as $o) @php $st = $o->items->first()->status; $ship = $o->shipping_address; @endphp @endforeach
OrderCustomerYour itemsAmountStatus
#{{ $o->number }}
{{ $o->placed_at->format('d M Y, h:i A') }}
{{ $ship['name'] ?? $o->user?->name }}
{{ $ship['city'] ?? '' }} {{ $ship['pincode'] ?? '' }}
@foreach ($o->items as $i)
{{ Str::limit($i->product_name, 34) }} × {{ $i->qty }}
@endforeach @if ($o->delivery_date) {{ $o->deliveryPreference() }}@endif
{{ inr($o->items->sum('line_total')) }}
{{ $o->payment_method === 'cod' ? 'COD' : 'Prepaid' }}
{{ $st->label() }} {{ $st->value === 'placed' ? 'Confirm' : ($st->value === 'confirmed' ? 'Ship' : 'Open') }}
@if ($orders->hasPages())@endif @endif