@endif
            <?php 
            //End Task Display
            $sectiondays = $sectiondays + $taskp->daysOfAction;
            $prdays = $prdays + $taskp->daysOfAction;
            echo "</tr>";
        }
        //Addon Display
        $otherc = OtherDetails::where('section_id', $sections->id)->count();
        if ($otherc != 0) {
            $otherd = OtherDetails::where('section_id', $sections->id)->get();
            foreach ($otherd as $otherdetails) {
                if ($otherdetails->label == "Total Days for BAC Documents Preparation" || $otherdetails->label == "Compliance" || $otherdetails->label == "Remarks") {
                    echo "<tr><td width='30%'><b>" . $otherdetails->label . "</b></td>";
                    $valuesc = Values::where('otherDetails_id', $otherdetails->id)->where('purchase_request_id', $purchase->id)->count();
                    $values = Values::where('otherDetails_id', $otherdetails->id)->where('purchase_request_id', $purchase->id)->first();
                    ?>
                @if ($valuesc==0)
                <td colspan='3'> </td>
                <?php 
                    continue;
                    ?>
                @else
                <td width='48%' colspan='3' align="center">{{$values->value}}</td>


                </tr>
                @endif
            <?php 
                }
            }
 public function deladdtask()
 {
     $otherdetails_id = Input::get('id');
     $delOD = OtherDetails::find($otherdetails_id);
     $delOD->delete();
     Values::where('otherDetails_id', $otherdetails_id)->delete();
     Session::put('successlabel', 'Successfully deleted task.');
     return Redirect::back();
 }