@php use Illuminate\Support\Arr; use App\Libs\Utils; @endphp 宛名ラベル
@php for ($i=0; $i < $offset; $i++) { $items->prepend(null); } $index = 0; @endphp @foreach ($items->chunk(2) as $chunk)
@foreach ($chunk as $item)
@if (!$item) {{-- 何も出力しない --}} @else {{-- 宛名を出力する --}}

 

{{ Arr::get($item->order->data ?? [], 'ShippingAddress.PostalCode') }}

{{ Arr::get($item->order->data ?? [], 'ShippingAddress.StateOrRegion') }}{{ Arr::get($item->order->data ?? [], 'ShippingAddress.AddressLine1') }}{{ Arr::get($item->order->data ?? [], 'ShippingAddress.AddressLine2') }}

{{ Arr::get($item->order->data ?? [], 'ShippingAddress.AddressLine3') }} 

{{ Arr::get($item->order->data ?? [], 'ShippingAddress.Name') }} {{ Utils::getSamaOrOnchu(Arr::get($item->order->data ?? [], 'ShippingAddress.Name', '')) }}

{{ $item->amazon_order_id }}    {{ $item->seqno_numer }}/{{ $item->seqno_denom }}

@endif
@php $index++; @endphp @endforeach
@endforeach