{{template "base" .}} {{define "content"}}
{{if .Document.Type}} {{title .Document.Type}} {{end}}

{{.Document.Title}}

ID: {{.Document.ID}}

{{if .Document.PDFPath}} Download {{end}}

Details

{{if .Document.Date}}
Date
{{formatDate .Document.Date}}
{{end}} {{if .Document.Amount}}
Amount
{{.Document.Amount}}
{{end}} {{if .Document.Vendor}}
Vendor
{{.Document.Vendor}}
{{end}} {{if .Document.ProcessedAt}}
Processed
{{formatDate .Document.ProcessedAt}}
{{end}} {{if .Document.OriginalFile}}
Original File
{{.Document.OriginalFile}}
{{end}}
{{if .Document.Summary}}

Summary

{{.Document.Summary}}

{{end}}

Notes

{{if .Document.Notes}}

{{.Document.Notes}}

{{else}}

No notes yet. Click Edit to add notes.

{{end}}
{{if .Document.FullText}}

OCR Text

{{.Document.FullText | safe}}
{{end}}
{{if .Document.PDFPath}}

Document Preview

100%
Page 1 of 1
{{else}}

No PDF Available

This document doesn't have an associated PDF file

{{end}}
{{end}}