@extends('layouts.app') @section('title', __('invoice.add_invoice_layout')) @section('content') @php $custom_labels = json_decode(session('business.custom_labels'), true); @endphp
{!! Form::open(['url' => action([\App\Http\Controllers\InvoiceLayoutController::class, 'store']), 'method' => 'post', 'id' => 'add_invoice_layout_form', 'files' => true]) !!}
@lang('invoice.add_invoice_layout')

{!! Form::label('name', __('invoice.layout_name') . ':*') !!} {!! Form::text('name', null, ['class' => 'form-control bd-rd-7', 'required', 'placeholder' => '']); !!}
{!! Form::label('design', __('lang_v1.design') . ':*') !!} {!! Form::select('design', $designs, 'classic', ['class' => 'form-control bd-rd-7 select2']); !!} @lang('lang_v1.used_for_browser_based_printing')
@show_tooltip(__('lang_v1.tooltip_columnize_taxes_heading'))
{!! Form::label('letter_head', __('lang_v1.letter_head') . ':') !!} {!! Form::file('letter_head', ['accept' => 'image/*','class' => 'upload-invoice']); !!} @lang('lang_v1.letter_head_help')
@lang('lang_v1.invoice_logo_help', ['max_size' => '1 MB'])
{!! Form::label('logo', __('invoice.invoice_logo') . ':') !!} {!! Form::file('logo', ['accept' => 'image/*','class' => 'upload-invoice']); !!} @lang('lang_v1.invoice_logo_help', ['max_size' => '1 MB'])
{!! Form::label('header_text', __('invoice.header_text') . ':' ) !!} {!! Form::textarea('header_text','', ['class' => 'form-control bd-rd-7', 'placeholder' => '', 'rows' => 3]); !!}
{!! Form::label('sub_heading_line1', __('lang_v1.sub_heading_line', ['_number_' => 1]) . ':' ) !!} {!! Form::text('sub_heading_line1', null, ['class' => 'form-control bd-rd-7', 'placeholder' => '' ]); !!}
{!! Form::label('sub_heading_line2', __('lang_v1.sub_heading_line', ['_number_' => 2]) . ':' ) !!} {!! Form::text('sub_heading_line2', null, ['class' => 'form-control bd-rd-7', 'placeholder' => '' ]); !!}
{!! Form::label('sub_heading_line3', __('lang_v1.sub_heading_line', ['_number_' => 3]) . ':' ) !!} {!! Form::text('sub_heading_line3', null, ['class' => 'form-control bd-rd-7', 'placeholder' => '' ]); !!}
{!! Form::label('sub_heading_line4', __('lang_v1.sub_heading_line', ['_number_' => 4]) . ':' ) !!} {!! Form::text('sub_heading_line4', null, ['class' => 'form-control bd-rd-7', 'placeholder' => '' ]); !!}
{!! Form::label('sub_heading_line5', __('lang_v1.sub_heading_line', ['_number_' => 5]) . ':' ) !!} {!! Form::text('sub_heading_line5', null, ['class' => 'form-control bd-rd-7', 'placeholder' => '' ]); !!}
@lang('invoice.invoice_heading')

