@php use Illuminate\Support\Arr; use App\Libs\Utils; use Picqer\Barcode\BarcodeGeneratorPNG; @endphp FBA配送ラベル

このラベルは隠れないようにしてください

FBA メディア
@php $items = $shipment->items; $shipNumber = $shipment->shipment_id . 'U001'; $generator = new BarcodeGeneratorPNG(); $barcode = $generator->getBarcode($shipNumber, $generator::TYPE_CODE_128, 2, 100); $skus = $items ->map(function ($item) { return $item->item->sku; }) ->implode(', '); if (strlen($skus) > 20) { $skus_f = substr($skus, 0, 10); $skus_b = substr($skus, -10, 10); $skus = "{$skus_f}...{$skus_b}"; } @endphp
納品元
{{ Arr::get($shipment->inputs, 'shipFrom.name') }}
{{ Arr::get($shipment->inputs, 'shipFrom.zip') }}
{{ Arr::get($shipment->inputs, 'shipFrom.prefecture') }}
{{ Arr::get($shipment->inputs, 'shipFrom.city') }}
{{ Arr::get($shipment->inputs, 'shipFrom.address') }}
日本
納品先
{{ Arr::get($shipment->data, 'plan.ShipToAddress.Name') }}
{{ Arr::get($shipment->data, 'plan.ShipToAddress.PostalCode') }}
{{ Arr::get($shipment->data, 'plan.ShipToAddress.StateOrProvinceCode') }}
{{ Arr::get($shipment->data, 'plan.ShipToAddress.City') }}
{{ Arr::get($shipment->data, 'plan.ShipToAddress.AddressLine1') }}
日本
FBA: {{ Arr::get($shipment->inputs, 'shipFrom.name') }}

 

{{ $shipNumber }}

@if (count($items) > 1)

混在したSKU

@endif

{{ $skus }}

数量1

@if (false)

このラベルは隠れないようにしてください

FBA メディア