agdar/integrations/templates/integrations/payer_contract_list.html
Marwan Alwali a788c086ae update
2025-11-02 18:05:50 +03:00

120 lines
5.3 KiB
HTML

{% extends "base.html" %}
{% load i18n static %}
{% block title %}{% trans "Payer Contracts" %} - {{ block.super }}{% endblock %}
{% block content %}
<div class="container-fluid">
<div class="d-flex justify-content-between align-items-center mb-4">
<h1 class="h3 mb-0">
<i class="fa fa-handshake me-2"></i>{% trans "Payer Contracts" %}
</h1>
<a href="{% url 'integrations:payer-create' %}" class="btn btn-primary">
<i class="fa fa-plus me-1"></i>{% trans "New Payer Contract" %}
</a>
</div>
<!-- Filters -->
<div class="card mb-3">
<div class="card-body">
<form method="get" class="row g-3">
<div class="col-md-4">
<label class="form-label">{% trans "Status" %}</label>
<select name="is_active" class="form-select">
<option value="">{% trans "All" %}</option>
<option value="true" {% if request.GET.is_active == 'true' %}selected{% endif %}>{% trans "Active" %}</option>
<option value="false" {% if request.GET.is_active == 'false' %}selected{% endif %}>{% trans "Inactive" %}</option>
</select>
</div>
<div class="col-md-4 d-flex align-items-end">
<button type="submit" class="btn btn-primary me-2">
<i class="fa fa-filter me-1"></i>{% trans "Filter" %}
</button>
<a href="{% url 'integrations:payer-list' %}" class="btn btn-secondary">
<i class="fa fa-times me-1"></i>{% trans "Clear" %}
</a>
</div>
</form>
</div>
</div>
<div class="card">
<div class="card-body">
{% if payers %}
<div class="table-responsive">
<table class="table table-hover">
<thead>
<tr>
<th>{% trans "Payer Name" %}</th>
<th>{% trans "Payer Code" %}</th>
<th>{% trans "Capabilities" %}</th>
<th>{% trans "Status" %}</th>
<th>{% trans "Actions" %}</th>
</tr>
</thead>
<tbody>
{% for payer in payers %}
<tr>
<td>
<strong>{{ payer.payer_name }}</strong>
</td>
<td>
<code>{{ payer.payer_code }}</code>
</td>
<td>
{% if payer.supports_eligibility %}
<span class="badge bg-info me-1" title="{% trans 'Supports Eligibility Check' %}">
<i class="fa fa-check-circle me-1"></i>{% trans "Eligibility" %}
</span>
{% endif %}
{% if payer.supports_prior_auth %}
<span class="badge bg-warning me-1" title="{% trans 'Supports Prior Authorization' %}">
<i class="fa fa-check-circle me-1"></i>{% trans "Prior Auth" %}
</span>
{% endif %}
{% if payer.supports_claims %}
<span class="badge bg-success" title="{% trans 'Supports Claims' %}">
<i class="fa fa-check-circle me-1"></i>{% trans "Claims" %}
</span>
{% endif %}
</td>
<td>
{% if payer.is_active %}
<span class="badge bg-success">{% trans "Active" %}</span>
{% else %}
<span class="badge bg-secondary">{% trans "Inactive" %}</span>
{% endif %}
</td>
<td>
<div class="btn-group btn-group-sm">
<a href="{% url 'integrations:payer-update' payer.pk %}" class="btn btn-outline-warning">
<i class="fa fa-edit"></i>
</a>
</div>
</td>
</tr>
{% endfor %}
</tbody>
</table>
{% if is_paginated %}
{% include "includes/pagination_unified.html" %}
{% endif %}
</div>
{% else %}
<div class="text-center py-5">
<i class="fa fa-handshake fa-3x text-muted mb-3"></i>
<p class="text-muted">{% trans "No payer contracts found." %}</p>
<a href="{% url 'integrations:payer-create' %}" class="btn btn-primary">
<i class="fa fa-plus me-1"></i>{% trans "Create First Payer Contract" %}
</a>
</div>
{% endif %}
</div>
</div>
</div>
{% endblock %}