Contact: <%=h @loan.contact.firstname %> <%=h @loan.contact.lastname %>

ID: <%=h @loan.contact.id %>

Mobile: <%=h @loan.contact.mobile %>

Product: <%=h@loan.product.name %>

Product rate: <%=h@loan.product.rate %>

Admin: <%=h @loan.admin.name %>

Comission: <%=h number_to_currency(@com) %>

Amount paid: <%=h number_to_currency(@loan.amount_paid ) %>

Amount borrowed: <%=h number_to_currency(@loan.amount_borrowed) %>

Payment period: <%=h @loan.payment_period %>

Years: <%=h @loan.term %>

<%= link_to 'Go to contact details', contact_path(@loan.contact) %>
<%= link_to 'Edit', edit_loan_path(@loan) %> | <%= link_to 'Back', loans_path %>