@extends('layouts.app') @section('title', __('invoice.edit_invoice_layout')) @section('content')

@lang('invoice.edit_invoice_layout')

{!! Form::open(['url' => action('InvoiceLayoutController@update', [$invoice_layout->id]), 'method' => 'put', 'id' => 'add_invoice_layout_form', 'files' => true]) !!} @php $product_custom_fields = !empty($invoice_layout->product_custom_fields) ? $invoice_layout->product_custom_fields : []; $contact_custom_fields = !empty($invoice_layout->contact_custom_fields) ? $invoice_layout->contact_custom_fields : []; $location_custom_fields = !empty($invoice_layout->location_custom_fields) ? $invoice_layout->location_custom_fields : []; $custom_labels = json_decode(session('business.custom_labels'), true); @endphp
{!! Form::label('name', __('invoice.layout_name') . ':*') !!} {!! Form::text('name', $invoice_layout->name, ['class' => 'form-control', 'required', 'placeholder' => __('invoice.layout_name')]); !!}
{!! Form::label('design', __('lang_v1.design') . ':*') !!} {!! Form::select('design', $designs, $invoice_layout->design, ['class' => 'form-control']); !!} @lang('lang_v1.used_for_browser_based_printing')
design != 'columnize-taxes') disabled @endif> @show_tooltip(__('lang_v1.tooltip_columnize_taxes_heading'))
design != 'columnize-taxes') disabled @endif>
design != 'columnize-taxes') disabled @endif>
design != 'columnize-taxes') disabled @endif>
{!! Form::label('logo', __('invoice.invoice_logo') . ':') !!} {!! Form::file('logo', ['accept' => 'image/*']); !!} @lang('lang_v1.invoice_logo_help', ['max_size' => '1 MB'])
@lang('lang_v1.invoice_logo_help2')
{!! Form::label('header_text', __('invoice.header_text') . ':' ) !!} {!! Form::textarea('header_text', $invoice_layout->header_text, ['class' => 'form-control', 'placeholder' => __('invoice.header_text'), 'rows' => 3]); !!}
{!! Form::label('sub_heading_line1', __('lang_v1.sub_heading_line', ['_number_' => 1]) . ':' ) !!} {!! Form::text('sub_heading_line1', $invoice_layout->sub_heading_line1, ['class' => 'form-control', 'placeholder' => __('lang_v1.sub_heading_line', ['_number_' => 1]) ]); !!}
{!! Form::label('sub_heading_line2', __('lang_v1.sub_heading_line', ['_number_' => 2]) . ':' ) !!} {!! Form::text('sub_heading_line2', $invoice_layout->sub_heading_line2, ['class' => 'form-control', 'placeholder' => __('lang_v1.sub_heading_line', ['_number_' => 2]) ]); !!}
{!! Form::label('sub_heading_line3', __('lang_v1.sub_heading_line', ['_number_' => 3]) . ':' ) !!} {!! Form::text('sub_heading_line3', $invoice_layout->sub_heading_line3, ['class' => 'form-control', 'placeholder' => __('lang_v1.sub_heading_line', ['_number_' => 3]) ]); !!}
{!! Form::label('sub_heading_line4', __('lang_v1.sub_heading_line', ['_number_' => 4]) . ':' ) !!} {!! Form::text('sub_heading_line4', $invoice_layout->sub_heading_line4, ['class' => 'form-control', 'placeholder' => __('lang_v1.sub_heading_line', ['_number_' => 4]) ]); !!}
{!! Form::label('sub_heading_line5', __('lang_v1.sub_heading_line', ['_number_' => 5]) . ':' ) !!} {!! Form::text('sub_heading_line5', $invoice_layout->sub_heading_line5, ['class' => 'form-control', 'placeholder' => __('lang_v1.sub_heading_line', ['_number_' => 5]) ]); !!}
{!! Form::label('invoice_heading', __('invoice.invoice_heading') . ':' ) !!} {!! Form::text('invoice_heading', $invoice_layout->invoice_heading, ['class' => 'form-control', 'placeholder' => __('invoice.invoice_heading') ]); !!}
{!! Form::label('invoice_heading_not_paid', __('invoice.invoice_heading_not_paid') . ':' ) !!} {!! Form::text('invoice_heading_not_paid', $invoice_layout->invoice_heading_not_paid, ['class' => 'form-control', 'placeholder' => __('invoice.invoice_heading_not_paid') ]); !!}
{!! Form::label('invoice_heading_paid', __('invoice.invoice_heading_paid') . ':' ) !!} {!! Form::text('invoice_heading_paid', $invoice_layout->invoice_heading_paid, ['class' => 'form-control', 'placeholder' => __('invoice.invoice_heading_paid') ]); !!}
{!! Form::label('quotation_heading', __('lang_v1.quotation_heading') . ':' ) !!}@show_tooltip(__('lang_v1.tooltip_quotation_heading')) {!! Form::text('quotation_heading', $invoice_layout->quotation_heading, ['class' => 'form-control', 'placeholder' => __('lang_v1.quotation_heading') ]); !!}
{!! Form::label('invoice_no_prefix', __('invoice.invoice_no_prefix') . ':' ) !!} {!! Form::text('invoice_no_prefix', $invoice_layout->invoice_no_prefix, ['class' => 'form-control', 'placeholder' => __('invoice.invoice_no_prefix') ]); !!}
{!! Form::label('quotation_no_prefix', __('lang_v1.quotation_no_prefix') . ':' ) !!} {!! Form::text('quotation_no_prefix', $invoice_layout->quotation_no_prefix, ['class' => 'form-control', 'placeholder' => __('lang_v1.quotation_no_prefix') ]); !!}
{!! Form::label('date_label', __('lang_v1.date_label') . ':' ) !!} {!! Form::text('date_label', $invoice_layout->date_label, ['class' => 'form-control', 'placeholder' => __('lang_v1.date_label') ]); !!}
{!! Form::label('due_date_label', __('lang_v1.due_date_label') . ':' ) !!} {!! Form::text('common_settings[due_date_label]', !empty($invoice_layout->common_settings['due_date_label']) ? $invoice_layout->common_settings['due_date_label'] : null, ['class' => 'form-control', 'placeholder' => __('lang_v1.due_date_label'), 'id' => 'due_date_label' ]); !!}
{!! Form::label('date_time_format', __('lang_v1.date_time_format') . ':' ) !!} {!! Form::text('date_time_format', $invoice_layout->date_time_format, ['class' => 'form-control', 'placeholder' => __('lang_v1.date_time_format') ]); !!}

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

