@if (!$item)
{{-- 何も出力しない --}}
@else
{{-- 商品情報を出力する --}}
@php
$fnsku = collect(Arr::get($item->fba_inbound_shipment->data, 'plan.Items', []))
->filter(function ($_item) use ($item) {
if ($item->item->sku == Arr::get($_item, 'SellerSKU', '')) {
return true;
}
return false;
})
->map(function ($_item) {
return Arr::get($_item, 'FulfillmentNetworkSKU', '');
})
->first();
$generator = new BarcodeGeneratorPNG();
$barcode = $generator->getBarcode($fnsku, $generator::TYPE_CODE_128, 2, 50);
@endphp
{{ $fnsku }}
{{ Str::limit($item->item->title, 33) }}
{{ $item->item->condition->getAmazonConditionNameForFbaItemLabel() }}
@endif
@php
$index++;
@endphp
@endforeach