@extends('layouts.authenticated') @section('title', 'Preview Label Barcode') @section('page-title', 'Preview Label Barcode') @push('scripts') @endpush @php $paperDimensions = [ '30x40' => ['width' => 30, 'height' => 40, 'label' => '30mm x 40mm'], '50x30' => ['width' => 50, 'height' => 30, 'label' => '50mm x 30mm'], '60x40' => ['width' => 60, 'height' => 40, 'label' => '60mm x 40mm'], '80x50' => ['width' => 80, 'height' => 50, 'label' => '80mm x 50mm'], 'A4' => ['width' => 210, 'height' => 297, 'label' => 'A4'], ]; $currentPaper = $paperDimensions[$paperSize] ?? $paperDimensions['30x40']; $paperWidth = $currentPaper['width']; $paperHeight = $currentPaper['height']; $paperLabel = $currentPaper['label']; $isThermalDirect = in_array($paperSize, ['30x40', '50x30'], true); // Preview uses the same aspect ratio as the print size. $previewScale = 7.2; $previewW = (int) round($paperWidth * $previewScale); $previewH = (int) round($paperHeight * $previewScale); @endphp @section('page-content')

Preview Label Barcode

{{ $products->count() }} produk × {{ $quantity }} label · {{ $paperLabel }}

Kembali
@endsection