@extends('layouts.app_products') @section('title', __('barcode.print_labels')) @section('content')
{!! Form::open(['url' => '#', 'method' => 'post', 'id' => 'preview_setting_form', 'onsubmit' => 'return false']) !!} @component('components.widget', ['class' => 'card'])
{!! 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])
{{ __('barcode.products') }} {{ __('barcode.no_of_labels') }}{{ __('lang_v1.lot_number') }}{{ __('product.exp_date') }}{{ __('lang_v1.packing_date') }} {{ __('lang_v1.selling_price_group') }}
@endcomponent @component('components.widget', ['class' => 'card', 'title' => __('barcode.info_in_labels')])
@if(request()->session()->get('business.enable_lot_number') == 1) @endif @if(request()->session()->get('business.enable_product_expiry') == 1) @endif @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
{!! Form::select('print[price_type]', ['inclusive' => __('product.inc_of_tax'), 'exclusive' => __('product.exc_of_tax')], 'inclusive', ['class' => 'form-control select2']) !!} {!! Form::label('print[price_type]', __('barcode.show_price') . ':') !!}
{!! Form::select('barcode_setting', $barcode_settings, !empty($default) ? $default->id : null, ['class' => 'form-control select2']); !!} {!! Form::label('price_type', @trans( 'barcode.barcode_setting' ) . ':') !!}
@endcomponent {!! Form::close() !!}

{{ __('barcode.preview') }}

@stop @section('javascript') @endsection