@extends('layouts.app')
@section('title', __('barcode.print_labels'))
@section('content')
@lang('barcode.print_labels') @show_tooltip(__('tooltip.print_label'))
@include('labels.partials.show_table_rows', ['index' => 0])
@lang( 'barcode.products' )
@lang( 'barcode.no_of_labels' )
@if(request()->session()->get('business.enable_lot_number') == 1)
@lang( 'lang_v1.lot_number' )
@endif
@if(request()->session()->get('business.enable_product_expiry') == 1)
@lang( 'product.exp_date' )
@endif
@lang('lang_v1.packing_date')
@lang('lang_v1.selling_price_group')
@if(request()->session()->get('business.enable_lot_number') == 1)
@if(request()->session()->get('business.enable_product_expiry') == 1)
@php
$c = 0;
$custom_labels = json_decode(session('business.custom_labels'), true);
$product_custom_fields = !empty($custom_labels['product']) ? $custom_labels['product'] : [];
$product_cf_details = !empty($custom_labels['product_cf_details']) ? $custom_labels['product_cf_details'] : [];
@endphp
@foreach($product_custom_fields as $index => $cf)
@if(!empty($cf))
@php
$field_name = 'product_custom_field' . $loop->iteration;
$cf_type = !empty($product_cf_details[$loop->iteration]['type']) ? $product_cf_details[$loop->iteration]['type'] : 'text';
$dropdown = !empty($product_cf_details[$loop->iteration]['dropdown_options']) ? explode(PHP_EOL, $product_cf_details[$loop->iteration]['dropdown_options']) : [];
$c++;
@endphp
@endif
@endif
@endforeach
@if ($c % 4 == 0)