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
 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();
 }
 public function run()
 {
     DB::table('tasks')->delete();
     // TASK TYPE : 0 = ADHOC, 1 = REVIEW TASK
     // WORKFLOW 1 | SECTION 1 <-- BELOW 50,000
     $orderID = 1;
     // controller for order_id
     $task = new Task();
     $task->wf_id = '1';
     $task->section_id = '1';
     $task->taskName = 'PPMP CERTIFICATION';
     $task->taskType = 'certification';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '1';
     $task->section_id = '1';
     $task->taskName = 'GSD';
     $task->taskType = 'normal';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '1';
     $task->section_id = '1';
     $task->taskName = 'BUDGET / ACTG';
     $task->taskType = 'normal';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '1';
     $task->section_id = '1';
     $task->taskName = 'PA';
     $task->taskType = 'normal';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '1';
     $task->section_id = '1';
     $task->taskName = 'PGO';
     $task->taskType = 'normal';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '1';
     $task->section_id = '1';
     $task->taskName = 'SIGNED BY GOV';
     $task->taskType = 'dateonly';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     // WORKFLOW 1 | SECTION 2
     $orderID = 1;
     // controller for order_id
     $task = new Task();
     $task->wf_id = '1';
     $task->section_id = '2';
     $task->taskName = '3 RFQ/CANVASS';
     $task->taskType = 'normal';
     $task->maxDuration = '1';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '1';
     $task->section_id = '2';
     $task->taskName = 'ABSTRACT OF QUOTATION';
     $task->taskType = 'normal';
     $task->maxDuration = '6';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     // WORKFLOW 1 | SECTION 3
     $orderID = 1;
     // controller for order_id
     $task = new Task();
     $task->wf_id = '1';
     $task->section_id = '3';
     $task->taskName = 'LCRB / HRB / SUPPLIER';
     $task->taskType = 'supplier';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '1';
     $task->section_id = '3';
     $task->taskName = 'GSD';
     $task->taskType = 'normal';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '1';
     $task->section_id = '3';
     $task->taskName = 'ACTG';
     $task->taskType = 'normal';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '1';
     $task->section_id = '3';
     $task->taskName = 'PA';
     $task->taskType = 'normal';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '1';
     $task->section_id = '3';
     $task->taskName = 'PGO';
     $task->taskType = 'normal';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '1';
     $task->section_id = '3';
     $task->taskName = 'BAC (DELIVERY)';
     $task->taskType = 'normal';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '1';
     $task->section_id = '3';
     $task->taskName = 'SIGNED BY GOV';
     $task->taskType = 'dateonly';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     // WORKFLOW 1 | SECTION 4
     $orderID = 1;
     // controller for order_id
     $task = new Task();
     $task->wf_id = '1';
     $task->section_id = '4';
     $task->taskName = 'CHEQUE';
     $task->taskType = 'cheque';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '1';
     $task->section_id = '4';
     $task->taskName = 'BUDGET';
     $task->taskType = 'normal';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '1';
     $task->section_id = '4';
     $task->taskName = 'ACCOUNTING';
     $task->taskType = 'normal';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '1';
     $task->section_id = '4';
     $task->taskName = 'TREASURY';
     $task->taskType = 'normal';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '1';
     $task->section_id = '4';
     $task->taskName = 'PA';
     $task->taskType = 'normal';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '1';
     $task->section_id = '4';
     $task->taskName = 'PGO';
     $task->taskType = 'normal';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '1';
     $task->section_id = '4';
     $task->taskName = 'SIGNED BY GOV';
     $task->taskType = 'dateonly';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '1';
     $task->section_id = '4';
     $task->taskName = 'CHECK RELEASED';
     $task->taskType = 'normal';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     //WORKFLOW 2 | SECTION 1 <-- ABOVE 50,000 BELOW 500,000
     $orderID = 1;
     // controller for order_id
     $task = new Task();
     $task->wf_id = '2';
     $task->section_id = '1';
     $task->taskName = 'PPMP CERTIFICATION';
     $task->taskType = 'certification';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '2';
     $task->section_id = '1';
     $task->taskName = 'GSD';
     $task->taskType = 'normal';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '2';
     $task->section_id = '1';
     $task->taskName = 'BUDGET / ACTG';
     $task->taskType = 'normal';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '2';
     $task->section_id = '1';
     $task->taskName = 'PA';
     $task->taskType = 'normal';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '2';
     $task->section_id = '1';
     $task->taskName = 'PGO';
     $task->taskType = 'normal';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '2';
     $task->section_id = '1';
     $task->taskName = 'SIGNED BY GOV';
     $task->taskType = 'dateonly';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     //WORKFLOW 2 | SECTION 2 ====================================================================================================================================================
     $orderID = 1;
     // controller for order_id
     $task = new Task();
     $task->wf_id = '2';
     $task->section_id = '2';
     $task->taskName = 'PGEPS POSTING';
     $task->taskType = 'philgeps';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '2';
     $task->section_id = '2';
     $task->taskName = '3 RFQ/CANVASS';
     $task->taskType = 'normal';
     $task->maxDuration = '1';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '2';
     $task->section_id = '2';
     $task->taskName = 'ABSTRACT OF QUOTATION';
     $task->taskType = 'normal';
     $task->maxDuration = '6';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '2';
     $task->section_id = '2';
     $task->taskName = 'BAC RESOLUTION';
     $task->taskType = 'normal';
     $task->maxDuration = '3';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '2';
     $task->section_id = '2';
     $task->taskName = 'NOTICE OF AWARD';
     $task->taskType = 'normal';
     $task->maxDuration = '3';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     //WORKFLOW 2 | SECTION 3
     $orderID = 1;
     // controller for order_id
     $task = new Task();
     $task->wf_id = '2';
     $task->section_id = '3';
     $task->taskName = 'LCRB / HRB / SUPPLIER';
     $task->taskType = 'supplier';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '2';
     $task->section_id = '3';
     $task->taskName = 'GSD';
     $task->taskType = 'normal';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '2';
     $task->section_id = '3';
     $task->taskName = 'ACTG';
     $task->taskType = 'normal';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '2';
     $task->section_id = '3';
     $task->taskName = 'PA';
     $task->taskType = 'normal';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '2';
     $task->section_id = '3';
     $task->taskName = 'PGO';
     $task->taskType = 'normal';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '2';
     $task->section_id = '3';
     $task->taskName = 'BAC (DELIVERY)';
     $task->taskType = 'normal';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '2';
     $task->section_id = '3';
     $task->taskName = 'SIGNED BY GOV';
     $task->taskType = 'dateonly';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     //WORKFLOW 2 | SECTION 4
     $orderID = 1;
     // controller for order_id
     $task = new Task();
     $task->wf_id = '2';
     $task->section_id = '4';
     $task->taskName = 'CHEQUE';
     $task->taskType = 'cheque';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '2';
     $task->section_id = '4';
     $task->taskName = 'BUDGET';
     $task->taskType = 'normal';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '2';
     $task->section_id = '4';
     $task->taskName = 'ACCOUNTING';
     $task->taskType = 'normal';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '2';
     $task->section_id = '4';
     $task->taskName = 'TREASURY';
     $task->taskType = 'normal';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '2';
     $task->section_id = '4';
     $task->taskName = 'PA';
     $task->taskType = 'normal';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '2';
     $task->section_id = '4';
     $task->taskName = 'PGO';
     $task->taskType = 'normal';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '2';
     $task->section_id = '4';
     $task->taskName = 'SIGNED BY GOV';
     $task->taskType = 'dateonly';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '2';
     $task->section_id = '4';
     $task->taskName = 'CHECK RELEASED';
     $task->taskType = 'normal';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     //WORKFLOW 3 | SECTION 1 <-- ABOVE 500,000
     $orderID = 1;
     // controller for order_id
     $task = new Task();
     $task->wf_id = '3';
     $task->section_id = '1';
     $task->taskName = 'GSD';
     $task->taskType = 'normal';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '3';
     $task->section_id = '1';
     $task->taskName = 'BUDGET / ACTG';
     $task->taskType = 'normal';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '3';
     $task->section_id = '1';
     $task->taskName = 'P.A. OFFICE';
     $task->taskType = 'normal';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '3';
     $task->section_id = '1';
     $task->taskName = 'PGO';
     $task->taskType = 'normal';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '3';
     $task->section_id = '1';
     $task->taskName = 'SIGNED BY GOV';
     $task->taskType = 'dateonly';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     //WORKFLOW 3 | SECTION 2
     $orderID = 1;
     // controller for order_id
     $task = new Task();
     $task->wf_id = '3';
     $task->section_id = '2';
     $task->taskName = 'PRE-PROCUREMENT CONFERENCE';
     $task->taskType = 'conference';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '3';
     $task->section_id = '2';
     $task->taskName = 'PHILGEPS';
     $task->taskType = 'philgeps';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '3';
     $task->section_id = '2';
     $task->taskName = 'ADVERTISEMENT';
     $task->taskType = 'conference';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '3';
     $task->section_id = '2';
     $task->taskName = 'PRE-BID CONFERENCE';
     $task->taskType = 'conference';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '3';
     $task->section_id = '2';
     $task->taskName = 'ITB DATE PUBLISHED';
     $task->taskType = 'published';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '3';
     $task->section_id = '2';
     $task->taskName = 'ELIGIBILITY DOCUMENTS';
     $task->taskType = 'documents';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '3';
     $task->section_id = '2';
     $task->taskName = 'TWG EVALUATION DATE';
     $task->taskType = 'evaluation';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '3';
     $task->section_id = '2';
     $task->taskName = 'AOB DATE (AFTER TWG EVALUATION)';
     $task->taskType = 'evaluation';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '3';
     $task->section_id = '2';
     $task->taskName = 'BAC RESO DATE (SIGNED BY ALL BAC MEMBERS)';
     $task->taskType = 'evaluation';
     $task->maxDuration = '3';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '3';
     $task->section_id = '2';
     $task->taskName = 'NOTICE OF AWARD DATE';
     $task->taskType = 'contract';
     $task->maxDuration = '3';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '3';
     $task->section_id = '2';
     $task->taskName = 'NOTICE TO PROCEED';
     $task->taskType = 'meeting';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '3';
     $task->section_id = '2';
     $task->taskName = 'PHILGEPS AWARD PUBLISHED';
     $task->taskType = 'published';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     //WORKFLOW 3 | SECTION 3
     $orderID = 1;
     // controller for order_id
     $task = new Task();
     $task->wf_id = '3';
     $task->section_id = '3';
     $task->taskName = 'LCRB / HRB / SUPPLIER';
     $task->taskType = 'supplier';
     $task->maxDuration = '0';
     $task->order_id = '1';
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '3';
     $task->section_id = '3';
     $task->taskName = 'GSD';
     $task->taskType = 'normal';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '3';
     $task->section_id = '3';
     $task->taskName = 'ACTG';
     $task->taskType = 'normal';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '3';
     $task->section_id = '3';
     $task->taskName = 'P.A.';
     $task->taskType = 'normal';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '3';
     $task->section_id = '3';
     $task->taskName = 'PGO';
     $task->taskType = 'normal';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '3';
     $task->section_id = '3';
     $task->taskName = 'BAC (DELIVERY)';
     $task->taskType = 'normal';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '3';
     $task->section_id = '3';
     $task->taskName = 'SIGNED BY GOV';
     $task->taskType = 'dateonly';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     //WORKFLOW 3 | SECTION 4
     $orderID = 1;
     // controller for order_id
     $task = new Task();
     $task->wf_id = '3';
     $task->section_id = '4';
     $task->taskName = 'CHEQUE';
     $task->taskType = 'cheque';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '3';
     $task->section_id = '4';
     $task->taskName = 'BUDGET';
     $task->taskType = 'normal';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '3';
     $task->section_id = '4';
     $task->taskName = 'ACCOUNTING';
     $task->taskType = 'normal';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '3';
     $task->section_id = '4';
     $task->taskName = 'TREASURY';
     $task->taskType = 'normal';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '3';
     $task->section_id = '4';
     $task->taskName = 'P.A.';
     $task->taskType = 'normal';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '3';
     $task->section_id = '4';
     $task->taskName = 'PGO';
     $task->taskType = 'normal';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '3';
     $task->section_id = '4';
     $task->taskName = 'SIGNED BY GOV';
     $task->taskType = 'dateonly';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '3';
     $task->section_id = '4';
     $task->taskName = 'CHECK RELEASED';
     $task->taskType = 'normal';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     // WORKFLOW 4 | SECTION 1
     $orderID = 1;
     // controller for order_id
     // $task = new Task;
     // $task->wf_id = '4';
     // $task->section_id = '1';
     // $task->taskName = 'DATE OF P.R.';
     // $task->taskType = 'normal';
     // $task->maxDuration = '0';
     // $task->order_id = $orderID++;
     // $task->description = 'This is a task description';
     // $task->save();
     $task = new Task();
     $task->wf_id = '4';
     $task->section_id = '1';
     $task->taskName = 'RECEIVED GSD';
     $task->taskType = 'normal';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '4';
     $task->section_id = '1';
     $task->taskName = 'BUDGET / ACTG';
     $task->taskType = 'normal';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '4';
     $task->section_id = '1';
     $task->taskName = 'P.A. OFFICE';
     $task->taskType = 'normal';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '4';
     $task->section_id = '1';
     $task->taskName = 'PGO';
     $task->taskType = 'normal';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '4';
     $task->section_id = '1';
     $task->taskName = 'SIGNED BY GOV';
     $task->taskType = 'dateonly';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     // WORKFLOW 4 | SECTION 2
     $orderID = 1;
     // controller for order_id
     $task = new Task();
     $task->wf_id = '4';
     $task->section_id = '2';
     $task->taskName = 'LABOR PROPOSAL DATE';
     $task->taskType = 'conference';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '4';
     $task->section_id = '2';
     $task->taskName = 'NOTICE OF AWARD DATE';
     $task->taskType = 'conference';
     $task->maxDuration = '3';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '4';
     $task->section_id = '2';
     $task->taskName = 'NOTICE TO PROCEED DATE';
     $task->taskType = 'conference';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '4';
     $task->section_id = '2';
     $task->taskName = 'PAKYAW CONTRACT DATE';
     $task->taskType = 'conference';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '4';
     $task->section_id = '2';
     $task->taskName = 'ACCOMPLISHMENT REPORT DATE';
     $task->taskType = 'conference';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     // WORKFLOW 4 | SECTION 3
     $orderID = 1;
     // controller for order_id
     $task = new Task();
     $task->wf_id = '4';
     $task->section_id = '3';
     $task->taskName = 'CHEQUE';
     $task->taskType = 'cheque';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '4';
     $task->section_id = '3';
     $task->taskName = 'BUDGET';
     $task->taskType = 'normal';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '4';
     $task->section_id = '3';
     $task->taskName = 'ACCOUNTING';
     $task->taskType = 'normal';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '4';
     $task->section_id = '3';
     $task->taskName = 'TREASURY';
     $task->taskType = 'normal';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '4';
     $task->section_id = '3';
     $task->taskName = 'P.A. OFFICE';
     $task->taskType = 'normal';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '4';
     $task->section_id = '3';
     $task->taskName = 'PGO';
     $task->taskType = 'normal';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '4';
     $task->section_id = '3';
     $task->taskName = 'ACCOUNTING';
     $task->taskType = 'normal';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '4';
     $task->section_id = '3';
     $task->taskName = 'SIGNED BY GOV';
     $task->taskType = 'dateonly';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '4';
     $task->section_id = '3';
     $task->taskName = 'CHECK RELEASED';
     $task->taskType = 'normal';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     // WORKFLOW 5 | SECTION 1
     $orderID = 1;
     // controller for order_id
     // $task = new Task;
     // $task->wf_id = '5';
     // $task->section_id = '1';
     // $task->taskName = 'DATE OF P.R.';
     // $task->taskType = 'datebyremark';
     // $task->maxDuration = '0';
     // $task->order_id = $orderID++;
     // $task->description = 'This is a task description';
     // $task->save();
     $task = new Task();
     $task->wf_id = '5';
     $task->section_id = '1';
     $task->taskName = 'RECEIVED GSD';
     $task->taskType = 'datebyremark';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '5';
     $task->section_id = '1';
     $task->taskName = 'BUDGET / ACTG';
     $task->taskType = 'datebyremark';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '5';
     $task->section_id = '1';
     $task->taskName = 'P.A. OFFICE';
     $task->taskType = 'datebyremark';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '5';
     $task->section_id = '1';
     $task->taskName = 'PGO';
     $task->taskType = 'datebyremark';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '5';
     $task->section_id = '1';
     $task->taskName = 'SIGNED BY GOV';
     $task->taskType = 'dateonly';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     // WORKFLOW 5 | SECTION 2
     $orderID = 1;
     // controller for order_id
     $task = new Task();
     $task->wf_id = '5';
     $task->section_id = '2';
     $task->taskName = 'PHILGEPS';
     $task->taskType = 'philgeps';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '5';
     $task->section_id = '2';
     $task->taskName = 'RFQ NO. OF SUPPLIERS';
     $task->taskType = 'rfq';
     $task->maxDuration = '1';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '5';
     $task->section_id = '2';
     $task->taskName = 'CERTIFICATION OF EMERGENCY';
     $task->taskType = 'dateby';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '5';
     $task->section_id = '2';
     $task->taskName = 'CERTIFICATE OF EXCLUSIVE DISTRIBUTOR, MANUFACTURER';
     $task->taskType = 'dateby';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '5';
     $task->section_id = '2';
     $task->taskName = 'BAC RESO DATE (SIGNED BY ALL BAC MEMBERS)';
     $task->taskType = 'evaluation';
     $task->maxDuration = '3';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '5';
     $task->section_id = '2';
     $task->taskName = 'NOTICE OF AWARD DATE (PGO)';
     $task->taskType = 'evaluation';
     $task->maxDuration = '3';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     // WORKFLOW 5 | SECTION 3
     $orderID = 1;
     // controller for order_id
     $task = new Task();
     $task->wf_id = '5';
     $task->section_id = '3';
     $task->taskName = 'RECEIVED GSD';
     $task->taskType = 'dateby';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '5';
     $task->section_id = '3';
     $task->taskName = 'ACCOUNTING OFFICE';
     $task->taskType = 'dateby';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '5';
     $task->section_id = '3';
     $task->taskName = 'P.A. OFFICE';
     $task->taskType = 'dateby';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '5';
     $task->section_id = '3';
     $task->taskName = 'GOVERNORS OFFICE';
     $task->taskType = 'dateby';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '5';
     $task->section_id = '3';
     $task->taskName = 'SIGNED BY GOV';
     $task->taskType = 'dateonly';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     // WORKFLOW 5 | SECTION 4
     $orderID = 1;
     // controller for order_id
     $task = new Task();
     $task->wf_id = '5';
     $task->section_id = '4';
     $task->taskName = 'CHEQUE';
     $task->taskType = 'cheque';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '5';
     $task->section_id = '4';
     $task->taskName = 'BUDGET';
     $task->taskType = 'datebyremark';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '5';
     $task->section_id = '4';
     $task->taskName = 'ACCOUNTING';
     $task->taskType = 'datebyremark';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '5';
     $task->section_id = '4';
     $task->taskName = 'TREASURY';
     $task->taskType = 'datebyremark';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '5';
     $task->section_id = '4';
     $task->taskName = 'P.A. OFFICE';
     $task->taskType = 'datebyremark';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '5';
     $task->section_id = '4';
     $task->taskName = 'PGO';
     $task->taskType = 'datebyremark';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '5';
     $task->section_id = '4';
     $task->taskName = 'ACCOUNTING';
     $task->taskType = 'datebyremark';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '5';
     $task->section_id = '4';
     $task->taskName = 'SIGNED BY GOV';
     $task->taskType = 'dateonly';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     $task = new Task();
     $task->wf_id = '5';
     $task->section_id = '4';
     $task->taskName = 'CHECK RELEASED';
     $task->taskType = 'datebyremark';
     $task->maxDuration = '0';
     $task->order_id = $orderID++;
     $task->description = 'This is a task description';
     $task->save();
     OtherDetails::create(['id' => '1', 'label' => 'No. of Days Allowed', 'section_id' => '17']);
     OtherDetails::create(['id' => '2', 'label' => 'Total Days for BAC Documents Preparation', 'section_id' => '17']);
     OtherDetails::create(['id' => '3', 'label' => 'Compliance', 'section_id' => '17']);
     OtherDetails::create(['id' => '4', 'label' => 'Remarks', 'section_id' => '17']);
     OtherDetails::create(['id' => '5', 'label' => 'Amount', 'section_id' => '18']);
 }