33 lines
1.2 KiB
HTML
33 lines
1.2 KiB
HTML
{% if insurance_info %}
|
|
{% for insurance in insurance_info %}
|
|
<div class="border-bottom pb-2 mb-2">
|
|
<div class="d-flex justify-content-between align-items-start">
|
|
<div>
|
|
<strong>{{ insurance.provider_name }}</strong>
|
|
<span class="badge bg-info ms-2">{{ insurance.get_insurance_type_display }}</span>
|
|
<div class="text-muted small">
|
|
Policy: {{ insurance.policy_number }}<br>
|
|
Group: {{ insurance.group_number|default:"N/A" }}
|
|
</div>
|
|
</div>
|
|
<div>
|
|
{% if insurance.is_verified %}
|
|
<span class="badge bg-success">Verified</span>
|
|
{% else %}
|
|
<button class="btn btn-sm btn-outline-primary"
|
|
hx-post="{% url 'patients:verify_insurance' insurance.id %}">
|
|
Verify
|
|
</button>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endfor %}
|
|
{% else %}
|
|
<div class="text-center py-3 text-muted">
|
|
<i class="fas fa-shield-alt fa-2x mb-2"></i>
|
|
<p>No insurance information</p>
|
|
</div>
|
|
{% endif %}
|
|
|