@php // ZEBRA ZP888 SAFE CONSTANTS $printable_width = 3.25; // inches $gap_x = 0.1; // column gap $gap_y = 0.1; // row gap $sticker_width = 1.6; $sticker_height = 1.0; @endphp @foreach($page_products as $page_product) @if($loop->index % 2 === 0) @endif @if($loop->iteration % 2 === 0) @endif @endforeach
{{-- STICKER --}}
{{-- BUSINESS NAME --}} @if(!empty($print['business_name']))
{{$business_name}}
@endif {{-- PRODUCT NAME --}} @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 {{-- VARIATION --}} @if(!empty($print['variations']) && $page_product->is_dummy != 1)
{{$page_product->product_variation_name}}: {{$page_product->variation_name}}
@endif {{-- CUSTOM FIELDS --}} @php $custom_labels = json_decode(session('business.custom_labels'), true); $product_custom_fields = $custom_labels['product'] ?? []; @endphp @foreach($product_custom_fields as $cf) @php $field = 'product_custom_field'.$loop->iteration; @endphp @if(!empty($cf) && !empty($page_product->$field) && !empty($print[$field]))
{{$cf}}: {{$page_product->$field}}
@endif @endforeach {{-- PRICE --}} @if(!empty($print['price']))
@lang('lang_v1.price'): {{session('currency')['symbol'] ?? ''}} @if($print['price_type'] === 'inclusive') {{@num_format($page_product->sell_price_inc_tax)}} @else {{@num_format($page_product->default_sell_price)}} @endif
@endif {{-- EXPIRY --}} @if(!empty($print['exp_date']) && !empty($page_product->exp_date))
@lang('product.exp_date'): {{$page_product->exp_date}}
@endif {{-- PACKING DATE --}} @if(!empty($print['packing_date']) && !empty($page_product->packing_date))
@lang('lang_v1.packing_date'): {{$page_product->packing_date}}
@endif {{-- BARCODE --}}
{{$page_product->sub_sku}}