create road patrol exports

This commit is contained in:
2025-01-26 14:00:12 +03:30
parent 3158ac3102
commit 55f8b45304
7 changed files with 493 additions and 106 deletions

View File

@@ -0,0 +1,102 @@
<!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" style="text-align: center;">
<table>
<thead>
<tr>
<th colspan="8"
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="8"
style="background-color: #DAEEF3;text-align: center;border-right:1px solid black;font-weight:bolder;">
</th>
</tr>
<tr>
<th colspan="8"
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 class="headercolortable">
<th rowspan="3" style="border:1px solid black;text-align:center;background-color: #C4D79B;">
اداره کل
</th>
<th colspan="7" style="border:1px solid black;text-align:center;background-color: #EBF1DE;">
گشت راهداری
</th>
</tr>
<tr>
<th rowspan="2" style="border:1px solid black;text-align:center;background-color: #C4D79B;">
تعداد کل
</th>
<th colspan="3" style="border:1px solid black;text-align:center;background-color: #EBF1DE;">
اقدامات لازم جهت رسیدگی آتی
</th>
<th rowspan="2" style="border:1px solid black;text-align:center;background-color: #C4D79B;">
اقدامات رسیدگی شده
</th>
<th rowspan="2" style="border:1px solid black;text-align:center;background-color: #C4D79B;">
مجموع مسافت پیمایش شده(کیلومتر)
</th>
<th rowspan="2" style="border:1px solid black;text-align:center;background-color: #C4D79B;">
تعداد فعالیت صورت گرفته حین گشت زنی
</th>
</tr>
<tr>
<th style="border:1px solid black;text-align:center;background-color: #EBF1DE;">
عادی
</th>
<th style="border:1px solid black;text-align:center;background-color: #EBF1DE;">
فوری
</th>
<th style="border:1px solid black;text-align:center;background-color: #EBF1DE;">
آنی
</th>
</tr>
</thead>
<tbody>
@foreach ($activities as $activity)
<tr>
<td style="border:1px solid black;text-align: center;">{{ $activity->province_fa }}</td>
<td style="border:1px solid black;text-align: center;">{{ $activity->tedade }}</td>
<td style="border:1px solid black;text-align: center;">{{ $activity->tedad_mavarede_moshede_shode_adi }}</td>
<td style="border:1px solid black;text-align: center;">{{ $activity->tedad_mavarede_moshede_shode_fori }}</td>
<td style="border:1px solid black;text-align: center;">{{ $activity->tedad_mavarede_moshede_shode_ani }}</td>
<td style="border:1px solid black;text-align: center;">{{ $activity->tedad_mavarede_peygiri_shode }}</td>
<td style="border:1px solid black;text-align: center;">{{ $activity->masafat_tey_shode }}</td>
<td style="border:1px solid black;text-align: center;">{{ $activity->tedad_faliyat_sabt_shode }}</td>
</tr>
@endforeach
</tbody>
</table>
</body>
</html>

View File

@@ -0,0 +1,98 @@
<!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" style="text-align: center;">
<table>
<thead>
<tr>
<th colspan="8"
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="8"
style="background-color: #DAEEF3;text-align: center;border-right:1px solid black;font-weight:bolder;">
</th>
</tr>
<tr>
<th colspan="8"
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 class="headercolortable">
<th rowspan="3" style="border:1px solid black;text-align:center;background-color: #C4D79B;">
اداره کل
</th>
<th colspan="7" style="border:1px solid black;text-align:center;background-color: #EBF1DE;">
گشت راهداری
</th>
</tr>
<tr>
<th rowspan="2" style="border:1px solid black;text-align:center;background-color: #C4D79B;">
تعداد کل
</th>
<th colspan="3" style="border:1px solid black;text-align:center;background-color: #EBF1DE;">
اقدامات لازم جهت رسیدگی آتی
</th>
<th rowspan="2" style="border:1px solid black;text-align:center;background-color: #C4D79B;">
اقدامات رسیدگی شده
</th>
<th rowspan="2" style="border:1px solid black;text-align:center;background-color: #C4D79B;">
مجموع مسافت پیمایش شده(کیلومتر)
</th>
<th rowspan="2" style="border:1px solid black;text-align:center;background-color: #C4D79B;">
تعداد فعالیت صورت گرفته حین گشت زنی
</th>
</tr>
<tr>
<th style="border:1px solid black;text-align:center;background-color: #EBF1DE;">
عادی
</th>
<th style="border:1px solid black;text-align:center;background-color: #EBF1DE;">
فوری
</th>
<th style="border:1px solid black;text-align:center;background-color: #EBF1DE;">
آنی
</th>
</tr>
</thead>
<tbody>
@foreach ($activities as $activity)
<tr>
<td style="text-align: center;border:1px solid black;background-color: #DAEEF3;">{{ $activity['name'] }}</td>
<td style="text-align: center;border:1px solid black;background-color: #DAEEF3;">{{ $activity['tedade'] }}</td>
<td style="text-align: center;border:1px solid black;background-color: #DAEEF3;">{{ $activity['tedad_mavarede_moshede_shode_adi'] }}</td>
<td style="text-align: center;border:1px solid black;background-color: #DAEEF3;">{{ $activity['tedad_mavarede_moshede_shode_fori'] }}</td>
<td style="text-align: center;border:1px solid black;background-color: #DAEEF3;">{{ $activity['tedad_mavarede_moshede_shode_ani'] }}</td>
<td style="text-align: center;border:1px solid black;background-color: #DAEEF3;">{{ $activity['tedad_mavarede_peygiri_shode'] }}</td>
<td style="text-align: center;border:1px solid black;background-color: #DAEEF3;">{{ $activity['masafat_tey_shode'] }}</td>
<td style="text-align: center;border:1px solid black;background-color: #DAEEF3;">{{ $activity['tedad_faliyat_sabt_shode'] }}</td>
</tr>
@endforeach
</tbody>
</table>
</body>
</html>