{!! Form::label('invoice_heading', __('invoice.invoice_heading') . ':' ) !!} {!! Form::text('invoice_heading', 'Invoice', ['class' => 'form-control bd-rd-7', 'placeholder' => '' ]); !!}
{!! Form::label('invoice_heading_not_paid', __('invoice.invoice_heading_not_paid') . ':' ) !!} {!! Form::text('invoice_heading_not_paid', null, ['class' => 'form-control bd-rd-7', 'placeholder' => '' ]); !!}
{!! Form::label('invoice_heading_paid', __('invoice.invoice_heading_paid') . ':' ) !!} {!! Form::text('invoice_heading_paid', null, ['class' => 'form-control bd-rd-7', 'placeholder' => '' ]); !!}
{!! Form::label('proforma_heading', __('lang_v1.proforma_heading') . ':' ) !!} @show_tooltip(__('lang_v1.tooltip_proforma_heading')) {!! Form::text('common_settings[proforma_heading]', __('lang_v1.proforma_invoice'), ['class' => 'form-control bd-rd-7', 'placeholder' => '', 'id' => 'proforma_heading' ]); !!}
{!! Form::label('quotation_heading', __('lang_v1.quotation_heading') . ':' ) !!} @show_tooltip(__('lang_v1.tooltip_quotation_heading')) {!! Form::text('quotation_heading', __('lang_v1.quotation'), ['class' => 'form-control bd-rd-7', 'placeholder' => '' ]); !!}
{!! Form::label('sales_order_heading', __('lang_v1.sales_order_heading') . ':' ) !!} {!! Form::text('common_settings[sales_order_heading]', __('lang_v1.sales_order'), ['class' => 'form-control bd-rd-7', 'placeholder' => '', 'id' => 'sales_order_heading' ]); !!}
{!! Form::label('invoice_no_prefix', __('invoice.invoice_no_prefix') . ':' ) !!} {!! Form::text('invoice_no_prefix', __('sale.invoice_no'), ['class' => 'form-control bd-rd-7', 'placeholder' => '' ]); !!}
{!! Form::label('quotation_no_prefix', __('lang_v1.quotation_no_prefix') . ':' ) !!} {!! Form::text('quotation_no_prefix', __('lang_v1.quotation_no'), ['class' => 'form-control bd-rd-7', 'placeholder' => '' ]); !!}
{!! Form::label('date_label', __('lang_v1.date_label') . ':' ) !!} {!! Form::text('date_label', __('lang_v1.date'), ['class' => 'form-control bd-rd-7', 'placeholder' => '' ]); !!}
{!! Form::label('due_date_label', __('lang_v1.due_date_label') . ':' ) !!} {!! Form::text('common_settings[due_date_label]', __('lang_v1.due_date'), ['class' => 'form-control bd-rd-7', 'placeholder' => '', 'id' => 'due_date_label' ]); !!}
{!! Form::label('date_time_format', __('lang_v1.date_time_format') . ':' ) !!} {!! Form::text('date_time_format', null, ['class' => 'form-control bd-rd-7', 'placeholder' => '' ]); !!}

{!! __('lang_v1.date_time_format_help') !!}

@php $sell_custom_field_1_label = !empty($custom_labels['sell']['custom_field_1']) ? $custom_labels['sell']['custom_field_1'] : ''; $sell_custom_field_2_label = !empty($custom_labels['sell']['custom_field_2']) ? $custom_labels['sell']['custom_field_2'] : ''; $sell_custom_field_3_label = !empty($custom_labels['sell']['custom_field_3']) ? $custom_labels['sell']['custom_field_3'] : ''; $sell_custom_field_4_label = !empty($custom_labels['sell']['custom_field_4']) ? $custom_labels['sell']['custom_field_4'] : ''; @endphp @if (!empty($sell_custom_field_1_label))
@endif @if (!empty($sell_custom_field_2_label))
@endif @if (!empty($sell_custom_field_3_label))
@endif @if (!empty($sell_custom_field_4_label))
@endif
{!! Form::label('sales_person_label', __('lang_v1.sales_person_label') . ':' ) !!} {!! Form::text('sales_person_label', null, ['class' => 'form-control bd-rd-7', 'placeholder' => '' ]); !!}
{!! Form::label('commission_agent_label', __('lang_v1.commission_agent_label') . ':' ) !!} {!! Form::text('commission_agent_label', __('lang_v1.commission_agent'), ['class' => 'form-control bd-rd-7', 'placeholder' => '' ]); !!}

@lang('lang_v1.fields_for_customer_details'):
{!! Form::label('customer_label', __('invoice.customer_label') . ':' ) !!} {!! Form::text('customer_label', __('contact.customer'), ['class' => 'form-control bd-rd-7', 'placeholder' => '' ]); !!}
{!! Form::label('client_id_label', __('lang_v1.client_id_label') . ':' ) !!} {!! Form::text('client_id_label', null, ['class' => 'form-control bd-rd-7', 'placeholder' => '' ]); !!}
{!! Form::label('client_tax_label', __('lang_v1.client_tax_label') . ':' ) !!} {!! Form::text('client_tax_label', null, ['class' => 'form-control bd-rd-7', 'placeholder' => '' ]); !!}

