@php use Illuminate\Support\Arr; use App\Libs\Utils; use Picqer\Barcode\BarcodeGeneratorPNG; @endphp FBA商品ラベル
@php $noImageUrl = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADcAAABLCAYAAADUOx/8AAABhGlDQ1BJQ0MgcHJvZmlsZQAAKJF9kT1Iw0AcxV9TtSoVh3YQcchQnSyIijpqFYpQIdQKrTqYXPoFTRqSFBdHwbXg4Mdi1cHFWVcHV0EQ/ABxcnRSdJES/5cUWsR6cNyPd/ced+8AoVZimtUxBmi6bSbjMTGdWRUDr+iBgC5MIyQzy5iTpATajq97+Ph6F+VZ7c/9OfrUrMUAn0g8ywzTJt4gntq0Dc77xGFWkFXic+JRky5I/Mh1xeM3znmXBZ4ZNlPJeeIwsZhvYaWFWcHUiCeJI6qmU76Q9ljlvMVZK1VY4578hcGsvrLMdZpDiGMRS5AgQkEFRZRgI0qrToqFJO3H2vgHXb9ELoVcRTByLKAMDbLrB/+D391auYlxLykYAzpfHOdjGAjsAvWq43wfO079BPA/A1d601+uATOfpFebWuQI6N8GLq6bmrIHXO4AA0+GbMqu5Kcp5HLA+xl9UwYI3QK9a15vjX2cPgAp6ipxAxwcAiN5yl5v8+7u1t7+PdPo7wdNaHKYlkgStAAAAAZiS0dEAM8AzwDPAy7KKQAAAAlwSFlzAAAuIwAALiMBeKU/dgAAAAd0SU1FB+QJCAghC5z7JHkAAASCSURBVHja7ZnLS1tbFIc/YyQJoiYxNnFgQAlUw/EFPqqxPQqCDp10UDqxdqbO279A6qRQQQRLwYmUTsSZFgRjNDY+ojH4oMUMtASstkbUYIxpcweXHJNbB73e0pvavUaH/Trny1p7r/XbyVhdXY1zQ03FDTYBJ+AEnIATcAJOwAk4ASfgBJyAE3ACTsAJOAEn4G6uqX/WQiMjI7x//x5ZlsnJycHv93N0dIQkSbS2tqLT6QCIx+NsbGywuLjI7u4uGo2GsrIyHA4HBQUF6e05l8tFUVERjx49wmAwMD8/z9zcnNI/MzPD6OgoGo2GJ0+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YVj6X9NcNVFggEOD8/p7i4GLVazfb2Nj6fD61WS21t7e9dfsViMdbW1vB6vQSDQYxGI6WlpdTV1aWkH1FbCrEq4AScgBNwAk7ACTgBJ+AEnIATcAJOwAk4ASfg/gi4vwDoAq+28x2BtgAAAABJRU5ErkJggg=='; $lrm = ['left', 'middle', 'right']; for ($i = 0; $i < $offset; $i++) { $items->prepend(null); } $index = 0; @endphp @foreach ($items->chunk(3) as $chunk)
@foreach ($chunk as $i => $item)
@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
@endforeach
@if (false)