@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
{{$page_product->sub_sku}}
{{-- Business Name --}} @if(!empty($print['business_name'])) {{$business_name}} @endif {{-- Product Name --}} @if(!empty($print['name'])) @php $originalName = $page_product->product_actual_name; $productName = strlen($originalName) > 25 ? substr($originalName, 0, 22) . '...' : $originalName; $fontSize = strlen($productName) > 15 ? $print['name_size'] - 1 : $print['name_size']; @endphp {{ $productName }} @if(!empty($page_product->brand)) {{ $page_product->brand }} @endif @endif {{-- Barcode --}} {{-- 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 {{-- MRP --}} @if(!empty($page_product->product_custom_field4) && !empty($page_product->product_custom_field4) && $page_product->product_custom_field4!=$page_product->sell_price_inc_tax) MRP: {{session('currency')['symbol'] ?? ''}} {{ number_format($page_product->product_custom_field4, 2) }}
@endif {{-- 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
@if(!empty($page_product->product_custom_field2) && !empty($page_product->product_custom_field2)) Size : {{$page_product->product_custom_field2}} @endif