@lang('invoice.fields_to_be_shown_in_address'):

@lang('invoice.fields_to_shown_for_communication'):

@lang('invoice.fields_to_shown_for_tax'):
@lang('lang_v1.product_label')

{!! Form::label('table_product_label', __('lang_v1.product_label') . ':' ) !!} {!! Form::text('table_product_label', __('sale.product'), ['class' => 'form-control bd-rd-7', 'placeholder' => '' ]); !!}
{!! Form::label('table_qty_label', __('lang_v1.qty_label') . ':' ) !!} {!! Form::text('table_qty_label', __('lang_v1.quantity'), ['class' => 'form-control bd-rd-7', 'placeholder' => '' ]); !!}
{!! Form::label('table_unit_price_label', __('lang_v1.unit_price_label') . ':' ) !!} {!! Form::text('table_unit_price_label', __('sale.unit_price'), ['class' => 'form-control bd-rd-7', 'placeholder' => '' ]); !!}
{!! Form::label('table_subtotal_label', __('lang_v1.subtotal_label') . ':' ) !!} {!! Form::text('table_subtotal_label', __('sale.subtotal'), ['class' => 'form-control bd-rd-7', 'placeholder' => '' ]); !!}
{!! Form::label('cat_code_label', __('lang_v1.cat_code_label') . ':' ) !!} {!! Form::text('cat_code_label', 'HSN', ['class' => 'form-control bd-rd-7', 'placeholder' => 'HSN or Category Code' ]); !!}
{!! Form::label('total_quantity_label', __('lang_v1.total_quantity_label') . ':' ) !!} {!! Form::text('common_settings[total_quantity_label]', 'Total Quantity', ['class' => 'form-control bd-rd-7', 'placeholder' => '', 'id' => 'total_quantity_label' ]); !!}
{!! Form::label('item_discount_label', __('lang_v1.item_discount_label') . ':' ) !!} {!! Form::text('common_settings[item_discount_label]', 'Discount', ['class' => 'form-control bd-rd-7', 'placeholder' => '', 'id' => 'item_discount_label' ]); !!}
{!! Form::label('discounted_unit_price_label', __('lang_v1.discounted_unit_price_label') . ':' ) !!} {!! Form::text('common_settings[discounted_unit_price_label]', 'Price after discount', ['class' => 'form-control bd-rd-7', 'placeholder' => '', 'id' => 'discounted_unit_price_label' ]); !!}
@lang('lang_v1.product_details_to_be_shown'):

@lang('lang_v1.product_imei_or_sn')

@if(request()->session()->get('business.enable_product_expiry') == 1)
@endif @if(request()->session()->get('business.enable_lot_number') == 1)
@endif
@lang('invoice.discount_label')

