@extends('header') @section('head') @parent @stop @section('content') @parent @include('accounts.nav', ['selected' => ACCOUNT_INVOICE_SETTINGS, 'advanced' => true]) {!! Former::open()->rules(['iframe_url' => 'url'])->addClass('warn-on-exit') !!} {{ Former::populate($account) }} {{ Former::populateField('auto_convert_quote', intval($account->auto_convert_quote)) }} {{ Former::populateField('custom_invoice_taxes1', intval($account->custom_invoice_taxes1)) }} {{ Former::populateField('custom_invoice_taxes2', intval($account->custom_invoice_taxes2)) }} {{ Former::populateField('share_counter', intval($account->share_counter)) }}

{!! trans('texts.invoice_quote_number') !!}

{!! Former::inline_radios('invoice_number_type') ->onchange('onInvoiceNumberTypeChange()') ->label(trans('texts.type')) ->radios([ trans('texts.prefix') => ['value' => 'prefix', 'name' => 'invoice_number_type'], trans('texts.pattern') => ['value' => 'pattern', 'name' => 'invoice_number_type'], ])->check($account->invoice_number_pattern ? 'pattern' : 'prefix') !!} {!! Former::text('invoice_number_prefix') ->addGroupClass('invoice-prefix') ->label(trans('texts.prefix')) !!} {!! Former::text('invoice_number_pattern') ->appendIcon('question-sign') ->addGroupClass('invoice-pattern') ->label(trans('texts.pattern')) ->addGroupClass('number-pattern') !!} {!! Former::text('invoice_number_padding') !!} {!! Former::text('invoice_number_counter') ->label(trans('texts.counter')) ->help(trans('texts.invoice_number_help') . ' ' . trans('texts.next_invoice_number', ['number' => $account->previewNextInvoiceNumber()])) !!}
{!! Former::inline_radios('quote_number_type') ->onchange('onQuoteNumberTypeChange()') ->label(trans('texts.type')) ->radios([ trans('texts.prefix') => ['value' => 'prefix', 'name' => 'quote_number_type'], trans('texts.pattern') => ['value' => 'pattern', 'name' => 'quote_number_type'], ])->check($account->quote_number_pattern ? 'pattern' : 'prefix') !!} {!! Former::text('quote_number_prefix') ->addGroupClass('quote-prefix') ->label(trans('texts.prefix')) !!} {!! Former::text('quote_number_pattern') ->appendIcon('question-sign') ->addGroupClass('quote-pattern') ->addGroupClass('number-pattern') ->label(trans('texts.pattern')) !!} {!! Former::text('quote_number_counter') ->label(trans('texts.counter')) ->addGroupClass('pad-checkbox') ->append(Former::checkbox('share_counter')->raw() ->onclick('setQuoteNumberEnabled()') . ' ' . trans('texts.share_invoice_counter')) ->help(trans('texts.quote_number_help') . ' ' . trans('texts.next_quote_number', ['number' => $account->previewNextInvoiceNumber(ENTITY_QUOTE)])) !!}
{!! Former::text('recurring_invoice_number_prefix') ->label(trans('texts.prefix')) ->help(trans('texts.recurring_invoice_number_prefix_help')) !!}

{!! trans('texts.custom_fields') !!}

{!! Former::text('custom_client_label1') ->label(trans('texts.field_label')) !!} {!! Former::text('custom_client_label2') ->label(trans('texts.field_label')) ->help(trans('texts.custom_client_fields_helps')) !!}
{!! Former::text('custom_label1') ->label(trans('texts.field_label')) !!} {!! Former::text('custom_value1') ->label(trans('texts.field_value')) !!}

 

{!! Former::text('custom_label2') ->label(trans('texts.field_label')) !!} {!! Former::text('custom_value2') ->label(trans('texts.field_value')) ->help(trans('texts.custom_account_fields_helps')) !!}
{!! Former::text('custom_invoice_text_label1') ->label(trans('texts.field_label')) !!} {!! Former::text('custom_invoice_text_label2') ->label(trans('texts.field_label')) ->help(trans('texts.custom_invoice_fields_helps')) !!}
{!! Former::text('custom_invoice_item_label1') ->label(trans('texts.field_label')) !!} {!! Former::text('custom_invoice_item_label2') ->label(trans('texts.field_label')) ->help(trans('texts.custom_invoice_item_fields_help')) !!}
{!! Former::text('custom_invoice_label1') ->label(trans('texts.field_label')) ->addGroupClass('pad-checkbox') ->append(Former::checkbox('custom_invoice_taxes1') ->raw() . trans('texts.charge_taxes')) !!} {!! Former::text('custom_invoice_label2') ->label(trans('texts.field_label')) ->addGroupClass('pad-checkbox') ->append(Former::checkbox('custom_invoice_taxes2') ->raw() . trans('texts.charge_taxes')) ->help(trans('texts.custom_invoice_charges_helps')) !!}

{!! trans('texts.quote_settings') !!}

{!! Former::checkbox('auto_convert_quote') ->text(trans('texts.enable')) ->blockHelp(trans('texts.auto_convert_quote_help')) !!}

{!! trans('texts.default_messages') !!}

{!! Former::textarea('invoice_terms') ->label(trans('texts.default_invoice_terms')) ->rows(4) !!}
{!! Former::textarea('invoice_footer') ->label(trans('texts.default_invoice_footer')) ->rows(4) !!}
{!! Former::textarea('quote_terms') ->label(trans('texts.default_quote_terms')) ->rows(4) !!}
@if (Auth::user()->hasFeature(FEATURE_INVOICE_SETTINGS))
{!! Button::success(trans('texts.save'))->large()->submit()->appendIcon(Icon::create('floppy-disk')) !!}
@endif {!! Former::close() !!} @stop @section('onReady') $('#custom_invoice_label1').focus(); @stop