<table class="table" border="1">
            <thead>
                <!-- Row 1 -->
                <tr class="table-primary">
                    <td class="text-center heading head_class" colspan="25">Survey Report</td>
                </tr>

                <!-- Row 2 -->
                <tr class="table-success text-left">
                    <?php

                    $jillaname=$jillanamesss[0];
                    $talukaname=$areanamesss[0];
                    $gramname=$gramnamesss[0];
                    ?>

                    <th class="heading" colspan="7">Gram Panchayat Name : <?php echo e($gramname); ?></th>
                    <th class="heading" colspan="8">Mandal Name : <?php echo e($talukaname); ?></th>
                    <th class="heading" colspan="10">District Name: <?php echo e($jillaname); ?></th>
                </tr>

                <!-- Row 3 -->
                <tr class="table-warning">

                    <td colspan="5"></td>
                    <th class="heading" colspan="10" align="center">Existing</th>

                    <td class="heading" colspan="10">Suggested</td>


                </tr>
                <tr class="table-danger">
                    <th rowspan="3" class="vertical-text sub-heading">Sr.No</th>
                    <!-- <th rowspan="3" class="vertical-text sub-heading">Gram Panchayat Name</th> -->
                    <th rowspan="3" class="vertical-text sub-heading">Created Date</th>
                    <th rowspan="3" class="sub-heading">Location/Area<br>(with landmark)</th>
                    <th colspan="2" rowspan="2"  class="sub-heading">GPS LOCATION</th>
                    <th rowspan="3" class="sub-heading">Pole No</th>
                    <th rowspan="3" class="sub-heading">Road Width in feets</th>
                    <th rowspan="3" class="sub-heading">Road configuration as per NLC</th>
                    <th rowspan="3" class="sub-heading">Switch point No/ Type of switch point  (3-Ph/1-Ph)</th>
                    <th colspan="3" class="sub-heading">Mounting arrangement of Poles</th>
                    <th rowspan="3" class="sub-heading">Height of the pole (mtrs.)</th>
                    <th rowspan="3" class="sub-heading">Pole spacing (mtrs.)</th>
                    <th rowspan="3" class="sub-heading">Types of fixtures</th>
                    <th rowspan="3" class="sub-heading">Fixture Wattage (W)</th>
                    <th rowspan="3" class="sub-heading">Warranty  for Existing LED Fixtures if any</th>
                    <th rowspan="3" class="sub-heading">Condition of underground Cable (Working/ Damaged), if applicable</th>
                    <td rowspan="3" class="vertical-text sub-heading">Earth Condition</td>
                    <td rowspan="3" class="vertical-text sub-heading"> Arms and Clamps Required (Yes/ No) <br></td>
                    <td rowspan="3" class="vertical-text sub-heading">Dedicated Streetline Available (Yes/ No)</td>
                    <th colspan="2" rowspan="2" class="sub-heading">Network Issues</th>
                    <th rowspan="3" class="sub-heading">Suggested LED Wattage (18/ 35/70/110/190 W)</th>
                    <th rowspan="3" class="sub-heading">Remarks, if any</th>
                    <th rowspan="3" class="sub-heading">Maker Name</th>
                    <th rowspan="3" class="sub-heading">Pole Id</th>
                   
                </tr>
                <tr class="table-danger">
                    <th colspan="2" class="sub-heading">Type of Pole</th>
                    <th class="sub-heading">Pole arrangement</th>
                </tr>
                <tr class="table-danger">
                    <th class="sub-heading">Lattitude</th>
                    <th class="sub-heading">Longitude</th>
                    <th class="sub-heading">Concrete/ Iron</th>
                    <th class="sub-heading">Others(Wall mount, Wooden, etc)</th>
                    <th class="sub-heading">One Sided/ Central</th>
                    <th class="sub-heading">Is the safe distance maintained between HT Lines - LED Lights</th>
                    <th class="sub-heading">Is there any tree Obstructions</th>
                </tr>
            </thead>
            <?php
            echo "<tr> \n";
            for ($row=1; $row <= 26; $row++) { 
                echo "<td>$row</td> \n";
            }
            echo "</tr>";
            ?>
            <?php
            $count = 0;
            ?>
            <tbody>
                <?php if(sizeof($survey_i) == ""): ?>
                <tr>
                    <td colspan="25"><b>No Data Found</b></td>
                </tr>
                <?php else: ?>
                <?php $__currentLoopData = $survey_i; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $sur): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
               <?php
				$pol = $sur->pole_num;
				if("5/ 1-Ph" ==  $sur->switch_point){
					$pol = ".$sur->pole_num.";
				}
                $r=$sur->types_of_arms;
                $str=explode(',',$r);
                $location_explode=explode(",",$sur->location);
                  if($sur->pole_led_wattage != "N/A" && !is_null($sur->pole_led_wattage) && $sur->pole_led_wattage != "-NA-"){
            $count++;
                       
                        ?>

                        <tr>
                            <!--<td><?php echo e($sur->s_no); ?></td>-->
                            <td><?php echo e($count); ?></td>
                           
                            <td><?php echo e(Carbon\Carbon::parse($sur->screated_at)->format('d/m/Y')); ?></td> 
                            <td><?php echo e($sur->landmark??$gramname); ?></td>
                            <td><?php echo e(round((float)$location_explode[0],6)); ?></td>
                            <td><?php echo e(round((float)$location_explode[1],6)); ?></td>
                            <td><?php echo $pol;?></td>
                            <td><?php echo e($sur->road_width); ?></td>
                            <td class="text-uppercase"><?php echo e($sur->road_confi); ?></td>
                            <td><?php echo e(preg_replace('/: /i', '/', $sur->switch_point)); ?></td>
                            <td><?php echo e($sur->pole_type); ?></td>
                            <td><?php echo e($sur->pole_other); ?></td>
                            <td><?php echo e($sur->pole_side); ?></td>
                            <td><?php echo e($sur->pole_height); ?></td>
                            <td><?php echo e($sur->pole_spacing); ?></td>
                            <td><?php if(isset($sur->pole_type_of_fixture)): ?><?php echo e($sur->pole_type_of_fixture); ?> <?php endif; ?></td>
                             <td><?php if(isset($sur->pole_fixture_wattage)): ?><?php echo e($sur->pole_fixture_wattage); ?> <?php endif; ?></td>
                           <td><?php if(isset($sur->pole_warranty_exsting)): ?><?php echo e($sur->pole_warranty_exsting); ?> <?php endif; ?></td>
                            <td><?php echo e($sur->Condition_existing); ?></td>
                            <td class="text-uppercase"><?php echo e($sur->earth_condition); ?></td>
                            <td><span class="text-uppercase"><?php echo e($sur->arms_clamps_required); ?></span>,<?php if(isset($sur->pole_type_of_arms)): ?><?php echo e($sur->pole_type_of_arms); ?> <?php endif; ?></td>
                            <td class="text-uppercase"><?php echo e($sur->dedicated_available); ?></td>
                            <td class="text-uppercase"><?php echo e($sur->netword_issue_1); ?></td>
                            <td class="text-uppercase"><?php echo e($sur->netword_issue_2); ?></td>

                            <td><?php if(isset($sur->pole_led_wattage)): ?><?php echo e($sur->pole_led_wattage); ?> <?php endif; ?></td>
                            <td><?php echo e($sur->remark); ?></td>
                            <td><?php if(isset($sur->pole_maker_name)): ?><?php echo e($sur->pole_maker_name); ?> <?php endif; ?></td>
                            <td><?php if(isset($sur->pdid)): ?><?php echo e($sur->pdid); ?> <?php endif; ?></td>

                           
                      </tr>
				<?php }  ?>
                  <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                  <?php endif; ?>
              </tbody>

              <tfoot>
                <tr class="page-break">
                    <td colspan=6 height="21" align="left" valign=middle bgcolor="#FFFFFF"><b><font size=3 color="#000000"><br></font></b></td>
                    <td colspan=6 align="left" valign=middle bgcolor="#FFFFFF"><font size=3 color="#000000"><br></font></td>
                    <td colspan=7 align="left" valign=middle bgcolor="#FFFFFF"><font size=3 color="#000000"><br></font></td>

                    <td colspan=6 align="left" valign=middle bgcolor="#FFFFFF"><font size=3 color="#000000"><br></font></td>
                </tr>
                <tr>
                    <td colspan=6 height="21" align="left" valign=middle bgcolor="#FFFFFF"><b><font size=3 color="#000000">Vendors representative</font></b></td>
                    <td align="left" colspan=6  valign=middle bgcolor="#FFFFFF"><b><font size=3 color="#000000">TSREDCO representative</font></b></td>
                    <td align="left" colspan=7  valign=middle bgcolor="#FFFFFF"><b><font size=3 color="#000000">EESLs representative</font></b></td>   
                    <td colspan=6 align="left"   valign=middle bgcolor="#FFFFFF"><b><font size=3 color="#000000">TS Pr and RE representative</font></b></td>
                </tr>
                <tr>
                    <td colspan=6 height="27" align="left" valign=middle bgcolor="#FFFFFF"><font size=3 color="#000000">Name:</font></td>

                    <td colspan=6 align="left" valign=middle bgcolor="#FFFFFF"><font size=3 color="#000000">Name:</font></td>

                    <td colspan=7 align="left" valign=middle bgcolor="#FFFFFF"><font size=3 color="#000000">Name:</font></td>

                    <td colspan=6 align="left"  valign=middle bgcolor="#FFFFFF"><font size=3 color="#000000">Name:</font></td>
                </tr>
                <tr>
                    <td colspan=6 height="27" align="left" valign=middle bgcolor="#FFFFFF"><font size=3 color="#000000">Designation:</font></td>     
                    <td colspan=6 align="left" valign=middle bgcolor="#FFFFFF"><font size=3 color="#000000">Designation:</font></td>        
                    <td  colspan=7 align="left" valign=middle bgcolor="#FFFFFF"><font size=3 color="#000000">Designation:</font></td>               
                    <td colspan=6 align="left" valign=middle bgcolor="#FFFFFF"><font size=3 color="#000000">Designation:</font></td>
                </tr>
                <tr>
                    <td colspan=6 height="27" align="left" valign=middle bgcolor="#FFFFFF"><font size=3 color="#000000">Signature:</font></td>

                    <td  colspan=6 align="left" valign=middle bgcolor="#FFFFFF"><font size=3 color="#000000">Signature:</font></td>

                    <td colspan=7 align="left" valign=middle bgcolor="#FFFFFF"><font size=3 color="#000000">Signature:</font></td>

                    <td colspan=6 align="left" valign=middle bgcolor="#FFFFFF"><font size=3 color="#000000">Signature:</font></td>
                </tr>
                <tr>
                    <td colspan=6 height="20" align="left" valign=top bgcolor="#FFFFFF"><font color="#000000"><br></font></td>
                    <td colspan=6 align="left" valign=middle bgcolor="#FFFFFF"><font size=3 color="#000000"><br></font></td>
                    <td colspan=7 align="left" valign=top bgcolor="#FFFFFF"><font color="#000000"><br></font></td>

                    <td colspan=6 align="left" valign=top bgcolor="#FFFFFF"><font color="#000000"><br></font></td>
                </tr>
            </tfoot>

        </table><?php /**PATH /home/neefc25/public_html/tgredco.fovea.in/resources/views/exports/surveyReport.blade.php ENDPATH**/ ?>