@extends('layouts.app') @section('title', 'Barcode sheet (52.5×29.7 mm labels)') @section('content')

Barcode sheet (52.5×29.7 mm labels)

{{ count($labels) }} label(s) Back to products
@if(empty($labels))

No products selected. Go to Products, select products using the checkboxes, then click "Print barcode sheet".

@else @php $perPage = 40; // 4 columns x 10 rows per A4 (52.5 x 29.7 mm labels) $chunks = array_chunk($labels, $perPage); @endphp @foreach($chunks as $pageLabels)
@foreach($pageLabels as $item)
{{ $item['product']->name }}
₹ {{ number_format($item['product']->selling_price, 2) }}/-
{!! $item['svg'] !!}
{{ $item['barcode'] }}
@endforeach
@endforeach @endif @push('styles') @endpush @endsection