@extends('header') @section('head') @parent @include('money_script') @stop @section('content') @parent @include('accounts.nav', ['selected' => ACCOUNT_INVOICE_DESIGN, 'advanced' => true])
{!! Former::open()->addClass('warn-on-exit')->onchange('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') ->style('display:inline; width:300px') ->fromQuery($invoiceDesigns, 'name', 'id') ->addOption(trans('texts.more_designs') . '...', '-1') !!} @else {!! Former::select('invoice_design_id') ->style('display:inline; width:300px') ->fromQuery($invoiceDesigns, 'name', 'id') !!} @endif {!! Former::text('font_size') ->style('width:300px') ->type('number') ->min('0') ->step('1') !!} {!! Former::text('primary_color') !!} {!! Former::text('secondary_color') ->help('
'.trans('texts.color_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