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

95 lines
5.8 KiB
PHP
Raw Permalink 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="10" 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="10" style="background-color: #DAEEF3;text-align: center;border-right:1px solid black;font-weight:bolder;"></th>
</tr>
<tr>
<th colspan="10" style="background-color: #DAEEF3;text-align: center;border-right:1px solid black;font-weight:bolder;font-size: 13;">
گزارش کارکرد ارتقای ایمنی راه از تاریخ
{{verta($fromFa)->format('Y/n/j')}}
تا
تاریخ
{{verta($toFa)->format('Y/n/j')}}
</th>
</tr>
<tr>
<th rowspan="2" style="background-color: #EBF1DE;text-align: center;border:1px solid black;font-weight: bold;">اداره کل</th>
<th colspan="2" style="background-color: #EBF1DE;text-align: center;border:1px solid black;font-weight: bold;">نصب حفاظ ها</th>
<th colspan="2" style="background-color: #EBF1DE;text-align: center;border:1px solid black;font-weight: bold;">اجرای روشنایی ها</th>
<th colspan="2" style="background-color: #EBF1DE;text-align: center;border:1px solid black;font-weight: bold;">اجرای علائم و خط کشی</th>
<th rowspan="2" style="background-color: #EBF1DE;text-align: center;border:1px solid black;font-weight: bold;"> اصلاح شیب شیروانی (کیلومتر)</th>
<th rowspan="2" style="background-color: #EBF1DE;text-align: center;border:1px solid black;font-weight: bold;">سایر</th>
<th rowspan="2" style="background-color: #EBF1DE;text-align: center;border:1px solid black;font-weight: bold;">تعداد پروژه</th>
</tr>
<tr>
<th style="background-color: #C4D79A;text-align: center;border:1px solid black;font-weight: bold;"> حفاط بتنی (کیلومتر)</th>
<th style="background-color: #C4D79A;text-align: center;border:1px solid black;font-weight: bold;"> حفاط فلزی (کیلومتر)</th>
<th style="background-color: #C4D79A;text-align: center;border:1px solid black;font-weight: bold;">روشنایی طولی (کیلومتر)</th>
<th style="background-color: #C4D79A;text-align: center;border:1px solid black;font-weight: bold;">روشنایی نقطه ای (تعداد)</th>
<th style="background-color: #C4D79A;text-align: center;border:1px solid black;font-weight: bold;">علائم ایمنی (تعداد)</th>
<th style="background-color: #C4D79A;text-align: center;border:1px solid black;font-weight: bold;">خط کشی (کیلومتر)</th>
</tr>
</thead>
<tbody>
@foreach ($array as $item)
<tr>
<td style="text-align: center;border:1px solid black;">{{$item['province_fa']}}</td>
<td style="text-align: center;border:1px solid black;">{{$item['BotoniDone'] ?? 0}}</td>
<td style="text-align: center;border:1px solid black;">{{$item['FeleziDone'] ?? 0}}</td>
<td style="text-align: center;border:1px solid black;">{{$item['TooliLightingDone'] ?? 0}}</td>
<td style="text-align: center;border:1px solid black;">{{round($item['NoghteyiLightingDone']) ?? 0}}</td>
<td style="text-align: center;border:1px solid black;">{{round($item['AlaemImeniDone']) ?? 0}}</td>
<td style="text-align: center;border:1px solid black;">{{$item['KhatkeshiDone'] ?? 0}}</td>
<td style="text-align: center;border:1px solid black;">{{$item['ShirvaniDone'] ?? 0}}</td>
<td style="text-align: center;border:1px solid black;">{{$item['SayerDone'] ?? 0}}</td>
<td style="text-align: center;border:1px solid black;">{{$item['qty'] ?? 0}}</td>
</tr>
@endforeach
@if ($sumShow)
<tr>
<td style="text-align: center;border:1px solid black;">کشوری</td>
<td style="text-align: center;border:1px solid black;">{{$sum['BotoniDone'] ?? 0}}</td>
<td style="text-align: center;border:1px solid black;">{{$sum['FeleziDone'] ?? 0}}</td>
<td style="text-align: center;border:1px solid black;">{{$sum['TooliLightingDone'] ?? 0}}</td>
<td style="text-align: center;border:1px solid black;">{{$sum['NoghteyiLightingDone'] ?? 0}}</td>
<td style="text-align: center;border:1px solid black;">{{$sum['AlaemImeniDone'] ?? 0}}</td>
<td style="text-align: center;border:1px solid black;">{{$sum['KhatkeshiDone'] ?? 0}}</td>
<td style="text-align: center;border:1px solid black;">{{$sum['ShirvaniDone'] ?? 0}}</td>
<td style="text-align: center;border:1px solid black;">{{$sum['SayerDone'] ?? 0}}</td>
<td style="text-align: center;border:1px solid black;">{{$sum['qty'] ?? 0}}</td>
</tr>
@endif
</tbody>
</table>
</body>
</html>