@extends('accounts.nav') @section('head') @parent @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_SELF_HOST) {!! 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 {!! Former::text('font_size')->type('number')->min('0')->step('1')->style('width:120px') !!} {!! Former::text('primary_color') !!} {!! Former::text('secondary_color') !!} {!! Former::actions( Button::primary(trans('texts.customize_design'))->small()->asLinkTo(URL::to('/company/advanced_settings/customize_design')) ) !!}

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