64 lines
3.7 KiB
HTML
64 lines
3.7 KiB
HTML
{% extends "base.html" %}
|
|
{% load i18n static %}
|
|
|
|
{% block title %}{{ _("Payments") }}{% endblock title %}
|
|
|
|
{% block content %}
|
|
<div class="row mt-4">
|
|
<div class="d-flex justify-content-between mb-2">
|
|
<h3 class="mb-3"><span class="icon-saudi_riyal"></span> {% trans "Payments" %}</h3>
|
|
{% comment %} <a href="{% url 'payment_create' %}" class="btn btn-sm btn-phoenix-success ">{% trans "Add Payment" %}</a> {% endcomment %}
|
|
|
|
</div>
|
|
|
|
<div class="table-responsive px-1 scrollbar">
|
|
<table class="table align-items-center table-flush">
|
|
<thead>
|
|
<tr class="bg-body-highlight">
|
|
<th>#</th>
|
|
<th class="sort white-space-nowrap align-middle" scope="col">{% trans "Payment Number" %}</th>
|
|
<th class="sort white-space-nowrap align-middle" scope="col">{% trans "Invoice" %}</th>
|
|
<th class="sort white-space-nowrap align-middle" scope="col">{% trans "Timestamp" %}</th>
|
|
<th class="sort white-space-nowrap align-middle" scope="col">{% trans "Description" %}</th>
|
|
<th class="sort white-space-nowrap align-middle" scope="col">{% trans "Actions" %}</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody class="list">
|
|
{% for journal in page_obj %}
|
|
<tr class="hover-actions-trigger btn-reveal-trigger position-static">
|
|
<td class="align-middle product white-space-nowrap py-0">{{ forloop.counter }}</td>
|
|
<td class="align-middle product white-space-nowrap py-0">{{ journal.je_number }}</td>
|
|
{% if journal.ledger.invoicemodel %}
|
|
<td class="align-middle product white-space-nowrap py-0">
|
|
<a href="{% url 'invoice_detail' journal.ledger.invoicemodel.pk %}"><i class="fa-solid fa-receipt"></i> {{ journal.ledger.invoicemodel }}</a>
|
|
</td>
|
|
{% elif journal.ledger.billmodel %}
|
|
<td class="align-middle product white-space-nowrap py-0">
|
|
<a href="{% url 'bill_detail' journal.ledger.billmodel.pk %}"><i class="fa-solid fa-money-bill"></i> {{ journal.ledger.billmodel }}</a>
|
|
</td>
|
|
{% else %}
|
|
<td class="align-middle product white-space-nowrap py-0"></td>
|
|
{% endif %}
|
|
<td class="align-middle product white-space-nowrap py-0">{{ journal.timestamp }}</td>
|
|
<td class="align-middle product white-space-nowrap py-0">{{ journal.description }}</td>
|
|
<td class="align-middle product white-space-nowrap">
|
|
<a href="{% url 'payment_details' journal.pk %}" class="btn btn-sm btn-phoenix-primary"><i class="fa-solid fa-eye me-1"></i> {% trans "View Tranactions"|capfirst %}</a>
|
|
</td>
|
|
</tr>
|
|
{% empty %}
|
|
<tr>
|
|
<td colspan="6" class="text-center">{% trans "No Payments Found" %}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div class="d-flex justify-content-end mt-3">
|
|
<div class="d-flex">
|
|
{% if is_paginated %}
|
|
{% include 'partials/pagination.html' %}
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endblock %} |