Sender Details (Pengirim)
Name: {{ $senderName }}
Phone: {{ App\Helpers\PhoneHelper::display($senderPhone) }}
Address:
{{ $senderAddr }},
{{ $senderPostcode }} {{ $senderCity }},
{{ $senderState }}.
Account No:
{{ $companyAccountNo }}
Recipient Details (Penerima)
Name: {{ $recName }}
Phone: {{ App\Helpers\PhoneHelper::display($recPhone) }}
Address:
{{ $recAddr1 }}@if($recAddr2), {{ $recAddr2 }}@endif,
{{ $recPostcode }} {{ $recCity }}, {{ $recState }}.
{{ $recPostcode }}
Item Details
Order Date: {{ $order->date_created ? $order->date_created->format('d/m/Y') : now()->format('d/m/Y') }}
Order ID: #{{ $order->global_order_id ?? $order->order_number }}
Weight: {{ $poslajuSettings->default_weight ?? config('poslaju.defaults.weight', '0.3') }} Kg ({{ $poslajuSettings->default_dimension_l ?? '1' }}cm X {{ $poslajuSettings->default_dimension_w ?? '1' }}cm X {{ $poslajuSettings->default_dimension_h ?? '1' }}cm)
Notes: {{ $order->customer_note ? Str::limit($order->customer_note, 30) : '-' }}
@if($order->isCOD())
COD: {{ $order->formatCurrency($order->total) }}
@endif
@php
$hideProductNames = $poslajuSettings->hide_product_names ?? false;
@endphp
@if(!$hideProductNames && is_array($order->line_items) && count($order->line_items) > 0)
@foreach($order->line_items as $index => $item)
@if($index < 3)
{{ $item['quantity'] ?? 1 }}x {{ Str::limit($item['name'] ?? 'Item', 40) }}
@endif @endforeach @if(count($order->line_items) > 3) +{{ count($order->line_items) - 3 }} more items @endif
@endif
@endif @endforeach @if(count($order->line_items) > 3) +{{ count($order->line_items) - 3 }} more items @endif
PACKING LIST (SKU x UNIT)
@foreach($order->getExpandedLineItems() as $expandedItem)
@php
$item = $expandedItem['item'];
$isBundle = $expandedItem['is_bundle'];
$bundleDetails = $expandedItem['bundle_details'];
$sku = $item['sku'] ?? $item['id'] ?? 'N/A';
$quantity = $item['quantity'] ?? 1;
@endphp
@if($isBundle && $bundleDetails)
@foreach($bundleDetails['items'] as $bundleItem)
{{ $bundleItem['sku'] ?? 'N/A' }} x {{ $bundleItem['quantity'] * $quantity }}
@endforeach
@else
{{ $sku }} x {{ $quantity }}
@endif
@endforeach