{!! Form::label('sub_total_label', __('invoice.sub_total_label') . ':' ) !!} {!! Form::text('sub_total_label', __('sale.subtotal'), ['class' => 'form-control bd-rd-7', 'placeholder' => '' ]); !!}
{!! Form::label('discount_label', __('invoice.discount_label') . ':' ) !!} {!! Form::text('discount_label', __('sale.discount'), ['class' => 'form-control bd-rd-7', 'placeholder' => '' ]); !!}
{!! Form::label('tax_label', __('invoice.tax_label') . ':' ) !!} {!! Form::text('tax_label', __('sale.tax'), ['class' => 'form-control bd-rd-7', 'placeholder' => '' ]); !!}
{!! Form::label('total_label', __('invoice.total_label') . ':' ) !!} {!! Form::text('total_label', __('sale.total'), ['class' => 'form-control bd-rd-7', 'placeholder' => '' ]); !!}
{!! Form::label('total_items_label', __('lang_v1.total_items_label') . ':' ) !!} {!! Form::text('common_settings[total_items_label]', null, ['class' => 'form-control bd-rd-7', 'placeholder' => '', 'id' => 'total_items_label' ]); !!}
{!! Form::label('round_off_label', __('lang_v1.round_off_label') . ':' ) !!} {!! Form::text('round_off_label', __('lang_v1.round_off'), ['class' => 'form-control bd-rd-7', 'placeholder' => '' ]); !!}
{!! Form::label('total_due_label', __('invoice.total_due_label') . ' (' . __('lang_v1.current_sale') . '):' ) !!} {!! Form::text('total_due_label', __('report.total_due'), ['class' => 'form-control bd-rd-7', 'placeholder' => '' ]); !!}
{!! Form::label('paid_label', __('invoice.paid_label') . ':' ) !!} {!! Form::text('paid_label', __('sale.total_paid'), ['class' => 'form-control bd-rd-7', 'placeholder' => '' ]); !!}
{!! Form::label('prev_bal_label', __('invoice.total_due_label') . ' (' . __('lang_v1.all_sales') . '):' ) !!} {!! Form::text('prev_bal_label', '', ['class' => 'form-control bd-rd-7', 'placeholder' => '' ]); !!}
@show_tooltip(__('lang_v1.previous_bal_due_help'))
{!! Form::label('change_return_label', __('lang_v1.change_return_label') . ':' ) !!} @show_tooltip(__('lang_v1.change_return_help')) {!! Form::text('change_return_label', __('lang_v1.change_return'), ['class' => 'form-control bd-rd-7', 'placeholder' => '' ]); !!}
@show_tooltip(__('lang_v1.show_in_word_help')) @if(!extension_loaded('intl'))

@lang('lang_v1.enable_php_intl_extension')

@endif
{!! Form::label('word_format', __('lang_v1.word_format') . ':') !!} @show_tooltip(__('lang_v1.word_format_help')) {!! Form::select('common_settings[num_to_word_format]', ['international' => __('lang_v1.international'), 'indian' => __('lang_v1.indian')], 'international', ['class' => 'form-control select2', 'id' => 'word_format']); !!}
{!! Form::label('tax_summary_label', __('lang_v1.tax_summary_label') . ':' ) !!} {!! Form::text('common_settings[tax_summary_label]', '', ['class' => 'form-control bd-rd-7', 'placeholder' => '', 'id' => 'tax_summary_label' ]); !!}
@lang('invoice.footer_text')

{!! Form::label('highlight_color', __('invoice.highlight_color') . ':' ) !!} {!! Form::text('highlight_color', '#000000', ['class' => 'form-control bd-rd-7', 'placeholder' => '' ]); !!}

{!! Form::label('footer_text', __('invoice.footer_text') . ':' ) !!} {!! Form::textarea('footer_text', null, ['class' => 'form-control bd-rd-7', 'placeholder' => '', 'rows' => 3]); !!}

@component('components.widget', ['class' => 'box-solid','icon' => 'fa fa-qrcode text-dark', 'title' => __('lang_v1.qr_code')])
@show_tooltip(__('lang_v1.zatca_qr_help'))

@lang('lang_v1.fields_to_be_shown'):
@endcomponent @if(!empty($enabled_modules) && in_array('types_of_service', $enabled_modules) ) @include('types_of_service.invoice_layout_settings') @endif @include('restaurant.partials.invoice_layout') @if(Module::has('Repair')) @include('repair::layouts.partials.invoice_layout_settings') @endif
@lang('lang_v1.layout_credit_note')

{!! Form::label('cn_heading', __('lang_v1.cn_heading') . ':' ) !!} {!! Form::text('cn_heading', 'Credit Note', ['class' => 'form-control bd-rd-7', 'placeholder' => '' ]); !!}
{!! Form::label('cn_no_label', __('lang_v1.cn_no_label') . ':' ) !!} {!! Form::text('cn_no_label', __('purchase.ref_no'), ['class' => 'form-control bd-rd-7', 'placeholder' => '' ]); !!}
{!! Form::label('cn_amount_label', __('lang_v1.cn_amount_label') . ':' ) !!} {!! Form::text('cn_amount_label', 'Credit Amount', ['class' => 'form-control bd-rd-7', 'placeholder' => '' ]); !!}
{!! Form::close() !!}
@stop @section('javascript') @endsection