Loaned to | Loaned By | Loan Date | Returned Date | Returned By |
---|---|---|---|---|
{% if loan.customer is not null %}{{ loan.customer.firstname }} {{loan.customer.lastname }}{% endif %} | {% if loan.loanUser is not null %}{{ loan.loanUser.customer.firstname }} {{loan.loanUser.customer.lastname }}{% endif %} | {{ loan.loanDate|date('Y-m-d') }} | {% if loan.returnedDate is not null %}{{ loan.returnedDate|date('Y-m-d') }}{% else %}ON LOAN{% endif %} | {% if loan.returnUser is not null %}{{ loan.returnUser.customer.firstname }} {{loan.returnUser.customer.lastname }}{% endif %} |