@extends('header') @section('head') @parent @include('money_script') @foreach (Auth::user()->account->getFontFolders() as $font) @endforeach @stop @section('top-right')
{!! Button::normal(trans('texts.download')) ->withAttributes(['onclick' => 'onDownloadClick()', 'id' => 'downloadPdfButton']) ->appendIcon(Icon::create('download-alt')) !!} {!! Button::primary(trans('texts.edit_' . $invoice->getEntityType())) ->asLinkTo(url('/' . $invoice->getEntityType() . 's/' . $invoice->public_id . '/edit')) ->appendIcon(Icon::create('edit')) !!}
@stop @section('content') @include('invoices.pdf', ['account' => Auth::user()->account, 'pdfHeight' => 800]) @if (Utils::hasFeature(FEATURE_DOCUMENTS) && $invoice->account->invoice_embed_documents) @foreach ($invoice->documents as $document) @if($document->isPDFEmbeddable()) @endif @endforeach @foreach ($invoice->expenses as $expense) @foreach ($expense->documents as $document) @if($document->isPDFEmbeddable()) @endif @endforeach @endforeach @endif @stop