@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)) !!} @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::checkbox('hide_quantity')->text(trans('texts.hide_quantity_help')) !!} {!! Former::checkbox('hide_paid_to_date')->text(trans('texts.hide_paid_to_date_help')) !!}

{!! 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