Files
backend/resources/views/excel/Technical/summaryAccidentPerformanceProvince.blade.php

89 lines
3.1 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>جمع بندی عملکرد ابنیه - استان</title>
<style>
table,
th,
td {
border: 1px solid black;
}
</style>
</head>
<body dir="rtl" style="text-align: center;">
<table>
<thead>
<tr>
<th colspan="4"
style="background-color: #DAEEF3;text-align: center;border-right: 1px solid black;font-weight:bolder;">
تاریخ دریافت گزارش: {{verta()->now()->format('Y/m/d H:i')}}
</th>
</tr>
<tr>
<th colspan="4"
style="background-color: #DAEEF3;text-align: center;border-right:1px solid black;font-weight:bolder;">
</th>
</tr>
<tr>
<th colspan="4"
style="background-color: #DAEEF3;text-align: center;border-right:1px solid black;font-weight:bolder;font-size: 13;">
@if ($fromFa == null)
گزارش کارکرد پروژه های ابنیه فنی
@else
گزارش کارکرد پروژه های ابنیه فنی از تاریخ
{{verta($fromFa)->format('Y/n/j')}}
تا
تاریخ
{{verta($toFa)->format('Y/n/j')}}
@endif
</th>
</tr>
<tr>
<th colspan="2"
style="background-color: #EBF1DE;border: 1px solid black;text-align: center;font-weight: bold;">
اداره کل</th>
<th style="background-color: #EBF1DE;border: 1px solid black;text-align: center;font-weight: bold;">
میانگین درصد پیشرفت کل پروژه ها</th>
<th style="background-color: #EBF1DE;border: 1px solid black;text-align: center;font-weight: bold;">
تعداد پروژه</th>
</tr>
</thead>
<tbody>
@foreach ($roads as $road)
<tr>
<td colspan="2" style="border: 1px solid black;text-align: center;">{{$road['province_fa']}}</td>
<td style="border: 1px solid black;text-align: center;">{{round($road['avg'], 1) ?? '-'}}
</td>
<td style="border: 1px solid black;text-align: center;">{{$road['count'] ?? '-'}}</td>
</tr>
@endforeach
<tr>
<td colspan="2" style="border: 1px solid black;text-align: center;">کشوری</td>
<td style="border: 1px solid black;text-align: center;">
{{round($sum['avg']/$province_count) ?? '-'}}</td>
<td style="border: 1px solid black;text-align: center;">{{$sum['count'] ?? '-'}}</td>
</tr>
</tbody>
</table>
</body>
</html>