@extends('layouts.app') @section('title', __('barcode.print_labels')) @section('content')

@lang('barcode.print_labels') @show_tooltip(__('tooltip.print_label'))

{!! Form::open(['url' => '#', 'method' => 'post', 'id' => 'preview_setting_form', 'onsubmit' => 'return false']) !!} @component('components.widget', ['class' => 'box-primary', 'title' => __('product.add_product_for_labels')])
{!! Form::text('search_product', null, ['class' => 'form-control', 'id' => 'search_product_for_label', 'placeholder' => __('lang_v1.enter_product_name_to_print_labels'), 'autofocus']); !!}
@if(request()->session()->get('business.enable_lot_number') == 1) @endif @if(request()->session()->get('business.enable_product_expiry') == 1) @endif @include('labels.partials.show_table_rows', ['index' => 0])
@lang( 'barcode.products' ) @lang( 'barcode.no_of_labels' )@lang( 'lang_v1.lot_number' )@lang( 'product.exp_date' )@lang('lang_v1.packing_date') @lang('lang_v1.selling_price_group')
@endcomponent @component('components.widget', ['class' => 'box-primary', 'title' => __( 'barcode.info_in_labels' )])
@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 @if ($c % 4 == 0) @endif @endif @endforeach
@lang( 'lang_v1.size' )
@lang( 'lang_v1.size' )
@lang( 'lang_v1.size' )
{!! Form::label('print[price_type]', @trans( 'barcode.show_price' ) . ':') !!}
{!! Form::select('print[price_type]', ['inclusive' => __('product.inc_of_tax'), 'exclusive' => __('product.exc_of_tax')], 'inclusive', ['class' => 'form-control']); !!}
@lang( 'lang_v1.size' )
@lang( 'lang_v1.size' )
@if(request()->session()->get('business.enable_lot_number') == 1)
@lang( 'lang_v1.size' )
@endif
@if(request()->session()->get('business.enable_product_expiry') == 1)
@lang( 'lang_v1.size' )
@endif
@lang( 'lang_v1.size' )

{!! Form::label('price_type', @trans( 'barcode.barcode_setting' ) . ':') !!}
{!! Form::select('barcode_setting', $barcode_settings, !empty($default) ? $default->id : null, ['class' => 'form-control']); !!}
@endcomponent {!! Form::close() !!}

@lang( 'barcode.preview' )

@stop @section('javascript') @endsection