Files
Rasadyar_Marzaki/templates/poultry_datail.html
2026-01-18 11:45:53 +03:30

1486 lines
61 KiB
HTML

{% load jalali_filters %}
<!DOCTYPE html>
<html lang="Fa">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title></title>
<link rel="stylesheet" href="/static/css/styles_for_hatching_detail.css">
</head>
<body>
<div class="a4-container">
<div class="titles">
<div>
{{ licence_number }}
</div>
<div>
{{ shamsi_date }}
</div>
<div>
-
</div>
</div>
<div class="text-overlay">
<div class="container">
<div class="text-element">اطلاعات واحد گله</div>
<div class="line"></div>
</div>
<div class="items-list">
<div class="item">
<strong>نام فارم:</strong>
<span>{{ poultry.unit_name }}</span>
</div>
<div class="item">
<strong>مرغدار:</strong>
<span>{{ poultry.user.fullname }}({{ poultry.user.mobile }})</span>
</div>
<div class="item">
<strong>بهره برداری:</strong>
<span>{{ InteractTypeName }}</span>
</div>
<div class="item">
<strong>تاریخ جوجه ریزی:</strong>
<span>{{ hatching_date }}</span>
</div>
<div class="item">
<strong>حجم جوجه ریزی:</strong>
<span>{{ quantity | toLocaleStr }}</span>
</div>
<div class="item">
<strong>سن:</strong>
<span>{{ chicken_age }}</span>
</div>
<div class="item">
<strong>نژاد:</strong>
<span>{{ chicken_breed }}</span>
</div>
<div class="item">
<strong>وضعیت:</strong>
{% if violation %}
<span>پیگیری</span>
{% else %}
<span>عادی</span>
{% endif %}
</div>
<div class="item">
<strong>شماره مجوز جوجه ریزی:</strong>
<span>{{ licence_number }}</span>
</div>
<div class="item">
<strong>شناسه یکتا:</strong>
<span>{{ poultry.breeding_unique_id }}</span>
</div>
<div class="item">
<strong>مجوز بهداشتی جوجه ریزی:</strong>
{% if CertId %}
<span>{{ CertId }}</span>
{% else %}
<span>-</span>
{% endif %}
</div>
<div class="item">
<strong>ارتباط:</strong>
{% if UnionTypeName %}
<span>{{ UnionTypeName }}</span>
{% else %}
<span>-</span>
{% endif %}
</div>
<div class="item">
<strong>استان:</strong>
<span>{{ poultry.address.province.name }}</span>
</div>
<div class="item">
<strong>شهر:</strong>
<span>{{ poultry.address.city.name }}</span>
</div>
<div class="item">
<strong>دامپزشک فارم:</strong>
<span>{{ vet_farm.vet_farm_full_name }}({{ vet_farm.vet_farm_mobile }})</span>
</div>
<div class="item">
<strong>سالن:</strong>
<span>{{ hall }}</span>
</div>
<div class="item">
<strong>دوره جوجه ریزی:</strong>
<span>{{ period }}</span>
</div>
<div class="item">
<strong>تاریخ ثبت جوجه ریزی:</strong>
<span>{{ create_date_hatching }}</span>
</div>
<div class="item">
<strong>میانگین سن کشتار:</strong>
<span>{{ killing_ave_age }}</span>
</div>
<div class="item">
<strong>پیش بینی تاریخ کشتار:</strong>
<span>{{ predicate_date_hatching }}</span>
</div>
<div class="item">
<strong>مالکیت:</strong>
{% if PersonTypeName %}
<span>{{ PersonTypeName }}</span>
{% else %}
<span>-</span>
{% endif %}
</div>
<div class="item">
<strong>حجم اختلاف کشتار:</strong>
<span>{{ bar_difference_request_quantity|toLocaleStr }}</span>
</div>
<div class="item">
<strong>وزن اختلاف کشتار</strong>
<span>{{ bar_difference_request_weight|toLocaleStr }}</span>
</div>
</div>
<div class="container">
<div class="text-element">اطلاعات کشتار و تلفات</div>
<div class="line"></div>
</div>
<div class="items-list">
<div class="item">
<strong>تایید تخلیه در رصدیار:</strong>
<span>%{{ percent_rasadyar1 }}</span>
</div>
<div class="item">
<strong>تایید تخلیه در سماصط:</strong>
<span>%{{ samasat_discharge_percentage }}</span>
</div>
<div class="item">
<strong>حجم کشتار شده:</strong>
<span>{{ killed_quantity|toLocaleStr}}</span>
</div>
<div class="item" style="color: red">
<strong style="color: red">حجم تخصیص بازگشتی:</strong>
<span>{{ killing_info.return_province_kill_requests_quantity|toLocaleStr}}</span>
</div>
<div class="item" style="color: red">
<strong style="color: red">وزن تخصیص بازگشتی:</strong>
<span>{{ killing_info.return_province_kill_requests_weight|toLocaleStr}}</span>
</div>
<div class="item" style="color: red">
<strong style="color: red">حجم بار بازگشتی:</strong>
<span>{{ killing_info.return_kill_house_quantity|toLocaleStr}}</span>
</div>
<div class="item" style="color: red">
<strong style="color: red">وزن بارهای بازگشتی:</strong>
<span>{{ killing_info.return_kill_house_weight|toLocaleStr}}</span>
</div>
<div class="item">
<strong>حجم مانده در سالن:</strong>
<span>{{ left_over|toLocaleStr }}</span>
</div>
{# <div class="item">#}
{# <strong>حجم بارهای عدم وصول:</strong>#}
{# <span>{{ killing_info.non_receipt_kill_house_quantity|toLocaleStr}}</span>#}
{# </div>#}
{# <div class="item">#}
{# <strong>وزن بارهای عدم وصول:</strong>#}
{# <span>{{ killing_info.non_receipt_kill_house_weight|toLocaleStr}}</span>#}
{# </div>#}
<div class="item">
<strong>تلفات کل:</strong>
<span>{{ total_losses|toLocaleStr}}</span>
</div>
<div class="item">
<strong>تعداد بارها:</strong>
<span>{{ killing_info.kill_house_requests|toLocaleStr }}</span>
</div>
<div class="item">
<strong>حجم بارها:</strong>
<span>{{ killing_info.kill_house_requests_first_quantity|toLocaleStr}}</span>
</div>
<div class="item">
<strong>وزن بارها:</strong>
<span>{{ killing_info.kill_house_requests_first_weight|toLocaleStr}}</span>
</div>
<div class="item">
<strong>افت بارها:</strong>
<span>{{ killing_info.ware_house_bars_weight_lose|toLocaleStr }}%</span>
</div>
<div class="item">
<strong>حجم فروش به خارج استان:</strong>
<span>{{ out_province_killed_quantity|int|toLocaleStr}}</span>
</div>
<div class="item">
<strong>وزن فروش به خارج استان:</strong>
<span>{{ out_province_killed_weight|toLocaleStr}}</span>
</div>
<div class="item">
<strong>حجم بارهای تحویلی:</strong>
<span>{{ killing_info.bar_complete_with_kill_house|toLocaleStr}}</span>
</div>
<div class="item">
<strong>وزن بارهای تحویلی:</strong>
<span>{{ killing_info.accepted_real_wight_final|toLocaleStr}}</span>
</div>
<div class="item">
<strong>بارهای ورودی به انبار:</strong>
<span>{{ killing_info.ware_house_bars|toLocaleStr }}</span>
</div>
<div class="item">
<strong>حجم لاشه های انبار:</strong>
<span>{{ killing_info.ware_house_bars_quantity|toLocaleStr }}</span>
</div>
<div class="item">
<strong>وزن لاشه های انبار:</strong>
<span>{{ killing_info.ware_house_bars_weight|toLocaleStr }}</span>
</div>
<div class="item">
<strong>حجم افزایشی:</strong>
<span>{{ increase_quantity|toLocaleStr }}</span>
</div>
<div class="item">
<strong>تلفات دامپزشک:</strong>
<span>{{ losses|toLocaleStr }}</span>
</div>
<div class="item">
<strong>تلفات اتحادیه:</strong>
<span>{{ direct_losses|toLocaleStr}}</span>
</div>
<div class="item">
<strong>حجم تعهد دولتی:</strong>
<span>{{ total_commitment_quantity|toLocaleStr }}</span>
</div>
<div class="item">
<strong>حجم تعهد آزاد:</strong>
<span>{{ total_free_commitment_quantity|toLocaleStr}}</span>
</div>
<div class="item">
<strong>حجم کشتار دولتی:</strong>
<span>{{ governmental_quantity|toLocaleStr}}</span>
</div>
<div class="item">
<strong>حجم کشتار آزاد:</strong>
<span>{{ free_quantity|toLocaleStr}}</span>
</div>
<div class="item">
<strong>تخصیصات بدون بار:</strong>
<span>{{ killing_info.province_kill_requests|toLocaleStr }}</span>
</div>
<div class="item">
<strong>حجم تخصیصات بدون بار:</strong>
<span>{{ killing_info.province_kill_requests_quantity|toLocaleStr }}</span>
</div>
<div class="item">
<strong>وزن تخصیصات بدون بار:</strong>
<span>{{ killing_info.province_kill_requests_weight|toLocaleStr }}</span>
</div>
<div class="item">
<strong>وزن تعهد دولتی:</strong>
<span>{{ total_commitment|toLocaleStr }}</span>
</div>
<div class="item">
<strong>میانگین وزن کشتار:</strong>
<span>{{ total_average_killed_weight|toLocaleStr }}</span>
</div>
<div class="item">
<strong>وزن کل کشتار:</strong>
<span>{{ total_killed_weight|toLocaleStr}}</span>
</div>
<div class="item">
<strong>تعداد کشتار فعال:</strong>
<span>{{ active_kill1 }}</span>
</div>
<div class="item">
<strong>تعداد درخواست کشتار:</strong>
<span>{{ active_kill.count_of_request|toLocaleStr }}</span>
</div>
<div class="item">
<strong>آخرین تغییر:</strong>
<span>{{ latest_hatching_change.full_name }}</span>
</div>
</div>
</div>
</div>
<div class="a4-container">
<div class="titles">
<div>
{{ licence_number }}
</div>
<div>
{{ shamsi_date }}
</div>
<div>
-
</div>
</div>
<div class="text-overlay">
<div class="container">
<div class="text-element">اطلاعات بارهای داخل استان</div>
<div class="line"></div>
</div>
<table>
<thead>
<tr>
<th class="custom-h1">کدبار</th>
<th class="custom-h1">وضعیت</th>
<th class="custom-h1">نوع فروش</th>
<th class="custom-h1">تاریخ کشتار</th>
<th class="custom-h1">خریدار</th>
<th class="custom-h1">تلفن</th>
<th class="custom-h1">کشتارکن</th>
<th class="custom-h1">سن مرغ</th>
<th class="custom-h1">محصول</th>
<th class="custom-h1">شهر</th>
<th class="custom-h1">کدقرنطینه</th>
<th class="custom-h1">استعلام قرنطینه</th>
<th class="custom-h1">حجم زنده</th>
<th class="custom-h1">وزن زنده (کیلوگرم)</th>
<th class="custom-h1">حجم ورود به انبار</th>
<th class="custom-h1">وزن ورود به انبار (کیلوگرم)</th>
</tr>
</thead>
{% for bar in bars %}
<tr>
<td class="chain-table-cell">{{ bar.bar_code }}</td>
<td class="chain-table-cell">{{ bar.status }}</td>
{% if bar.poultry_request.free_sale_in_province == True %}
<td class="chain-table-cell">آزاد</td>
{% else %}
<td class="chain-table-cell">دولتی</td>
{% endif %}
<td class="chain-table-cell">{{ bar.date|jalali }}</td>
<td class="chain-table-cell">{{ bar.buyer.name }}</td>
<td class="chain-table-cell">{{ bar.buyer.kill_house_operator.user.mobile }}</td>
<td class="chain-table-cell">{{ bar.killer_info.name }}({{ bar.killer_info.kill_house_operator.user.mobile }})</td>
<td class="chain-table-cell">{{ bar.poultry_request.age }}</td>
<td class="chain-table-cell">{{ bar.product }}</td>
<td class="chain-table-cell">{{ bar.buyer.kill_house_operator.address.city.name }}</td>
<td class="chain-table-cell">{{ bar.clearance_code|isNone }}</td>
<td class="chain-table-cell">{{ bar.quarantine_quantity|isNone }}</td>
<td class="chain-table-cell">{{ bar.accepted_real_quantity |int|toLocaleStr }}</td>
<td class="chain-table-cell">{{ bar.accepted_real_weight |int|toLocaleStr }}</td>
<td class="chain-table-cell">{{ bar.ware_house_accepted_real_quantity |int|toLocaleStr }}</td>
<td class="chain-table-cell">{{ bar.ware_house_accepted_real_weight |int|toLocaleStr }}</td>
</tr>
{% empty %}
<tr>
<td colspan="16" class="text-center">هیچ داده‌ای یافت نشد</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
{% if bars2 %}
<div class="a4-container">
<div class="titles">
<div>
{{ licence_number }}
</div>
<div>
{{ shamsi_date }}
</div>
<div>
-
</div>
</div>
<div class="text-overlay">
<div class="container">
<div class="text-element">اطلاعات بارهای داخل استان</div>
<div class="line"></div>
</div>
<table>
<thead>
<tr>
<th class="custom-h1">کدبار</th>
<th class="custom-h1">وضعیت</th>
<th class="custom-h1">نوع فروش</th>
<th class="custom-h1">تاریخ کشتار</th>
<th class="custom-h1">خریدار</th>
<th class="custom-h1">تلفن</th>
<th class="custom-h1">کشتارکن</th>
<th class="custom-h1">سن مرغ</th>
<th class="custom-h1">محصول</th>
<th class="custom-h1">شهر</th>
<th class="custom-h1">کدقرنطینه</th>
<th class="custom-h1">استعلام قرنطینه</th>
<th class="custom-h1">حجم زنده</th>
<th class="custom-h1">وزن زنده (کیلوگرم)</th>
<th class="custom-h1">حجم ورود به انبار</th>
<th class="custom-h1">وزن ورود به انبار (کیلوگرم)</th>
</tr>
</thead>
{% for bar in bars %}
<tr>
<td class="chain-table-cell">{{ bar.bar_code }}</td>
<td class="chain-table-cell">{{ bar.status }}</td>
{% if bar.poultry_request.free_sale_in_province == True %}
<td class="chain-table-cell">آزاد</td>
{% else %}
<td class="chain-table-cell">دولتی</td>
{% endif %}
<td class="chain-table-cell">{{ bar.date|jalali }}</td>
<td class="chain-table-cell">{{ bar.buyer.name }}</td>
<td class="chain-table-cell">{{ bar.buyer.kill_house_operator.user.mobile }}</td>
<td class="chain-table-cell">{{ bar.killer_info.name }}({{ bar.killer_info.kill_house_operator.user.mobile }})</td>
<td class="chain-table-cell">{{ bar.poultry_request.age }}</td>
<td class="chain-table-cell">{{ bar.product }}</td>
<td class="chain-table-cell">{{ bar.buyer.kill_house_operator.address.city.name }}</td>
<td class="chain-table-cell">{{ bar.clearance_code|isNone }}</td>
<td class="chain-table-cell">{{ bar.quarantine_quantity|isNone }}</td>
<td class="chain-table-cell">{{ bar.accepted_real_quantity |int|toLocaleStr }}</td>
<td class="chain-table-cell">{{ bar.accepted_real_weight |int|toLocaleStr }}</td>
<td class="chain-table-cell">{{ bar.ware_house_accepted_real_quantity |int|toLocaleStr }}</td>
<td class="chain-table-cell">{{ bar.ware_house_accepted_real_weight |int|toLocaleStr }}</td>
</tr>
{% empty %}
<tr>
<td colspan="16" class="text-center">هیچ داده‌ای یافت نشد</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
{% endif %}
<div class="a4-container">
<div class="titles">
<div>
{{ licence_number }}
</div>
<div>
{{ shamsi_date }}
</div>
<div>
-
</div>
</div>
<div class="text-overlay">
<div class="container">
<div class="text-element">اطلاعات بارهای خارج استان</div>
<div class="line"></div>
</div>
<table>
<thead>
<tr>
<th class="custom-h1">کدسفارش</th>
<th class="custom-h1">تاریخ</th>
<th class="custom-h1">خریدار</th>
<th class="custom-h1">تلفن</th>
<th class="custom-h1">استان/شهر</th>
<th class="custom-h1">کدقرنطینه</th>
<th class="custom-h1">استعلام قرنطینه</th>
<th class="custom-h1">حجم زنده</th>
<th class="custom-h1">وزن زنده (کیلوگرم)</th>
</tr>
</thead>
{% for bar in outBars %}
<tr>
<td>{{ bar.order_code }}</td>
<td>{{ bar.send_date|jalali }}</td>
<td>{{ bar.buyer_fullname }}</td>
<td>{{ bar.buyer_mobile }}</td>
<td>{{ bar.buyer_province }}/{{ bar.buyer_city }}</td>
<td>{{ bar.quarantine_code|isNone }}</td>
<td>{{ bar.quarantine_quantity|int|toLocaleStr }}</td>
<td>{{ bar.quantity |int|toLocaleStr }}</td>
<td>{{ bar.weight |int|toLocaleStr }}</td>
</tr>
{% empty %}
<tr>
<td colspan="9" class="text-center">هیچ داده‌ای یافت نشد</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
{% if outBars2 %}
<div class="a4-container">
<div class="titles">
<div>
{{ licence_number }}
</div>
<div>
{{ shamsi_date }}
</div>
<div>
-
</div>
</div>
<div class="text-overlay">
<div class="container">
<div class="text-element">اطلاعات بارهای خارج استان</div>
<div class="line"></div>
</div>
<table>
<thead>
<tr>
<th class="custom-h1">کدسفارش</th>
<th class="custom-h1">تاریخ</th>
<th class="custom-h1">خریدار</th>
<th class="custom-h1">تلفن</th>
<th class="custom-h1">استان/شهر</th>
<th class="custom-h1">کدقرنطینه</th>
<th class="custom-h1">استعلام قرنطینه</th>
<th class="custom-h1">حجم زنده</th>
<th class="custom-h1">وزن زنده (کیلوگرم)</th>
</tr>
</thead>
{% for bar in outBars2 %}
<tr>
<td>{{ bar.order_code }}</td>
<td>{{ bar.send_date|jalali }}</td>
<td>{{ bar.buyer_fullname }}</td>
<td>{{ bar.buyer_mobile }}</td>
<td>{{ bar.buyer_province }}/{{ bar.buyer_city }}</td>
<td>{{ bar.quarantine_code|isNone }}</td>
<td>{{ bar.quarantine_quantity|int|toLocaleStr }}</td>
<td>{{ bar.quantity |int|toLocaleStr }}</td>
<td>{{ bar.weight |int|toLocaleStr }}</td>
</tr>
{% empty %}
<tr>
<td colspan="11" class="text-center">هیچ داده‌ای یافت نشد</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
{% endif %}
<div class="a4-container">
<div class="titles">
<div>
{{ licence_number }}
</div>
<div>
{{ shamsi_date }}
</div>
<div>
-
</div>
</div>
<div class="text-overlay">
<div class="container">
<div class="text-element">مدیریت بار زنجیره</div>
<div class="line"></div>
</div>
<table class="bars-chain-table">
<tr>
<th class="custom-h1" >وضعیت</th>
<th class="custom-h1" >تاریخ سفارش</th>
<th class="custom-h1" >نوع فروش</th>
<th class="custom-h1" >ثبت کننده سفارش</th>
<th class="custom-h1" >خریدار</th>
<th class="custom-h1" >شرکت زنجیره</th>
<th class="custom-h1" >کد بهداشتی</th>
<th class="custom-h1" >کد قرنطینه</th>
<th class="custom-h1" >راننده</th>
<th class="custom-h1" >نوع خودرو</th>
<th class="custom-h1" >پلاک</th>
<th class="custom-h1" >حجم</th>
<th class="custom-h1" >میانگین وزن</th>
<th class="custom-h1" >وزن</th>
</tr>
</thead>
{% for bar in chainAllocation %}
<tr>
{% if bar.state == 'accepted' %}
<td class="chain-table-cell"> تایید شده</td>
{% elif bar.state == 'pending' %}
<td class="chain-table-cell"> در انتظار تایید</td>
{% else %}
<td class="chain-table-cell"> رد شده</td>
{% endif %}
<td class="chain-table-cell"> {{ bar.date|jalali }}</td>
{% if bar.out_province == True %}
<td class="chain-table-cell"> خارج استان</td>
{% else %}
<td class="chain-table-cell"> داخل استان</td>
{% endif %}
<td class="chain-table-cell"> {{ bar.registerer.fullname }}({{ bar.registerer.mobile }})</td>
<td class="chain-table-cell"> {{ bar.buyer_name }}({{ bar.buyer_mobile }})</td>
<td class="chain-table-cell"> {{ bar.chain_company.name }}({{ bar.chain_company.user.mobile }})</td>
<td class="chain-table-cell"> {{ bar.health_code|isNone }}</td>
<td class="chain-table-cell"> {{ bar.quarantine_code|isNone }}</td>
<td class="chain-table-cell"> {{ bar.driver_name }}({{ bar.driver_mobile }})</td>
<td class="chain-table-cell"> {{ bar.type_car }}</td>
<td class="chain-table-cell"> {{ bar.pelak }}</td>
<td class="chain-table-cell"> {{ bar.quantity |int|toLocaleStr }}</td>
<td class="chain-table-cell"> {{ bar.index_weight }}</td>
<td class="chain-table-cell"> {{ bar.weight |int|toLocaleStr }}</td>
</tr>
{% empty %}
<tr>
<td colspan="14" class="text-center">هیچ داده‌ای یافت نشد</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
{% if chainAllocation2 %}
<div class="a4-container">
<div class="titles">
<div>
{{ licence_number }}
</div>
<div>
{{ shamsi_date }}
</div>
<div>
-
</div>
</div>
<div class="text-overlay">
<div class="container">
<div class="text-element">مدیریت بار زنجیره</div>
<div class="line"></div>
</div>
<table class="bars-chain-table">
<tr>
<th class="custom-h1" >وضعیت</th>
<th class="custom-h1" >تاریخ سفارش</th>
<th class="custom-h1" >نوع فروش</th>
<th class="custom-h1" >ثبت کننده سفارش</th>
<th class="custom-h1" >خریدار</th>
<th class="custom-h1" >شرکت زنجیره</th>
<th class="custom-h1" >کد بهداشتی</th>
<th class="custom-h1" >کد قرنطینه</th>
<th class="custom-h1" >راننده</th>
<th class="custom-h1" >نوع خودرو</th>
<th class="custom-h1" >پلاک</th>
<th class="custom-h1" >حجم</th>
<th class="custom-h1" >میانگین وزن</th>
<th class="custom-h1" >وزن</th>
</tr>
</thead>
{% for bar in chainAllocation2 %}
<tr>
{% if bar.state == 'accepted' %}
<td class="chain-table-cell"> تایید شده</td>
{% elif bar.state == 'pending' %}
<td class="chain-table-cell"> در انتظار تایید</td>
{% else %}
<td class="chain-table-cell"> رد شده</td>
{% endif %}
<td class="chain-table-cell"> {{ bar.date|jalali }}</td>
{% if bar.out_province == True %}
<td class="chain-table-cell"> خارج استان</td>
{% else %}
<td class="chain-table-cell"> داخل استان</td>
{% endif %}
<td class="chain-table-cell"> {{ bar.registerer.fullname }}({{ bar.registerer.mobile }})</td>
<td class="chain-table-cell"> {{ bar.buyer_name }}({{ bar.buyer_mobile }})</td>
<td class="chain-table-cell"> {{ bar.chain_company.name }}({{ bar.chain_company.user.mobile }})</td>
<td class="chain-table-cell"> {{ bar.health_code|isNone }}</td>
<td class="chain-table-cell"> {{ bar.quarantine_code|isNone }}</td>
<td class="chain-table-cell"> {{ bar.driver_name }}({{ bar.driver_mobile }})</td>
<td class="chain-table-cell"> {{ bar.type_car }}</td>
<td class="chain-table-cell"> {{ bar.pelak }}</td>
<td class="chain-table-cell"> {{ bar.quantity |int|toLocaleStr }}</td>
<td class="chain-table-cell"> {{ bar.index_weight }}</td>
<td class="chain-table-cell"> {{ bar.weight |int|toLocaleStr }}</td>
</tr>
{% empty %}
<tr>
<td colspan="12" class="text-center">هیچ داده‌ای یافت نشد</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
{% endif %}
<div class="a4-container">
<div class="titles">
<div>
{{ licence_number }}
</div>
<div>
{{ shamsi_date }}
</div>
<div>
-
</div>
</div>
<div class="text-overlay">
<div class="container">
<div class="text-element">بارهای عدم وصول</div>
<div class="line"></div>
</div>
<table>
<thead>
<tr>
<th class="custom-h1">کد بار</th>
<th class="custom-h1">کدسفارش</th>
<th class="custom-h1">نوع بار</th>
<th class="custom-h1">نوع درخواست</th>
<th class="custom-h1">نوع کشتار</th>
<th class="custom-h1">نام فارم</th>
<th class="custom-h1">نام مرغدار</th>
<th class="custom-h1">شهر مرغدار</th>
<th class="custom-h1">تاریخ درخواست کشتار</th>
<th class="custom-h1">تعداد بار</th>
<th class="custom-h1">تاریخ ثبت بار</th>
<th class="custom-h1">نام کشتارگاه</th>
<th class="custom-h1">شهر کشتارگاه</th>
<th class="custom-h1">وزن</th>
<th class="custom-h1">میانگین وزنی</th>
<th class="custom-h1">تعداد نهایی</th>
<th class="custom-h1">وزن نهایی</th>
<th class="custom-h1">قیمت مرغدار</th>
<th class="custom-h1">قیمت کشتارگاه</th>
<th class="custom-h1">وضعیت تایید</th>
<th class="custom-h1">پلاک خودرو</th>
<th class="custom-h1">نام راننده</th>
<th class="custom-h1">عدم دریافت</th>
<th class="custom-h1">پیام عدم دریافت</th>
</tr>
</thead>
{% for item in returnKillHouseRequest %}
<tr>
<td class="chain-table-cell2">{{ item.bar_code }}</td>
<td class="chain-table-cell2">{{ item.poultry_request.order_code}}</td>
{% if item.return_trash == True %}
<td class="chain-table-cell2">برگشتی</td>
{% else %}
<td class="chain-table-cell2">عدم وصول</td>
{% endif %}
{% if item.poultry_request.market %}
<td class="chain-table-cell2">پنل معاملات</td>
{% elif item.poultry_request.direct_buying %}
<td class="chain-table-cell2">خرید مستقیم</td>
{% elif item.warehouse %}
<td class="chain-table-cell2">انبار</td>
{% else %}
<td class="chain-table-cell2">اتحادیه</td>
{% endif %}
{% if item.poultry_request.freezing %}
<td class="chain-table-cell2">انجماد</td>
{% elif item.poultry_request.export %}
<td class="chain-table-cell2">صادرات</td>
{% else %}
<td class="chain-table-cell2">عادی</td>
{% endif %}
<td class="chain-table-cell2">{{ item.poultry_request.poultry.unit_name }}</td>
<td class="chain-table-cell2">{{ item.poultry_request.poultry.user.fullname }} ({{ item.poultry_request.poultry.user.mobile }})</td>
<td class="chain-table-cell2">{{ item.poultry_request.poultry.address.city.name}}</td>
<td class="chain-table-cell2">{{ item.kill_request.receive_date|jalali }}</td>
<td class="chain-table-cell2">{{ item.quantity|toLocaleStr }}</td>
<td class="chain-table-cell2">{{ item.create_date|jalali }}</td>
{% if item.killer %}
<td class="chain-table-cell2">{{ item.killer.name}}</td>
{% else %}
<td class="chain-table-cell2">{{ item.killhouse_user.name}}</td>
{% endif %}
<td class="chain-table-cell2">{{ item.killhouse_user.kill_house_operator.user.city.name }}</td>
<td class="chain-table-cell2">{{ item.weight_info.weight|toLocaleStr }}</td>
<td class="chain-table-cell2">{{ item.weight_info.index_weight|toLocaleStr}}</td>
<td class="chain-table-cell2">{{ item.accepted_real_quantity|toLocaleStr }}</td>
<td class="chain-table-cell2">{{ item.accepted_real_weight|toLocaleStr }}</td>
<td class="chain-table-cell2">{{ item.poultry_request.amount|toLocaleStr }}</td>
<td class="chain-table-cell2">{{ item.weight_info.kill_house_price|toLocaleStr }}</td>
{% if item.state == 'pending' %}
<td class="chain-table-cell2">در انتظار تایید</td>
{% elif item.state == 'accepted' %}
<td class="chain-table-cell2">تایید شده</td>
{% else %}
<td class="chain-table-cell2">رد شده</td>
{% endif %}
<td class="chain-table-cell2">{{ item.car.pelak }}</td>
<td class="chain-table-cell2">{{ item.car.driver_name }}</td>
{% if item.non_receipt %}
<td class="chain-table-cell2">دارد</td>
{% else %}
<td class="chain-table-cell2">ندارد</td>
{% endif %}
<td class="chain-table-cell2">{{ item.non_receipt_message }}</td>
{% if item.non_receipt and item.main_non_receipt %}
<td class="chain-table-cell2"> کاربر (item.modify_date|jalali)</td>
{% else %}
<td class="chain-table-cell2">سیستم (item.modify_date|jalali)</td>
{% endif %}
</tr>
{% empty %}
<tr>
<td colspan="25" class="text-center">هیچ داده‌ای یافت نشد</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
{% if nonReceipt2 %}
<div class="a4-container">
<div class="titles">
<div>
{{ licence_number }}
</div>
<div>
{{ shamsi_date }}
</div>
<div>
-
</div>
</div>
<div class="text-overlay">
<div class="container">
<div class="text-element">بارهای عدم وصول</div>
<div class="line"></div>
</div>
<table>
<thead>
<tr>
<th class="custom-h1">کد بار</th>
<th class="custom-h1">کدسفارش</th>
<th class="custom-h1">نوع بار</th>
<th class="custom-h1">نوع درخواست</th>
<th class="custom-h1">نوع کشتار</th>
<th class="custom-h1">نام فارم</th>
<th class="custom-h1">نام مرغدار</th>
<th class="custom-h1">شهر مرغدار</th>
<th class="custom-h1">تاریخ درخواست کشتار</th>
<th class="custom-h1">تعداد بار</th>
<th class="custom-h1">تاریخ ثبت بار</th>
<th class="custom-h1">نام کشتارگاه</th>
<th class="custom-h1">شهر کشتارگاه</th>
<th class="custom-h1">وزن</th>
<th class="custom-h1">میانگین وزنی</th>
<th class="custom-h1">تعداد نهایی</th>
<th class="custom-h1">وزن نهایی</th>
<th class="custom-h1">قیمت مرغدار</th>
<th class="custom-h1">قیمت کشتارگاه</th>
<th class="custom-h1">وضعیت تایید</th>
<th class="custom-h1">پلاک خودرو</th>
<th class="custom-h1">نام راننده</th>
<th class="custom-h1">عدم دریافت</th>
<th class="custom-h1">پیام عدم دریافت</th>
</tr>
</thead>
{% for item in returnKillHouseRequest %}
<tr>
<td class="chain-table-cell2">{{ item.bar_code }}</td>
<td class="chain-table-cell2">{{ item.poultry_request.order_code}}</td>
{% if item.return_trash == True %}
<td class="chain-table-cell2">برگشتی</td>
{% else %}
<td class="chain-table-cell2">عدم وصول</td>
{% endif %}
{% if item.poultry_request.market %}
<td class="chain-table-cell2">پنل معاملات</td>
{% elif item.poultry_request.direct_buying %}
<td class="chain-table-cell2">خرید مستقیم</td>
{% elif item.warehouse %}
<td class="chain-table-cell2">انبار</td>
{% else %}
<td class="chain-table-cell2">اتحادیه</td>
{% endif %}
{% if item.poultry_request.freezing %}
<td class="chain-table-cell2">انجماد</td>
{% elif item.poultry_request.export %}
<td class="chain-table-cell2">صادرات</td>
{% else %}
<td class="chain-table-cell2">عادی</td>
{% endif %}
<td class="chain-table-cell2">{{ item.poultry_request.poultry.unit_name }}</td>
<td class="chain-table-cell2">{{ item.poultry_request.poultry.user.fullname }} ({{ item.poultry_request.poultry.user.mobile }})</td>
<td class="chain-table-cell2">{{ item.poultry_request.poultry.address.city.name}}</td>
<td class="chain-table-cell2">{{ item.kill_request.receive_date|jalali }}</td>
<td class="chain-table-cell2">{{ item.quantity|toLocaleStr }}</td>
<td class="chain-table-cell2">{{ item.create_date|jalali }}</td>
{% if item.killer %}
<td class="chain-table-cell2">{{ item.killer.name}}</td>
{% else %}
<td class="chain-table-cell2">{{ item.killhouse_user.name}}</td>
{% endif %}
<td class="chain-table-cell2">{{ item.killhouse_user.kill_house_operator.user.city.name }}</td>
<td class="chain-table-cell2">{{ item.weight_info.weight|toLocaleStr }}</td>
<td class="chain-table-cell2">{{ item.weight_info.index_weight|toLocaleStr}}</td>
<td class="chain-table-cell2">{{ item.accepted_real_quantity|toLocaleStr }}</td>
<td class="chain-table-cell2">{{ item.accepted_real_weight|toLocaleStr }}</td>
<td class="chain-table-cell2">{{ item.poultry_request.amount|toLocaleStr }}</td>
<td class="chain-table-cell2">{{ item.weight_info.kill_house_price|toLocaleStr }}</td>
{% if item.state == 'pending' %}
<td class="chain-table-cell2">در انتظار تایید</td>
{% elif item.state == 'accepted' %}
<td class="chain-table-cell2">تایید شده</td>
{% else %}
<td class="chain-table-cell2">رد شده</td>
{% endif %}
<td class="chain-table-cell2">{{ item.car.pelak }}</td>
<td class="chain-table-cell2">{{ item.car.driver_name }}</td>
{% if item.non_receipt %}
<td class="chain-table-cell2">دارد</td>
{% else %}
<td class="chain-table-cell2">ندارد</td>
{% endif %}
<td class="chain-table-cell2">{{ item.non_receipt_message }}</td>
{% if item.non_receipt and item.main_non_receipt %}
<td class="chain-table-cell2"> کاربر (item.modify_date|jalali)</td>
{% else %}
<td class="chain-table-cell2">سیستم (item.modify_date|jalali)</td>
{% endif %}
</tr>
{% empty %}
<tr>
<td colspan="25" class="text-center">هیچ داده‌ای یافت نشد</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
{% endif %}
<div class="a4-container">
<div class="titles">
<div>
{{ licence_number }}
</div>
<div>
{{ shamsi_date }}
</div>
<div>
-
</div>
</div>
<div class="text-overlay">
<div class="container">
<div class="text-element">اطلاعات بارهای قرنطینه</div>
<div class="line"></div>
</div>
<table>
<thead>
<tr>
<th class="custom-h1">تاریخ کشتار</th>
<th class="custom-h1">نوع بار</th>
<th class="custom-h1">سن مرغ</th>
<th class="custom-h1">وضعیت</th>
<th class="custom-h1">خریدار</th>
<th class="custom-h1">محصول</th>
<th class="custom-h1">شهر</th>
<th class="custom-h1">کدقرنطینه</th>
<th class="custom-h1">حجم</th>
</tr>
</thead>
{% for bar in differentBars %}
<tr>
<td>{{ bar.Date|jalali }}</td>
{% if bar.Out == True %}
<td>خارج استان</td>
{% else %}
<td>داخل استان</td>
{% endif %}
<td>{{ bar.Age }}</td>
<td>{{ bar.TrackingStatusDescription }}</td>
<td>{{ bar.DesUnitName }}</td>
<td>{{ bar.GoodName }}</td>
<td>{{ bar.City }}</td>
<td>{{ bar.TrackingCode|isNone }}</td>
<td>{{ bar.GoodAmount |int|toLocaleStr }}</td>
</tr>
{% empty %}
<tr>
<td colspan="11" class="text-center">هیچ داده‌ای یافت نشد</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
{% if differentBars2 %}
<div class="a4-container">
<div class="titles">
<div>
{{ licence_number }}
</div>
<div>
{{ shamsi_date }}
</div>
<div>
-
</div>
</div>
<div class="text-overlay">
<div class="container">
<div class="text-element">اطلاعات بارهای قرنطینه</div>
<div class="line"></div>
</div>
<table>
<thead>
<tr>
<th class="custom-h1">تاریخ کشتار</th>
<th class="custom-h1">نوع بار</th>
<th class="custom-h1">سن مرغ</th>
<th class="custom-h1">وضعیت</th>
<th class="custom-h1">خریدار</th>
<th class="custom-h1">محصول</th>
<th class="custom-h1">شهر</th>
<th class="custom-h1">کدقرنطینه</th>
<th class="custom-h1">حجم</th>
</tr>
</thead>
{% for bar in differentBars %}
<tr>
<td>{{ bar.Date|jalali }}</td>
{% if bar.Out == True %}
<td>خارج استان</td>
{% else %}
<td>داخل استان</td>
{% endif %}
<td>{{ bar.Age }}</td>
<td>{{ bar.TrackingStatusDescription }}</td>
<td>{{ bar.DesUnitName }}</td>
<td>{{ bar.GoodName }}</td>
<td>{{ bar.City }}</td>
<td>{{ bar.TrackingCode|isNone }}</td>
<td>{{ bar.GoodAmount |int|toLocaleStr }}</td>
</tr>
{% empty %}
<tr>
<td colspan="11" class="text-center">هیچ داده‌ای یافت نشد</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
{% endif %}
<div class="a4-container">
<div class="titles">
<div>
{{ licence_number }}
</div>
<div>
{{ shamsi_date }}
</div>
<div>
-
</div>
</div>
<div class="text-overlay">
<div class="container">
<div class="text-element">تخصیص‌های بازگشتی</div>
<div class="line"></div>
</div>
<table>
<thead>
<tr>
<th class="custom-h1">کدسفارش</th>
<th class="custom-h1">نوع درخواست</th>
<th class="custom-h1">نام فارم</th>
<th class="custom-h1">نام مرغدار</th>
<th class="custom-h1">شهر مرغدار</th>
<th class="custom-h1">تاریخ کشتار</th>
<th class="custom-h1">تعداد درخواست</th>
<th class="custom-h1">تاریخ ثبت تخصیص</th>
<th class="custom-h1">نام کشتارگاه</th>
<th class="custom-h1">شهر کشتارگاه</th>
<th class="custom-h1">قیمت مرغدار</th>
<th class="custom-h1">قیمت کشتارگاه</th>
<th class="custom-h1">تعداد تخصیص</th>
<th class="custom-h1">وضعیت تایید</th>
<th class="custom-h1">وضعیت تخصیص ماشین</th>
<th class="custom-h1">مانده قابل تخصیص</th>
<th class="custom-h1">برگشت دهنده</th>
</tr>
</thead>
{% for item in return_province_request %}
<tr>
<td class="chain-table-cell2">{{ item.order_code|default:"-" }}</td>
{% if item.market %}
<td class="chain-table-cell2">پنل معاملات</td>
{% elif item.direct_buying %}
<td class="chain-table-cell2">خرید مستقیم</td>
{% elif item.warehouse %}
<td class="chain-table-cell2">انبار</td>
{% else %}
<td class="chain-table-cell2">اتحادیه</td>
{% endif %}
<td class="chain-table-cell2">{{ item.poultry_unit_name }}</td>
<td class="chain-table-cell2">
{{ item.poultry_fullname }} ({{ item.poultry_mobile }})
</td>
<td class="chain-table-cell2">{{ item.poultry_city }}</td>
<td class="chain-table-cell2">{{ item.killing_date|jalali }}</td>
<td class="chain-table-cell2">{{ item.poultry_request_quantity|toLocaleStr }}</td>
<td class="chain-table-cell2">{{ item.create_date|jalali }}</td>
<td class="chain-table-cell2">{{ item.killhouse_user.name|default:"-" }}</td>
<td class="chain-table-cell2">{{ item.killhouse_user.city|default:"-" }}</td>
<td class="chain-table-cell2">{{ item.poultry_amount|toLocaleStr }} ﷼</td>
<td class="chain-table-cell2">{{ item.kill_house_price|toLocaleStr }} ﷼</td>
<td class="chain-table-cell2">{{ item.quantity|toLocaleStr }}</td>
{% if item.state == "pending" %}
<td class="chain-table-cell2">در انتظار تایید</td>
{% elif item.state == "accepted" %}
<td class="chain-table-cell2">تایید شده</td>
{% else %}
<td class="chain-table-cell2">رد شده</td>
{% endif %}
{% if item.first_car_allocated_quantity > 0 %}
<td class="chain-table-cell2">دارد</td>
{% else %}
<td class="chain-table-cell2">ندارد</td>
{% endif %}
{% with diff=item.quantity|add:item.total_killed_quantity|floatformat:-1 %}
<td class="chain-table-cell2">
{{ diff|floatformat:0|toLocaleStr }}
</td>
{% endwith %}
<td class="chain-table-cell2">
{% if item.returner %}
{{ item.returner.fullname }} ({{ item.returner.mobile }})
{% else %}
سیستم
{% endif %}
{{ item.modify_date|jalali }}
</td>
</tr>
{% empty %}
<tr>
<td colspan="18" class="text-center">هیچ داده‌ای یافت نشد</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
<div class="a4-container">
<div class="titles">
<div>
{{ licence_number }}
</div>
<div>
{{ shamsi_date }}
</div>
<div>
-
</div>
</div>
<div class="text-overlay">
<div class="container">
<div class="text-element">اختلاف کشتار</div>
<div class="line"></div>
</div>
<table>
<thead>
<tr>
<th class="custom-h1">ثبت کننده</th>
<th class="custom-h1">تاریخ ثبت</th>
<th class="custom-h1">مرغدار</th>
<th class="custom-h1">کشتارگاه</th>
<th class="custom-h1">حجم کم شده از سالن مرغدار</th>
<th class="custom-h1">وزن تقریبی کشتار (کیلوگرم)</th>
<th class="custom-h1">حجم سفارشات دریافتی توسط کشتارگاه</th>
<th class="custom-h1">اختلاف کشتار(حجم)</th>
<th class="custom-h1">اختلاف حجم</th>
<th class="custom-h1">اختلاف وزن</th>
<th class="custom-h1">وضعیت</th>
</tr>
</thead>
{% for item in killingDifference %}
<tr>
<td class="chain-table-cell2">{{ item.register_fullname|default:"-" }}</td>
<td class="chain-table-cell2">{{ item.create_date|jalali }}</td>
<td class="chain-table-cell2">{{ item.hatching.poultry.unit_name|default:"-" }}</td>
<td class="chain-table-cell2">{{ item.kill_house.name|default:"-" }}</td>
<td class="chain-table-cell2">{{ item.quantity|toLocaleStr }}</td>
<td class="chain-table-cell2">{{ item.weight|toLocaleStr }}</td>
<td class="chain-table-cell2">{{ item.real_quantity|toLocaleStr }}</td>
<td class="chain-table-cell2">{{ item.bar_info.difference_quantity|toLocaleStr }}</td>
<td class="chain-table-cell2">{{ item.quantity|toLocaleStr }}</td>
<td class="chain-table-cell2">{{ item.weight|toLocaleStr }}</td>
{% if item.state == "pending" %}
<td class="chain-table-cell2">در انتظار تایید</td>
{% elif item.state == "accepted" %}
<td class="chain-table-cell2">تایید شده</td>
{% else %}
<td class="chain-table-cell2">رد شده</td>
{% endif %}
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
<div class="a4-container">
<div class="titles">
<div>
{{ licence_number }}
</div>
<div>
{{ shamsi_date }}
</div>
<div>
-
</div>
</div>
<div class="text-overlay">
<div class="container">
<div class="text-element">افزایش حجم جوجه ریزی</div>
<div class="line"></div>
</div>
<table>
<thead>
<tr>
<th class="custom-h1">مرغدار</th>
<th class="custom-h1">شماره مجوز جوجه ریزی</th>
<th class="custom-h1">شناسه یکتا فارم</th>
<th class="custom-h1">حجم جوجه ریزی</th>
<th class="custom-h1">حجم کشتار</th>
<th class="custom-h1">حجم تلفات</th>
<th class="custom-h1">مانده در سالن</th>
<th class="custom-h1">حجم افزایشی</th>
<th class="custom-h1">ثبت کننده</th>
<th class="custom-h1">تاریخ ثبت</th>
<th class="custom-h1">پیغام</th>
</tr>
</thead>
{% for item in hatchingIncrease %}
<tr>
<td class="chain-table-cell2">{{ item.hatching.poultry.unit_name|default:"-" }}</td>
<td class="chain-table-cell2">{{ item.hatching.licence_number|default:"-" }}</td>
<td class="chain-table-cell2">{{ item.hatching.breeding_unique_id|default:"-" }}</td>
<td class="chain-table-cell2">{{ item.hatching_quantity|toLocaleStr }}</td>
<td class="chain-table-cell2">{{ item.hatching_kill_quantity|toLocaleStr }}</td>
<td class="chain-table-cell2">{{ item.hatching_losses|toLocaleStr }}</td>
<td class="chain-table-cell2">{{ item.hatching_left_over|toLocaleStr }}</td>
<td class="chain-table-cell2">{{ item.quantity|toLocaleStr }}</td>
<td class="chain-table-cell2">{{ item.registerer_name|default:"-" }}</td>
<td class="chain-table-cell2">{{ item.date|jalali }}</td>
<td class="chain-table-cell2">{{ item.message|default:"-" }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
<div class="a4-container">
<div class="titles">
<div>
{{ licence_number }}
</div>
<div>
{{ shamsi_date }}
</div>
<div>
-
</div>
</div>
<div class="text-overlay">
<div class="container">
<div class="text-element">گزارشات تلفات</div>
<div class="line"></div>
</div>
<table>
<thead>
<tr>
<th class="custom-h1">شماره گزارش</th>
<th class="custom-h1">نوع گزارش</th>
<th class="custom-h1">تاریخ معدوم‌سازی</th>
<th class="custom-h1">تعداد</th>
<th class="custom-h1">تاریخ ثبت</th>
</tr>
</thead>
<tbody>
{% if evacuation_reports %}
{% for report in evacuation_reports %}
<tr>
<td class="chain-table-cell2">{{ report.MoReportId|default:"-" }}</td>
<td class="chain-table-cell2">{{ report.ReportTypeString|default:"-" }}</td>
<td class="chain-table-cell2">{{ report.MoDateShamsi|default:"-" }}</td>
<td class="chain-table-cell2">{{ report.GoodCount|default_if_none:0|int|toLocaleStr }}</td>
<td class="chain-table-cell2">{{ report.RegDateShamsiWithTime }}</td>
</tr>
{% endfor %}
{% else %}
<tr>
<td colspan="5" class="text-center">گزارشی ثبت نشده است</td>
</tr>
{% endif %}
</tbody>
</table>
</div>
</div>
<div class="a4-container">
<div class="titles">
<div>
{{ licence_number }}
</div>
<div>
{{ shamsi_date }}
</div>
<div>
-
</div>
</div>
<div class="text-overlay">
<div class="container">
<div class="text-element">گزارشات تلفات</div>
<div class="line"></div>
</div>
<table>
<thead>
<tr>
<th class="custom-h1">شماره گزارش</th>
<th class="custom-h1">نوع گزارش</th>
<th class="custom-h1">تاریخ معدوم‌سازی</th>
<th class="custom-h1">تعداد</th>
<th class="custom-h1">تاریخ ثبت</th>
</tr>
</thead>
<tbody>
{% if evacuation_reports %}
{% for report in evacuation_reports %}
<tr>
<td class="chain-table-cell2">{{ report.MoReportId|default:"-" }}</td>
<td class="chain-table-cell2">{{ report.ReportTypeString|default:"-" }}</td>
<td class="chain-table-cell2">{{ report.MoDateShamsi|default:"-" }}</td>
<td class="chain-table-cell2">{{ report.GoodCount|default_if_none:0|int|toLocaleStr }}</td>
<td class="chain-table-cell2">{{ report.RegDateShamsiWithTime|default:report.RegDateShamsi|default:"-" }}</td>
</tr>
{% endfor %}
{% else %}
<tr>
<td colspan="5" class="text-center">گزارشی ثبت نشده است</td>
</tr>
{% endif %}
</tbody>
</table>
</div>
</div>
</body>