<html>
    <head>
        <title>Abstract OF Survey</title>
    </head>
    <body>
        <center><h2><u>Survey Report -   Gram Panchayat</u></h2></center>
        <p><b>District :</b> {{$abstract[0]->area_name}}</p>
        <center><h1><u>ABSTRACT OF SURVEY</u></h1></center>
        <table border="1" style="height:100px;border-collapse: collapse;" cellpadding="10px" cellspaceing="10px">
            <tr>
                <th>Sl.No.</th>
                <th>Ward No.</th>
                <th>FTL 40W</th>
                <th>CLF</th>
                <th>SV 70W</th>
                <th>SV 150W</th>
                <th>SV 250W</th>
                <th>LED</th>
                <th>High mast (HM)</th>
                <th>Empty Poles</th>
                <th>Total</th>
                <th>No Of poles without third wire</th>
                <th>No of clamps required</th>
                <th>Remarks if any</th>
                
            </tr>
            <?php
            $i=1;
            $data="";
            ?>
            @foreach($abstract as $ak)
            <?php
            $data=$ak->description;
            $k=json_decode($data);
            
            foreach($k as $lp){
                ?>
            <tr>
                <td>{{$i}}</td>
                
                <td>{{$lp->ward_no}}</td>
               <td>{{$lp->ftl_40w}}</td>
               <td>{{$lp->cfl}}</td>
               <td>{{$lp->sv_70w}}</td>
               <td>{{$lp->sv_150w}}</td>
               <td>{{$lp->sv_250w}}</td>
               <td>{{$lp->led}}</td>
               <td>{{$lp->high_mast}}</td>
               <td>{{$lp->empty_poles}}</td>
               <td>{{$lp->total}}</td>
               <td>{{$lp->no_of_poles}}</td>
               <td>{{$lp->no_of_clamps}}</td>
               <td>{{$lp->remark}}</td>
               <!-- <td><a href="view_abstract_survey/{{$ak->aaid}}"><button style="padding:5px;background-color:#3be16e;color:white;border:none;width:100px;height:30px;">Show</button></a></td> -->
            </tr>
            <?php
            $i++;
            }
            ?>
            
            @endforeach    
        </table><br><br>
        <button class="btn btn-primary" style="background-color:#8bed8b;padding:10px;border:none;"><a href="/abstract_survey" style="text-decoration:none;color:white;">Back To Dashboard</a></button>
    </body>
</html>