@php $pad = $p['label_h'] >= 40 ? 2.5 : 1.8; $qr = min($p['qr_mm'], $p['label_h'] - 2 * $pad); $textW = $p['label_w'] - $qr - 3 * $pad; $big = $p['label_h'] >= 40; $brand = config('assetcare.brand_name'); @endphp {{ $batch->number }} @foreach ($sheets as $sheetNo => $cells)
@foreach ($cells as $c) @php $i = $c['item']; $idx = $i->cell_no - 1; $col = $idx % $p['cols']; $row = intdiv($idx, $p['cols']); $left = $p['margin_left'] + $col * ($p['label_w'] + $p['gap_x']); $top = $p['margin_top'] + $row * ($p['label_h'] + $p['gap_y']); @endphp
{{ $brand }}
{{ $i->code_snapshot }}
{{ \Illuminate\Support\Str::limit($i->name_snapshot, $big ? 60 : 38) }}
@if ($i->location_snapshot)
{{ \Illuminate\Support\Str::limit($i->location_snapshot, 28) }}
@endif
Scan untuk info & lapor kerusakan
{{ $batch->number }}ยท{{ $i->sequence }}
@endforeach
@endforeach