@extends('accounts.nav') @section('head') @parent @if (Auth::user()->account->utf8_invoices) @endif @stop @section('content') @parent @include('accounts.nav_advanced')
{!! 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) {!! Former::select('invoice_design_id')->style('display:inline;width:120px')->fromQuery($invoiceDesigns, 'name', 'id')->addOption(trans('texts.more_designs') . '...', '-1') !!} @else {!! Former::select('invoice_design_id')->style('display:inline;width:120px')->fromQuery($invoiceDesigns, 'name', 'id') !!} @endif @if (Auth::user()->account->utf8_invoices) {!! Former::text('font_size')->type('number')->min('0')->step('1')->style('width:120px') !!} @endif {!! Former::text('primary_color') !!} {!! Former::text('secondary_color') !!}

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

{!! 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')) !!}

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

{!! Former::checkbox('hide_quantity')->text(trans('texts.hide_quantity_help')) !!} {!! Former::checkbox('hide_paid_to_date')->text(trans('texts.hide_paid_to_date_help')) !!}
@if (Auth::user()->isPro()) {!! Former::actions( Button::success(trans('texts.save'))->submit()->large()->appendIcon(Icon::create('floppy-disk'))) !!} @else @endif {!! Former::close() !!}
@include('invoices.pdf', ['account' => Auth::user()->account, 'pdfHeight' => 800])
@stop