@php $invoiceType = (int)($info->invoice_type ?? 1); @endphp @if($invoiceType === 1) {{-- ====================================================== DESIGN 1: STANDARD A4 INVOICE (Classic) ====================================================== --}}
| SL. | Item | Color | Size | Price | Qty | Total |
|---|---|---|---|---|---|---|
| {{ $idx+1 }} | {{ $detail->product->name ?? '' }} | {{ (optional($detail->variation->color)->name !== 'Default') ? optional($detail->variation->color)->name : '' }} | {{ (optional($detail->variation->size)->title !== 'free') ? optional($detail->variation->size)->title : '' }} | {{ priceFormate($unitPrice) }} | {{ $qty }} | {{ priceFormate($rowTotal) }} |
| Product | Qty | Total |
|---|---|---|
| {{ $line->product->name ?? '' }} | {{ $line->quantity }} | {{ number_format($rt,2) }} |
| Sub Total | {{ number_format($st,2) }} |
| Delivery | {{ number_format($dc,2) }} |
| Grand Total | {{ number_format($st+$dc-($item->discount ?? 0),2) }} |
{{ $info->address }}
Tel: {{ $info->owner_phone }}
Email: {{ $info->owner_email }}
Date: {{ date('d M, Y', strtotime($item->date)) }}
{{ $item->shipping_address }}
📞 {{ $item->mobile }}
Status: {{ $item->status }}
Payment: {{ $item->payment_status ?? 'Due' }}
@if($item->courier)Courier: {{ $item->courier->name ?? '' }}
@endif| # | Item Description | Qty | Price | Total |
|---|---|---|---|---|
| {{ $idx + 1 }} | {{ $detail->product->name ?? '' }} {{ trim($variantInfo, ' |') }} | {{ $qty }} | {{ number_format($unitPrice, 2) }} | {{ number_format($rowTotal, 2) }} |
| Subtotal | {{ number_format($subTotal, 2) }} |
| Delivery Charge | {{ number_format($item->shipping_charge ?? 0, 2) }} |
| Discount | - {{ number_format($item->discount, 2) }} |
| Grand Total | @php $delivery = (float)($item->shipping_charge ?? 0); $grandTotal = $item->final_amount ?? ($subTotal + $delivery - ($item->discount ?? 0)); @endphp{{ number_format($grandTotal, 2) }} BDT |
{{ $info->address }}
Phone: {{ $info->owner_phone }}
| Item | Qty | Total |
|---|---|---|
| {{ \Illuminate\Support\Str::limit($detail->product->name ?? '', 20) }} @if(isset($detail->variation) && isset($detail->variation->size) && $detail->variation->size->title != 'free') Size: {{ $detail->variation->size->title }} @endif | {{ $qty }} x{{ number_format($unitPrice, 0) }} |
{{ number_format($rowTotal, 2) }} |