@extends('header') @section('head') @parent @include('money_script') @foreach ($account->getFontFolders() as $font) @endforeach @stop @section('content') @parent @include('accounts.nav', ['selected' => ACCOUNT_INVOICE_DESIGN, 'advanced' => true])
{!! Former::open()->addClass('warn-on-exit')->onchange('if(!window.loadingFonts)refreshPDF()') !!} {!! Former::populate($account) !!} {!! Former::populateField('hide_quantity', intval($account->hide_quantity)) !!} {!! Former::populateField('hide_paid_to_date', intval($account->hide_paid_to_date)) !!} {!! Former::populateField('all_pages_header', intval($account->all_pages_header)) !!} {!! Former::populateField('all_pages_footer', intval($account->all_pages_footer)) !!} @foreach ($invoiceLabels as $field => $value) {!! Former::populateField("labels_{$field}", $value) !!} @endforeach

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

@if (!Utils::isPro() || \App\Models\InvoiceDesign::count() == COUNT_FREE_DESIGNS_SELF_HOST) {!! Former::select('invoice_design_id') ->fromQuery($invoiceDesigns, 'name', 'id') ->addOption(trans('texts.more_designs') . '...', '-1') !!} @else {!! Former::select('invoice_design_id') ->fromQuery($invoiceDesigns, 'name', 'id') !!} @endif {!! Former::select('body_font_id') ->fromQuery($invoiceFonts, 'name', 'id') !!} {!! Former::select('header_font_id') ->fromQuery($invoiceFonts, 'name', 'id') !!}
{{ Former::setOption('TwitterBootstrap3.labelWidths.large', 6) }} {{ Former::setOption('TwitterBootstrap3.labelWidths.small', 6) }} {!! Former::text('font_size') ->type('number') ->min('0') ->step('1') !!} {!! Former::text('primary_color') !!} {!! Former::text('secondary_color') !!} {{ Former::setOption('TwitterBootstrap3.labelWidths.large', 4) }} {{ Former::setOption('TwitterBootstrap3.labelWidths.small', 4) }}
{{ trans('texts.color_font_help') }}
{!! Former::text('labels_item')->label(trans('texts.item')) !!} {!! Former::text('labels_description')->label(trans('texts.description')) !!} {!! Former::text('labels_unit_cost')->label(trans('texts.unit_cost')) !!} {!! Former::text('labels_quantity')->label(trans('texts.quantity')) !!}
{!! Former::text('labels_line_total')->label(trans('texts.line_total')) !!} {!! Former::text('labels_terms')->label(trans('texts.terms')) !!} {!! Former::text('labels_balance_due')->label(trans('texts.balance_due')) !!} {!! Former::text('labels_partial_due')->label(trans('texts.partial_due')) !!}
{!! Former::checkbox('hide_quantity')->text(trans('texts.hide_quantity_help')) !!} {!! Former::checkbox('hide_paid_to_date')->text(trans('texts.hide_paid_to_date_help')) !!} {!! Former::checkbox('invoice_embed_documents')->text(trans('texts.invoice_embed_documents_help')) !!}
{!! Former::inline_radios('all_pages_header') ->label(trans('texts.all_pages_header')) ->radios([ trans('texts.first_page') => ['value' => 0, 'name' => 'all_pages_header'], trans('texts.all_pages') => ['value' => 1, 'name' => 'all_pages_header'], ])->check($account->all_pages_header) !!} {!! Former::inline_radios('all_pages_footer') ->label(trans('texts.all_pages_footer')) ->radios([ trans('texts.last_page') => ['value' => 0, 'name' => 'all_pages_footer'], trans('texts.all_pages') => ['value' => 1, 'name' => 'all_pages_footer'], ])->check($account->all_pages_footer) !!}

{!! Former::actions( Button::primary(trans('texts.customize')) ->appendIcon(Icon::create('edit')) ->asLinkTo(URL::to('/settings/customize_design')) ->large(), Button::success(trans('texts.save')) ->submit()->large() ->appendIcon(Icon::create('floppy-disk')) ->withAttributes(['class' => 'save-button']) ) !!}
@if (!Auth::user()->isPro()) @endif {!! Former::close() !!}
@include('invoices.pdf', ['account' => Auth::user()->account, 'pdfHeight' => 800]) @stop