{!! Form::label('sales_person_label', __('lang_v1.sales_person_label') . ':' ) !!} {!! Form::text('sales_person_label', $invoice_layout->sales_person_label, ['class' => 'form-control', 'placeholder' => __('lang_v1.sales_person_label') ]); !!}

@lang('lang_v1.fields_for_customer_details'):

{!! Form::label('customer_label', __('invoice.customer_label') . ':' ) !!} {!! Form::text('customer_label', $invoice_layout->customer_label, ['class' => 'form-control', 'placeholder' => __('invoice.customer_label') ]); !!}
{!! Form::label('client_id_label', __('lang_v1.client_id_label') . ':' ) !!} {!! Form::text('client_id_label', $invoice_layout->client_id_label, ['class' => 'form-control', 'placeholder' => __('lang_v1.client_id_label') ]); !!}
{!! Form::label('client_tax_label', __('lang_v1.client_tax_label') . ':' ) !!} {!! Form::text('client_tax_label', $invoice_layout->client_tax_label, ['class' => 'form-control', 'placeholder' => __('lang_v1.client_tax_label') ]); !!}

@lang('invoice.fields_to_be_shown_in_address'):

{!! Form::label('table_product_label', __('lang_v1.product_label') . ':' ) !!} {!! Form::text('table_product_label', $invoice_layout->table_product_label, ['class' => 'form-control', 'placeholder' => __('lang_v1.product_label') ]); !!}
{!! Form::label('table_qty_label', __('lang_v1.qty_label') . ':' ) !!} {!! Form::text('table_qty_label', $invoice_layout->table_qty_label, ['class' => 'form-control', 'placeholder' => __('lang_v1.qty_label') ]); !!}
{!! Form::label('table_unit_price_label', __('lang_v1.unit_price_label') . ':' ) !!} {!! Form::text('table_unit_price_label', $invoice_layout->table_unit_price_label, ['class' => 'form-control', 'placeholder' => __('lang_v1.unit_price_label') ]); !!}
{!! Form::label('table_subtotal_label', __('lang_v1.subtotal_label') . ':' ) !!} {!! Form::text('table_subtotal_label', $invoice_layout->table_subtotal_label, ['class' => 'form-control', 'placeholder' => __('lang_v1.subtotal_label') ]); !!}
{!! Form::label('cat_code_label', __('lang_v1.cat_code_label') . ':' ) !!} {!! Form::text('cat_code_label', $invoice_layout->cat_code_label, ['class' => 'form-control', 'placeholder' => 'HSN or Category Code' ]); !!}
{!! Form::label('total_quantity_label', __('lang_v1.total_quantity_label') . ':' ) !!} {!! Form::text('common_settings[total_quantity_label]', !empty($invoice_layout->common_settings['total_quantity_label']) ? $invoice_layout->common_settings['total_quantity_label'] : null, ['class' => 'form-control', 'placeholder' => __('lang_v1.total_quantity_label'), 'id' => 'total_quantity_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
{!! Form::label('sub_total_label', __('invoice.sub_total_label') . ':' ) !!} {!! Form::text('sub_total_label', $invoice_layout->sub_total_label, ['class' => 'form-control', 'placeholder' => __('invoice.sub_total_label') ]); !!}
{!! Form::label('discount_label', __('invoice.discount_label') . ':' ) !!} {!! Form::text('discount_label', $invoice_layout->discount_label, ['class' => 'form-control', 'placeholder' => __('invoice.discount_label') ]); !!}
{!! Form::label('tax_label', __('invoice.tax_label') . ':' ) !!} {!! Form::text('tax_label', $invoice_layout->tax_label, ['class' => 'form-control', 'placeholder' => __('invoice.tax_label') ]); !!}
{!! Form::label('total_label', __('invoice.total_label') . ':' ) !!} {!! Form::text('total_label', $invoice_layout->total_label, ['class' => 'form-control', 'placeholder' => __('invoice.total_label') ]); !!}
{!! Form::label('round_off_label', __('lang_v1.round_off_label') . ':' ) !!} {!! Form::text('round_off_label', $invoice_layout->round_off_label, ['class' => 'form-control', 'placeholder' => __('lang_v1.round_off_label') ]); !!}
{!! Form::label('total_due_label', __('invoice.total_due_label') . ' (' . __('lang_v1.current_sale') . '):' ) !!} {!! Form::text('total_due_label', $invoice_layout->total_due_label, ['class' => 'form-control', 'placeholder' => __('invoice.total_due_label') ]); !!}
{!! Form::label('paid_label', __('invoice.paid_label') . ':' ) !!} {!! Form::text('paid_label', $invoice_layout->paid_label, ['class' => 'form-control', 'placeholder' => __('invoice.paid_label') ]); !!}
{!! Form::label('prev_bal_label', __('invoice.total_due_label') . ' (' . __('lang_v1.all_sales') . '):' ) !!} {!! Form::text('prev_bal_label', $invoice_layout->prev_bal_label, ['class' => 'form-control', 'placeholder' => __('invoice.total_due_label') ]); !!}
@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', $invoice_layout->change_return_label, ['class' => 'form-control', 'placeholder' => __('lang_v1.change_return_label') ]); !!}
@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')], $invoice_layout->common_settings['num_to_word_format'] ?? 'international', ['class' => 'form-control', 'id' => 'word_format']); !!}
{!! Form::label('highlight_color', __('invoice.highlight_color') . ':' ) !!} {!! Form::text('highlight_color', $invoice_layout->highlight_color, ['class' => 'form-control', 'placeholder' => __('invoice.highlight_color') ]); !!}

{!! Form::label('footer_text', __('invoice.footer_text') . ':' ) !!} {!! Form::textarea('footer_text', $invoice_layout->footer_text, ['class' => 'form-control', 'placeholder' => __('invoice.footer_text'), 'rows' => 3]); !!}
@if(empty($invoice_layout->is_default))

@endif
@if(!empty($enabled_modules) && in_array('types_of_service', $enabled_modules) ) @include('types_of_service.invoice_layout_settings', ['module_info' => $invoice_layout->module_info]) @endif @include('restaurant.partials.invoice_layout', ['module_info' => $invoice_layout->module_info, 'edit_il' => true]) @if(Module::has('Repair')) @include('repair::layouts.partials.invoice_layout_settings', ['module_info' => $invoice_layout->module_info, 'edit_il' => true]) @endif

@lang('lang_v1.layout_credit_note')

{!! Form::label('cn_heading', __('lang_v1.cn_heading') . ':' ) !!} {!! Form::text('cn_heading', $invoice_layout->cn_heading, ['class' => 'form-control', 'placeholder' => __('lang_v1.cn_heading') ]); !!}
{!! Form::label('cn_no_label', __('lang_v1.cn_no_label') . ':' ) !!} {!! Form::text('cn_no_label', $invoice_layout->cn_no_label, ['class' => 'form-control', 'placeholder' => __('lang_v1.cn_no_label') ]); !!}
{!! Form::label('cn_amount_label', __('lang_v1.cn_amount_label') . ':' ) !!} {!! Form::text('cn_amount_label', $invoice_layout->cn_amount_label, ['class' => 'form-control', 'placeholder' => __('lang_v1.cn_amount_label') ]); !!}
{!! Form::close() !!}
@stop @section('javascript') @endsection