[% PROCESS "opac/parts/header.tt2"; PROCESS "opac/parts/misc_util.tt2"; WRAPPER "opac/parts/myopac/base.tt2"; %]
[% l('Account Summary') %]
[% IF myopac_main_page == "payment_form" OR ( !ctx.fines.circulation.size AND !ctx.fines.grocery.size ) %]
[% ELSE %]
[% l('Fines:') %] [% money(ctx.user_stats.fines.balance_owed) %]
[% IF (ctx.fines.grocery.size OR ctx.fines.circulation.size) AND ctx.get_org_setting(ctx.user.home_ou, 'credit.payments.allow') == 1 %]
[% END %]
[% END %]
[%- IF date.format(ctx.user.expire_date, '%s') < date.format(date.now , '%s'); fmt_expire_date = date.format(ctx.user.expire_date, DATE_FORMAT); %] [% l("Your library card expired on [_1]. Please contact a librarian to resolve this issue.", fmt_expire_date) %] [% END %]
[% l("Items Currently Checked out ([_1])", ctx.user_stats.checkouts.total_out) %] [% l("View All") %]
[% l('Items Currently on Hold ([_1])', ctx.user_stats.holds.total) %] [% l('View All') %]
[% l('Items ready for pickup ([_1])', ctx.user_stats.holds.ready) %] [% l('View All') %]
[% IF ctx.user.notes.0 %] [% FOR note IN ctx.user.notes %] [% END %]
[% l('Note title') %][% l('Content') %]
[% note.title | html %][% note.value | html %]
[% END %]
[% IF myopac_main_page == 'main' %] [% l("Fines") %] [% l("Payments") %] [% ELSE %] [% l("Fines") %] [% l("Payments") %] [% END %]
[% content %]
[% END %]