if ($taskp->custom1 != NULL) {
                echo $taskp->custom1;
            }
            ?>
            </td>
        @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>

			
				    <div class="col-md-3">
				    	{{ Form::submit('Add', array('class' => 'btn btn-success btn-block create-btn')) }}
				    </div>
			    {{ Form::close() }}
		</div>

		<table border="1" class="workflow-table">

			<!-- Displays the tasks added through the add new task form -->
			<?php 
$taskcount = OtherDetails::where('section_id', $sectionName->id)->count();
?>
			@if($taskcount!=0)
				<?php 
$addedtasks = OtherDetails::where('section_id', $sectionName->id)->get();
?>
				@foreach ($addedtasks as $addedtask)
				<tr>
					<td colspan="3">{{$addedtask->label}}</td>
					<td>
						<form method="POST" action="deladdtask"  id="myForm_{{ $addedtask->id }}" name="myForm" style="display: -webkit-inline-box;">
							<input type="hidden" name="id" value="<?php 
echo $addedtask->id;
?>
">
							<button type="button" onclick="hello( {{{ $addedtask->id }}})" class="btn btn-danger" data-toggle="modal" data-target="#confirmDelete"  data-toggle="tooltip" data-placement="top"  title="Delete Task"><span class="glyphicon glyphicon-trash"></span></button>
						</form>
					</td>
				</tr> 
				@endforeach