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

@lang('invoice.add_invoice_layout')

{!! Form::open(['url' => action('InvoiceLayoutController@store'), 'method' => 'post', 'id' => 'add_invoice_layout_form', 'files' => true]) !!}
{!! Form::label('name', __('invoice.layout_name') . ':*') !!} {!! Form::text('name', null, ['class' => 'form-control', 'required', 'placeholder' => __('invoice.layout_name')]); !!}
{!! Form::label('design', __('lang_v1.design') . ':*') !!} {!! Form::select('design', $designs, 'classic', ['class' => 'form-control']); !!} Used for browser based printing
@show_tooltip(__('lang_v1.tooltip_columnize_taxes_heading'))
{!! Form::label('logo', __('invoice.invoice_logo') . ':') !!} {!! Form::file('logo'); !!} @lang('lang_v1.invoice_logo_help', ['max_size' => '1 MB'])
{!! Form::label('header_text', __('invoice.header_text') . ':' ) !!} {!! Form::textarea('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', null, ['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', null, ['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', null, ['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', null, ['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', null, ['class' => 'form-control', 'placeholder' => __('lang_v1.sub_heading_line', ['_number_' => 5]) ]); !!}
{!! Form::label('invoice_heading', __('invoice.invoice_heading') . ':' ) !!} {!! Form::text('invoice_heading', 'Invoice', ['class' => 'form-control', 'placeholder' => __('invoice.invoice_heading') ]); !!}
{!! Form::label('invoice_heading_not_paid', __('invoice.invoice_heading_not_paid') . ':' ) !!} {!! Form::text('invoice_heading_not_paid', null, ['class' => 'form-control', 'placeholder' => __('invoice.invoice_heading_not_paid') ]); !!}
{!! Form::label('invoice_heading_paid', __('invoice.invoice_heading_paid') . ':' ) !!} {!! Form::text('invoice_heading_paid', null, ['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', 'Quotation', ['class' => 'form-control', 'placeholder' => __('lang_v1.quotation_heading') ]); !!}
{!! Form::label('invoice_no_prefix', __('invoice.invoice_no_prefix') . ':' ) !!} {!! Form::text('invoice_no_prefix', 'Invoice No.', ['class' => 'form-control', 'placeholder' => __('invoice.invoice_no_prefix') ]); !!}
{!! Form::label('quotation_no_prefix', __('lang_v1.quotation_no_prefix') . ':' ) !!} {!! Form::text('quotation_no_prefix', 'Quotation No.', ['class' => 'form-control', 'placeholder' => __('lang_v1.quotation_no_prefix') ]); !!}
{!! Form::label('date_label', __('lang_v1.date_label') . ':' ) !!} {!! Form::text('date_label', 'Date', ['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]', 'Due Date', ['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', null, ['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', null, ['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', 'Customer', ['class' => 'form-control', 'placeholder' => __('invoice.customer_label') ]); !!}
{!! Form::label('client_id_label', __('lang_v1.client_id_label') . ':' ) !!} {!! Form::text('client_id_label', null, ['class' => 'form-control', 'placeholder' => __('lang_v1.client_id_label') ]); !!}
{!! Form::label('client_tax_label', __('lang_v1.client_tax_label') . ':' ) !!} {!! Form::text('client_tax_label', null, ['class' => 'form-control', 'placeholder' => __('lang_v1.client_tax_label') ]); !!}

@lang('invoice.fields_to_be_shown_in_address'):

@lang('invoice.fields_to_shown_for_communication'):

@lang('invoice.fields_to_shown_for_tax'):

{!! Form::label('table_product_label', __('lang_v1.product_label') . ':' ) !!} {!! Form::text('table_product_label', 'Product', ['class' => 'form-control', 'placeholder' => __('lang_v1.product_label') ]); !!}
{!! Form::label('table_qty_label', __('lang_v1.qty_label') . ':' ) !!} {!! Form::text('table_qty_label', 'Quantity', ['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', 'Unit Price', ['class' => 'form-control', 'placeholder' => __('lang_v1.unit_price_label') ]); !!}
{!! Form::label('table_subtotal_label', __('lang_v1.subtotal_label') . ':' ) !!} {!! Form::text('table_subtotal_label', 'Subtotal', ['class' => 'form-control', 'placeholder' => __('lang_v1.subtotal_label') ]); !!}
{!! Form::label('cat_code_label', __('lang_v1.cat_code_label') . ':' ) !!} {!! Form::text('cat_code_label', 'HSN', ['class' => 'form-control', 'placeholder' => 'HSN or Category Code' ]); !!}

@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', 'Subtotal', ['class' => 'form-control', 'placeholder' => __('invoice.sub_total_label') ]); !!}
{!! Form::label('discount_label', __('invoice.discount_label') . ':' ) !!} {!! Form::text('discount_label', 'Discount', ['class' => 'form-control', 'placeholder' => __('invoice.discount_label') ]); !!}
{!! Form::label('tax_label', __('invoice.tax_label') . ':' ) !!} {!! Form::text('tax_label', 'Tax', ['class' => 'form-control', 'placeholder' => __('invoice.tax_label') ]); !!}
{!! Form::label('total_label', __('invoice.total_label') . ':' ) !!} {!! Form::text('total_label', 'Total', ['class' => 'form-control', 'placeholder' => __('invoice.total_label') ]); !!}
{!! Form::label('total_due_label', __('invoice.total_due_label') . ' (' . __('lang_v1.current_sale') . '):' ) !!} {!! Form::text('total_due_label', 'Total Due', ['class' => 'form-control', 'placeholder' => __('invoice.total_due_label') ]); !!}
{!! Form::label('paid_label', __('invoice.paid_label') . ':' ) !!} {!! Form::text('paid_label', 'Total Paid', ['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', 'All Balance Due', ['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', 'Change Return', ['class' => 'form-control', 'placeholder' => __('lang_v1.change_return_label') ]); !!}
{!! Form::label('highlight_color', __('invoice.highlight_color') . ':' ) !!} {!! Form::text('highlight_color', '#000000', ['class' => 'form-control', 'placeholder' => __('invoice.highlight_color') ]); !!}

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

@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', 'placeholder' => __('lang_v1.cn_heading') ]); !!}
{!! Form::label('cn_no_label', __('lang_v1.cn_no_label') . ':' ) !!} {!! Form::text('cn_no_label', 'Ref. No.', ['class' => 'form-control', 'placeholder' => __('lang_v1.cn_no_label') ]); !!}
{!! Form::label('cn_amount_label', __('lang_v1.cn_amount_label') . ':' ) !!} {!! Form::text('cn_amount_label', 'Credit Amount', ['class' => 'form-control', 'placeholder' => __('lang_v1.cn_amount_label') ]); !!}
{!! Form::close() !!}
@endsection