<!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="18"
            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="18"
            style="background-color: #DAEEF3;text-align: center;border-right:1px solid black;font-weight:bolder;">
        </th>
    </tr>
    <tr>
        <th colspan="18"
            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 rowspan="2" style="border:1px solid black;text-align:center;background-color: #EBF1DE;">اداره کل
        </th>
        <th colspan="16" 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: #EBF1DE;">کل</th>
    </tr>

    <tr>
        <th style="border:1px solid black;text-align:center;background-color: #C4D79B;">مرمت رویه</th>
        <th style="border:1px solid black;text-align:center;background-color: #C4D79B;">پاکسازی</th>
        <th style="border:1px solid black;text-align:center;background-color: #C4D79B;">علائم</th>
        <th style="border:1px solid black;text-align:center;background-color: #C4D79B;">حفاظ</th>
        <th style="border:1px solid black;text-align:center;background-color: #C4D79B;">روشنایی</th>
        <th style="border:1px solid black;text-align:center;background-color: #C4D79B;">خط کشی</th>
        <th style="border:1px solid black;text-align:center;background-color: #C4D79B;">رنگ آمیزی</th>
        <th style="border:1px solid black;text-align:center;background-color: #C4D79B;">شستشو</th>
        <th style="border:1px solid black;text-align:center;background-color: #C4D79B;">ایمن سازی</th>
        <th style="border:1px solid black;text-align:center;background-color: #C4D79B;">حریم</th>
        <th style="border:1px solid black;text-align:center;background-color: #C4D79B;">پل</th>
        <th style="border:1px solid black;text-align:center;background-color: #C4D79B;">تونل و گالری</th>
        <th style="border:1px solid black;text-align:center;background-color: #C4D79B;">عملیات زمستانی</th>
        <th style="border:1px solid black;text-align:center;background-color: #C4D79B;">ماشین آلات</th>
        <th style="border:1px solid black;text-align:center;background-color: #C4D79B;">راهدارخانه</th>
        <th style="border:1px solid black;text-align:center;background-color: #C4D79B;">موارد اضطراری</th>
    </tr>
    </thead>

    <tbody>
        <tr>
            <td style="border:1px solid black;text-align: center;">کل استان</td>
            <td style="border:1px solid black;text-align: center;">{{ $provinceCount['totalMarematRooyeCount'] }}</td>
            <td style="border:1px solid black;text-align: center;">{{ $provinceCount['totalPaksaziCount'] }}</td>
            <td style="border:1px solid black;text-align: center;">{{ $provinceCount['totalAlaemCount'] }}</td>
            <td style="border:1px solid black;text-align: center;">{{ $provinceCount['totalHefazCount'] }}</td>
            <td style="border:1px solid black;text-align: center;">{{ $provinceCount['totalRoshanayiCount'] }}</td>
            <td style="border:1px solid black;text-align: center;">{{ $provinceCount['totalKhatkeshiCount'] }}</td>
            <td style="border:1px solid black;text-align: center;">{{ $provinceCount['totalRangamiziCount'] }}</td>
            <td style="border:1px solid black;text-align: center;">{{ $provinceCount['totalWashingCount'] }}</td>
            <td style="border:1px solid black;text-align: center;">{{ $provinceCount['totalImenSaziCount'] }}</td>
            <td style="border:1px solid black;text-align: center;">{{ $provinceCount['totalHarimCount'] }}</td>
            <td style="border:1px solid black;text-align: center;">{{ $provinceCount['totalPolCount'] }}</td>
            <td style="border:1px solid black;text-align: center;">{{ $provinceCount['totalToonelCount'] }}</td>
            <td style="border:1px solid black;text-align: center;">{{ $provinceCount['totalAmaliatZemestaniCount'] }}</td>
            <td style="border:1px solid black;text-align: center;">{{ $provinceCount['totalMashinAlatCount'] }}</td>
            <td style="border:1px solid black;text-align: center;">{{ $provinceCount['totalTollhouseCount'] }}</td>
            <td style="border:1px solid black;text-align: center;">{{ $provinceCount['totalEmergencyCount'] }}</td>
            <td style="border:1px solid black;text-align: center;">{{ $provinceCount['TotalProvinceCount'] }}</td>
        </tr>

    @foreach ($cityCount as $activity)
        <tr>
            <td style="border:1px solid black;text-align: center;">{{ $activity->edarat_name }}</td>
            <td style="border:1px solid black;text-align: center;">{{ $activity->MarematRooyeCount }}</td>
            <td style="border:1px solid black;text-align: center;">{{ $activity->PaksaziCount }}</td>
            <td style="border:1px solid black;text-align: center;">{{ $activity->AlaemCount }}</td>
            <td style="border:1px solid black;text-align: center;">{{ $activity->HefazCount }}</td>
            <td style="border:1px solid black;text-align: center;">{{ $activity->RoshanayiCount }}</td>
            <td style="border:1px solid black;text-align: center;">{{ $activity->KhatkeshiCount }}</td>
            <td style="border:1px solid black;text-align: center;">{{ $activity->RangamiziCount }}</td>
            <td style="border:1px solid black;text-align: center;">{{ $activity->WashingCount }}</td>
            <td style="border:1px solid black;text-align: center;">{{ $activity->ImenSaziCount }}</td>
            <td style="border:1px solid black;text-align: center;">{{ $activity->HarimCount }}</td>
            <td style="border:1px solid black;text-align: center;">{{ $activity->PolCount }}</td>
            <td style="border:1px solid black;text-align: center;">{{ $activity->ToonelCount }}</td>
            <td style="border:1px solid black;text-align: center;">{{ $activity->AmaliatZemestaniCount }}</td>
            <td style="border:1px solid black;text-align: center;">{{ $activity->MashinAlatCount }}</td>
            <td style="border:1px solid black;text-align: center;">{{ $activity->TollhouseCount }}</td>
            <td style="border:1px solid black;text-align: center;">{{ $activity->EmergencyCount }}</td>
            <td style="border:1px solid black;text-align: center;">{{ $activity->TotalCityCount }}</td>
        </tr>
    @endforeach
    </tbody>


</table>

</body>

</html>
