@foreach($page_products as $page_product) @if($loop->index % $barcode_details->stickers_in_one_row == 0) @endif @if($loop->iteration % $barcode_details->stickers_in_one_row == 0) @endif @endforeach
@if(!empty($print['business_name'])) {{ $business_name }} @endif @if(!empty($print['name'])) {{ $page_product->product_actual_name }} @if(!empty($print['lot_number']) && !empty($page_product->lot_number)) ({{ $page_product->lot_number }}) @endif @endif @if(!empty($print['variations']) && $page_product->is_dummy != 1) {{$page_product->product_variation_name}}: {{$page_product->variation_name}} @endif @php $custom_labels = json_decode(session('business.custom_labels'), true); $product_custom_fields = !empty($custom_labels['product']) ? $custom_labels['product'] : []; @endphp @foreach($product_custom_fields as $index => $cf) @php $field_name = 'product_custom_field' . $loop->iteration; @endphp @if(!empty($cf) && !empty($page_product->$field_name) && !empty($print[$field_name])) {{ $cf }}: {{ $page_product->$field_name }} @endif @endforeach @if(!empty($print['price'])) @lang('lang_v1.price'): @php $currency_symbol = session('currency')['symbol'] ?? ''; $currency_placement = session('business.currency_symbol_placement') ?? 'before'; if(!empty($print['price_type']) && $print['price_type'] == 'inclusive') { $price_amount = $page_product->sell_price_inc_tax; } else { $price_amount = $page_product->default_sell_price; } @endphp @if($currency_placement === 'after') {{ $price_amount }} {{ $currency_symbol }} @else {{ $currency_symbol }} {{ $price_amount }} @endif @endif @if(!empty($print['exp_date']) && !empty($page_product->exp_date)) @lang('product.exp_date'): {{$page_product->exp_date}} @endif @if(!empty($print['packing_date']) && !empty($page_product->packing_date)) @lang('lang_v1.packing_date'): {{$page_product->packing_date}} @endif
@if (!empty($print['image']) && !empty($image_url)) Label Image @endif @if(!empty($print['barcode'])) @php // Simple inline calculations that work $barcode_width_factor = 5; // Better quality than default 1 $barcode_height = max(10, ($print['barcode_size'] ?? 0.8) * 50); @endphp @endif @if(!empty($print['qrcode'])) @php // High resolution for clarity $qr_size = max(120, ($print['qrcode_size'] ?? 1.4) * 80); $qr_display_size = ($print['qrcode_size'] ?? 1.4) * 72; @endphp @endif
@if(!empty($print['sku'])) {{$page_product->sub_sku}} @endif