<div style="width: {{ $barcode_details->width }}in; font-family: Arial, Helvetica, sans-serif; text-align:center">
    @foreach ($page_products as $page_product)
        <div class="printable" style="display:flex; flex-direction:column; align-items:center;justify-content:center; width:{{$barcode_details->width}}in; height:{{$barcode_details->height}}in">
            @if(!empty($print['business_name']))
                <div class="row">
                    <b style="display: block !important; font-size: {{$print['business_name_size']}}px">{{$business_name}}</b>
                </div>          
            @endif
            {{-- Product Name --}}
            @if (!empty($print['name']))
                <div class="row">
                    <span style="font-size: {{$print['name_size']}}px; font-weight: bolder;">
                        {{$page_product->product_actual_name}}

                        @if(!empty($print['lot_number']) && !empty($page_product->lot_number))
                            <span style="font-size: {{12*$factor}}px">
                                ({{$page_product->lot_number}})
                            </span>
                        @endif
                    </span>
                </div>
            @endif
        
            {{-- Variation --}}
            @if(!empty($print['variations']) && $page_product->is_dummy != 1)
                <div class="row">
                    <span style="font-size: {{$print['variations_size']}}px">
                        {{$page_product->product_variation_name}}:<b>{{$page_product->variation_name}}</b>
                    </span>
                </div>    
            @endif
        
            {{-- Price --}}
            @if(!empty($print['price']))
                <div class="row">
                    <span style="font-size: {{$print['price_size']}}px; font-weight: bolder">
                        <b>
                            @if($print['price_type'] == 'inclusive')
                                {{number_format($page_product->sell_price_inc_tax, 0)}}/-
                            @else
                                {{number_format($page_product->default_sell_price, 0)}}/-
                            @endif
                        </b>
                    </span>
                </div>
            @endif
        
            {{-- Expiration Date --}}
            @if(!empty($print['exp_date']) && !empty($page_product->exp_date))
                <div class="row">
                    <span style="font-size: {{$print['exp_date_size']}}px">
                        <strong>@lang('product.exp_date'):</strong>
                        {{$page_product->exp_date}}
                    </span>
                </div>
            @endif
        
            {{-- Packing Date --}}
            @if(!empty($print['packing_date']) && !empty($page_product->packing_date))
                <div class="row">
                    <span style="font-size: {{$print['packing_date_size']}}px">
                        <strong>@lang('lang_v1.packing_date'):</strong>
                        {{$page_product->packing_date}}
                    </span>
                </div>
            @endif

            <div class="row">
                {{-- Barcode --}}
                <img style="max-width:90% !important;height: {{$barcode_details->height*0.18}}in !important; display: block;" src="data:image/png;base64,{{DNS1D::getBarcodePNG($page_product->sub_sku, $page_product->barcode_type, 1,30, array(0, 0, 0), false)}}">
            
                <span style="font-size: 12px !important">
                    {{$page_product->sub_sku}}
                </span>
            </div>
        </div>
    @endforeach
</div>

    
    <style>
    
        @media print{
            
            .printable{
                page-break-after: always;
            }
    
            body{
                margin:0;
                margin-left: 80px !important;
            }

            @page {
                margin-top: 0;
            }
        }

    </style>
    