!!!5
%html
%head
%title Aging Report
= wicked_pdf_stylesheet_link_tag 'pdf'
%body
%div
.w-50.float-left
.d-block.title= school.name
.w-50.float-left
.d-block.text-right.display-1 AGING REPORT
.d-block.text-right.body-1.mb-5= "As of #{l(Date.current)}"
%table.table
%thead
%tr.remove-top-border
%th.caption.text-muted= label
%th.caption.text-muted.text-right 0 - 30
%th.caption.text-muted.text-right 31 - 60
%th.caption.text-muted.text-right 61 - 90
%th.caption.text-muted.text-right 91 +
%th.caption.text-muted.text-right Outstanding
%tbody
- amounts.each do |amount|
%tr
%td.caption= amount[:title]
%td.caption.text-right= number_to_currency(amount[30])
%td.caption.text-right= number_to_currency(amount[60])
%td.caption.text-right= number_to_currency(amount[90])
%td.caption.text-right= number_to_currency(amount[91])
%td.caption.text-right= number_to_currency(amount[:outstanding])
%tr
%td.caption.text-right.font-weight-bold Totals
%td.caption.font-weight-bold.text-right= number_to_currency(totals[30])
%td.caption.font-weight-bold.text-right= number_to_currency(totals[60])
%td.caption.font-weight-bold.text-right= number_to_currency(totals[90])
%td.caption.font-weight-bold.text-right= number_to_currency(totals[91])
%td.caption.font-weight-bold.text-right= number_to_currency(totals[:outstanding])