@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
{{-- 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 {{-- product_custom_fields --}} @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
{{-- 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 @if(!empty($print['exp_date']) && !empty($page_product->exp_date))
@lang('product.exp_date'): {{$page_product->exp_date}} @if($barcode_details->is_continuous)
@endif @endif @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}}