@extends('layouts.app') @section('title', 'Label Preview - Batch ' . $batch->batch_number) @section('content')

Label Print Preview & Configuration

Back to Batch Open Printable Sheet ({{ $units->count() }} Labels)
Print Settings
Choose between standard thermal roll printer or multi-up A4 sheet.

Batch Specifications
  • Product: {{ $batch->product->name }}
  • Size/Weight: {{ $batch->product->size_or_weight }} {{ $batch->product->unit_of_measurement }}
  • Batch No: {{ $batch->batch_number }}
  • Mfg Date: {{ $batch->manufacturing_date->format('d M Y') }}
  • Exp Date: {{ $batch->expiry_date->format('d M Y') }}
  • Total Generated Units: {{ $batch->units()->count() }}
Live Visual Preview ({{ $formats[$format] ?? $format }})
Showing {{ $units->count() }} of {{ $batch->units()->count() }} units
@if($units->isEmpty())
No units generated for this batch yet

Generate product units on the batch details page before previewing or printing labels.

Go to Batch Details
@else
@foreach($units as $unit)
Pavitram Agroz
{{ $unit->status }}
{!! $unit->qr_svg !!}
{{ substr($unit->qr_token, 0, 8) }}...
{{ $batch->product->name }}
Net Qty: {{ $batch->product->size_or_weight }} {{ $batch->product->unit_of_measurement }}
B: {{ $batch->batch_number }}
M: {{ $unit->manufacturing_date->format('d/m/y') }} | E: {{ $unit->expiry_date->format('d/m/y') }}
{{ $unit->serial_number }}
@endforeach
@endif
@endsection