205 lines
16 KiB
PHP
205 lines
16 KiB
PHP
<!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>
|
||
</head>
|
||
<body dir="rtl">
|
||
<table>
|
||
<thead>
|
||
<tr>
|
||
<th colspan="20" style="background-color: #daeef3;border-right: 1px solid black;border-left: 1px solid black;;"></th>
|
||
</tr>
|
||
<tr>
|
||
<th colspan="20" style="background-color: #DAEEF3;text-align: center;border-right:1px solid black;font-weight:bolder;font-size: 13;">
|
||
تعداد و احجام فعالیت های روزانه و جاری راهداری ثبت شده از تاریخ
|
||
{{verta($fromDate)->format('Y/n/j')}}
|
||
تا
|
||
تاریخ
|
||
{{verta($toDate)->format('Y/n/j')}}
|
||
</th>
|
||
</tr>
|
||
<tr>
|
||
<th colspan="20" style="background-color: #daeef3;border-right: 1px solid black;border-left: 1px solid black;;"></th>
|
||
</tr>
|
||
<tr>
|
||
<th rowspan="3" style="background-color: #ebf1de;border:1px solid black;text-align: center;">اداره کل</th>
|
||
<th rowspan="3" style="background-color: #ebf1de;border:1px solid black;text-align: center;">شهرستان</th>
|
||
<th colspan="18" style="background-color: #ebf1de;border:1px solid black;text-align: center;">فعالیتهای رنگ آمیزی</th>
|
||
</tr>
|
||
|
||
<tr>
|
||
<th colspan="2" style="background-color: #c4d79b;border: 1px solid black; text-align:center;">رنگ آمیزی پایه تابلوها</th>
|
||
<th colspan="2" style="background-color: #c4d79b;border: 1px solid black; text-align:center;">رنگ آمیزی پایه چراغ ها</th>
|
||
<th colspan="2" style="background-color: #c4d79b;border: 1px solid black; text-align:center;">رنگ آمیزی پایه های روشنایی</th>
|
||
<th colspan="2" style="background-color: #c4d79b;border: 1px solid black; text-align:center;">رنگ آمیزی پل های عابر پیاده</th>
|
||
<th colspan="2" style="background-color: #c4d79b;border: 1px solid black; text-align:center;">رنگ آمیزی پایه تابلوهای دروازه ای</th>
|
||
<th colspan="2" style="background-color: #c4d79b;border: 1px solid black; text-align:center;">رنگ آمیزی حفاظهای فلزی</th>
|
||
<th colspan="2" style="background-color: #c4d79b;border: 1px solid black; text-align:center;">رنگ آمیری نیوجرسی ها و سایر حفاظ بتنی</th>
|
||
<th colspan="2" style="background-color: #c4d79b;border: 1px solid black; text-align:center;">رنگ آمیزی سرعتگاه</th>
|
||
<th colspan="2" style="background-color: #c4d79b;border: 1px solid black; text-align:center;">رنگ آمیزی پایه و کوله پل ها جهت آشکارسازی</th>
|
||
</tr>
|
||
|
||
<tr>
|
||
<th style="background-color: #fde9d9;border: 1px solid black;text-align: center;">تعداد</th>
|
||
<th style="background-color: #fde9d9;border: 1px solid black;text-align: center;">مجموع</th>
|
||
<th style="background-color: #fde9d9;border: 1px solid black;text-align: center;">تعداد</th>
|
||
<th style="background-color: #fde9d9;border: 1px solid black;text-align: center;">مجموع</th>
|
||
<th style="background-color: #fde9d9;border: 1px solid black;text-align: center;">تعداد</th>
|
||
<th style="background-color: #fde9d9;border: 1px solid black;text-align: center;">مجموع</th>
|
||
<th style="background-color: #fde9d9;border: 1px solid black;text-align: center;">تعداد</th>
|
||
<th style="background-color: #fde9d9;border: 1px solid black;text-align: center;">مجموع</th>
|
||
<th style="background-color: #fde9d9;border: 1px solid black;text-align: center;">تعداد</th>
|
||
<th style="background-color: #fde9d9;border: 1px solid black;text-align: center;">مجموع</th>
|
||
<th style="background-color: #fde9d9;border: 1px solid black;text-align: center;">تعداد</th>
|
||
<th style="background-color: #fde9d9;border: 1px solid black;text-align: center;">مجموع</th>
|
||
<th style="background-color: #fde9d9;border: 1px solid black;text-align: center;">تعداد</th>
|
||
<th style="background-color: #fde9d9;border: 1px solid black;text-align: center;">مجموع</th>
|
||
<th style="background-color: #fde9d9;border: 1px solid black;text-align: center;">تعداد</th>
|
||
<th style="background-color: #fde9d9;border: 1px solid black;text-align: center;">مجموع</th>
|
||
<th style="background-color: #fde9d9;border: 1px solid black;text-align: center;">تعداد</th>
|
||
<th style="background-color: #fde9d9;border: 1px solid black;text-align: center;">مجموع</th>
|
||
|
||
</tr>
|
||
|
||
</thead>
|
||
|
||
<tbody>
|
||
@php
|
||
$RangamiziTabloCount = 0;
|
||
$RangamiziTabloSum = 0;
|
||
$RangamiziCheraqCount = 0;
|
||
$RangamiziCheraqSum = 0;
|
||
$RangimiziPayeRoshanayiCount = 0;
|
||
$RangimiziPayeRoshanayiSum = 0;
|
||
$RangamiziPolCount = 0;
|
||
$RangamiziPolSum = 0;
|
||
$RangamiziDarvaziCount = 0;
|
||
$RangamiziDarvaziSum = 0;
|
||
$RangamiziHefazFeleziCount = 0;
|
||
$RangamiziHefazFeleziSum = 0;
|
||
$RangamiziNewjersiCount = 0;
|
||
$RangamiziNewjersiSum = 0;
|
||
$RangamiziSoratgahCount = 0;
|
||
$RangamiziSoratgahSum = 0;
|
||
$RangamiziPayeCount = 0;
|
||
$RangamiziPayeSum = 0;
|
||
@endphp
|
||
@foreach ($data as $key => $item)
|
||
@php
|
||
$RangamiziTabloCount += $item->RangamiziTabloCount;
|
||
$RangamiziTabloSum += $item->RangamiziTabloSum;
|
||
$RangamiziCheraqCount += $item->RangamiziCheraqCount;
|
||
$RangamiziCheraqSum += $item->RangamiziCheraqSum;
|
||
$RangimiziPayeRoshanayiCount += $item->RangimiziPayeRoshanayiCount;
|
||
$RangimiziPayeRoshanayiSum += $item->RangimiziPayeRoshanayiSum;
|
||
$RangamiziPolCount += $item->RangamiziPolCount;
|
||
$RangamiziPolSum += $item->RangamiziPolSum;
|
||
$RangamiziDarvaziCount += $item->RangamiziDarvaziCount;
|
||
$RangamiziDarvaziSum += $item->RangamiziDarvaziSum;
|
||
$RangamiziHefazFeleziCount += $item->RangamiziHefazFeleziCount;
|
||
$RangamiziHefazFeleziSum += $item->RangamiziHefazFeleziSum;
|
||
$RangamiziNewjersiCount += $item->RangamiziNewjersiCount;
|
||
$RangamiziNewjersiSum += $item->RangamiziNewjersiSum;
|
||
$RangamiziSoratgahCount += $item->RangamiziSoratgahCount;
|
||
$RangamiziSoratgahSum += $item->RangamiziSoratgahSum;
|
||
$RangamiziPayeCount += $item->RangamiziPayeCount;
|
||
$RangamiziPayeSum += $item->RangamiziPayeSum;
|
||
@endphp
|
||
<tr>
|
||
<td style="text-align: center;border: 1px solid black;">{{$item->province_fa}}</td>
|
||
<td style="text-align: center;border: 1px solid black;">{{$item->city_fa}}</td>
|
||
<td style="text-align: center;border: 1px solid black;">{{$item->RangamiziTabloCount}}</td>
|
||
<td style="text-align: center;border: 1px solid black;">{{$item->RangamiziTabloSum}}</td>
|
||
<td style="text-align: center;border: 1px solid black;">{{$item->RangamiziCheraqCount}}</td>
|
||
<td style="text-align: center;border: 1px solid black;">{{$item->RangamiziCheraqSum}}</td>
|
||
<td style="text-align: center;border: 1px solid black;">{{$item->RangimiziPayeRoshanayiCount}}</td>
|
||
<td style="text-align: center;border: 1px solid black;">{{$item->RangimiziPayeRoshanayiSum}}</td>
|
||
<td style="text-align: center;border: 1px solid black;">{{$item->RangamiziPolCount}}</td>
|
||
<td style="text-align: center;border: 1px solid black;">{{$item->RangamiziPolSum}}</td>
|
||
<td style="text-align: center;border: 1px solid black;">{{$item->RangamiziDarvaziCount}}</td>
|
||
<td style="text-align: center;border: 1px solid black;">{{$item->RangamiziDarvaziSum}}</td>
|
||
<td style="text-align: center;border: 1px solid black;">{{$item->RangamiziHefazFeleziCount}}</td>
|
||
<td style="text-align: center;border: 1px solid black;">{{$item->RangamiziHefazFeleziSum}}</td>
|
||
<td style="text-align: center;border: 1px solid black;">{{$item->RangamiziNewjersiCount}}</td>
|
||
<td style="text-align: center;border: 1px solid black;">{{$item->RangamiziNewjersiSum}}</td>
|
||
<td style="text-align: center;border: 1px solid black;">{{$item->RangamiziSoratgahCount}}</td>
|
||
<td style="text-align: center;border: 1px solid black;">{{$item->RangamiziSoratgahSum}}</td>
|
||
<td style="text-align: center;border: 1px solid black;">{{$item->RangamiziPayeCount}}</td>
|
||
<td style="text-align: center;border: 1px solid black;">{{$item->RangamiziPayeSum}}</td>
|
||
</tr>
|
||
|
||
@if(isset($data[$key + 1]))
|
||
@if($data[$key + 1]->province_id != $data[$key]->province_id)
|
||
<tr>
|
||
<td colspan="2" style="border: 1px solid black;text-align: center;background-color:#DAEEF3">{{$item->province_fa ?? '-'}}</td>
|
||
<td style="text-align: center;border: 1px solid black;background-color:#DAEEF3">{{$RangamiziTabloCount ?? '-'}}</td>
|
||
<td style="text-align: center;border: 1px solid black;background-color:#DAEEF3">{{$RangamiziTabloSum ?? '-'}}</td>
|
||
<td style="text-align: center;border: 1px solid black;background-color:#DAEEF3">{{$RangamiziCheraqCount ?? '-'}}</td>
|
||
<td style="text-align: center;border: 1px solid black;background-color:#DAEEF3">{{$RangamiziCheraqSum ?? '-'}}</td>
|
||
<td style="text-align: center;border: 1px solid black;background-color:#DAEEF3">{{$RangimiziPayeRoshanayiCount ?? '-'}}</td>
|
||
<td style="text-align: center;border: 1px solid black;background-color:#DAEEF3">{{$RangimiziPayeRoshanayiSum ?? '-'}}</td>
|
||
<td style="text-align: center;border: 1px solid black;background-color:#DAEEF3">{{$RangamiziPolCount ?? '-'}}</td>
|
||
<td style="text-align: center;border: 1px solid black;background-color:#DAEEF3">{{$RangamiziPolSum ?? '-'}}</td>
|
||
<td style="text-align: center;border: 1px solid black;background-color:#DAEEF3">{{$RangamiziDarvaziCount ?? '-'}}</td>
|
||
<td style="text-align: center;border: 1px solid black;background-color:#DAEEF3">{{$RangamiziDarvaziSum ?? '-'}}</td>
|
||
<td style="text-align: center;border: 1px solid black;background-color:#DAEEF3">{{$RangamiziHefazFeleziCount ?? '-'}}</td>
|
||
<td style="text-align: center;border: 1px solid black;background-color:#DAEEF3">{{$RangamiziHefazFeleziSum ?? '-'}}</td>
|
||
<td style="text-align: center;border: 1px solid black;background-color:#DAEEF3">{{$RangamiziNewjersiCount ?? '-'}}</td>
|
||
<td style="text-align: center;border: 1px solid black;background-color:#DAEEF3">{{$RangamiziNewjersiSum ?? '-'}}</td>
|
||
<td style="text-align: center;border: 1px solid black;background-color:#DAEEF3">{{$RangamiziSoratgahCount ?? '-'}}</td>
|
||
<td style="text-align: center;border: 1px solid black;background-color:#DAEEF3">{{$RangamiziSoratgahSum ?? '-'}}</td>
|
||
<td style="text-align: center;border: 1px solid black;background-color:#DAEEF3">{{$RangamiziPayeCount ?? '-'}}</td>
|
||
<td style="text-align: center;border: 1px solid black;background-color:#DAEEF3">{{$RangamiziPayeSum ?? '-'}}</td>
|
||
</tr>
|
||
@php
|
||
$RangamiziTabloCount = 0;
|
||
$RangamiziTabloSum = 0;
|
||
$RangamiziCheraqCount = 0;
|
||
$RangamiziCheraqSum = 0;
|
||
$RangimiziPayeRoshanayiCount = 0;
|
||
$RangimiziPayeRoshanayiSum = 0;
|
||
$RangamiziPolCount = 0;
|
||
$RangamiziPolSum = 0;
|
||
$RangamiziDarvaziCount = 0;
|
||
$RangamiziDarvaziSum = 0;
|
||
$RangamiziHefazFeleziCount = 0;
|
||
$RangamiziHefazFeleziSum = 0;
|
||
$RangamiziNewjersiCount = 0;
|
||
$RangamiziNewjersiSum = 0;
|
||
$RangamiziSoratgahCount = 0;
|
||
$RangamiziSoratgahSum = 0;
|
||
$RangamiziPayeCount = 0;
|
||
$RangamiziPayeSum = 0;
|
||
@endphp
|
||
@endif
|
||
@else
|
||
<tr>
|
||
<td colspan="2" style="border: 1px solid black;text-align: center;background-color:#DAEEF3">{{$item->province_fa ?? '-'}}</td>
|
||
<td style="text-align: center;border: 1px solid black;background-color:#DAEEF3">{{$RangamiziTabloCount ?? '-'}}</td>
|
||
<td style="text-align: center;border: 1px solid black;background-color:#DAEEF3">{{$RangamiziTabloSum ?? '-'}}</td>
|
||
<td style="text-align: center;border: 1px solid black;background-color:#DAEEF3">{{$RangamiziCheraqCount ?? '-'}}</td>
|
||
<td style="text-align: center;border: 1px solid black;background-color:#DAEEF3">{{$RangamiziCheraqSum ?? '-'}}</td>
|
||
<td style="text-align: center;border: 1px solid black;background-color:#DAEEF3">{{$RangimiziPayeRoshanayiCount ?? '-'}}</td>
|
||
<td style="text-align: center;border: 1px solid black;background-color:#DAEEF3">{{$RangimiziPayeRoshanayiSum ?? '-'}}</td>
|
||
<td style="text-align: center;border: 1px solid black;background-color:#DAEEF3">{{$RangamiziPolCount ?? '-'}}</td>
|
||
<td style="text-align: center;border: 1px solid black;background-color:#DAEEF3">{{$RangamiziPolSum ?? '-'}}</td>
|
||
<td style="text-align: center;border: 1px solid black;background-color:#DAEEF3">{{$RangamiziDarvaziCount ?? '-'}}</td>
|
||
<td style="text-align: center;border: 1px solid black;background-color:#DAEEF3">{{$RangamiziDarvaziSum ?? '-'}}</td>
|
||
<td style="text-align: center;border: 1px solid black;background-color:#DAEEF3">{{$RangamiziHefazFeleziCount ?? '-'}}</td>
|
||
<td style="text-align: center;border: 1px solid black;background-color:#DAEEF3">{{$RangamiziHefazFeleziSum ?? '-'}}</td>
|
||
<td style="text-align: center;border: 1px solid black;background-color:#DAEEF3">{{$RangamiziNewjersiCount ?? '-'}}</td>
|
||
<td style="text-align: center;border: 1px solid black;background-color:#DAEEF3">{{$RangamiziNewjersiSum ?? '-'}}</td>
|
||
<td style="text-align: center;border: 1px solid black;background-color:#DAEEF3">{{$RangamiziSoratgahCount ?? '-'}}</td>
|
||
<td style="text-align: center;border: 1px solid black;background-color:#DAEEF3">{{$RangamiziSoratgahSum ?? '-'}}</td>
|
||
<td style="text-align: center;border: 1px solid black;background-color:#DAEEF3">{{$RangamiziPayeCount ?? '-'}}</td>
|
||
<td style="text-align: center;border: 1px solid black;background-color:#DAEEF3">{{$RangamiziPayeSum ?? '-'}}</td>
|
||
</tr>
|
||
@endif
|
||
@endforeach
|
||
</tbody>
|
||
</table>
|
||
</body>
|
||
</html> |