Browse Source

Dispaly project type at coverage list CS

ifah
Siti Hajar Ibrahim 4 years ago
parent
commit
56114bf3cc

+ 17
- 4
app/Http/Controllers/CustomerService/CoverageController.php View File

@@ -121,7 +121,12 @@ class CoverageController extends Controller

if($curr < $expiry_date) {
$n1 = "New/";
}
}
$ptype= '';
if(!empty($a->project_type)){
$ptype = $a->project_type;
}
array_push($nested_data, array(
'index' => $n1.$i,
@@ -130,7 +135,8 @@ class CoverageController extends Controller
'city' => $a->city,
'state' => $a->state,
'postcode' => $a->postcode,
'status_building' => $a->status_building,
'status_building' => $a->status_building,
'project_type' => $ptype,
'action' => $a->_id
));
}
@@ -153,7 +159,12 @@ class CoverageController extends Controller

if($curr < $expiry_date) {
$n1 = "New/";
}
}
$ptype= '';
if(!empty($a->project_type)){
$ptype = $a->project_type;
}
array_push($nested_data, array(
'index' => $n1.$i,
@@ -162,7 +173,8 @@ class CoverageController extends Controller
'city' => $a->city,
'state' => $a->state,
'postcode' => $a->postcode,
'status_building' => $a->status_building,
'status_building' => $a->status_building,
'project_type' => $a->project_type,
'action' => $a->_id
));
}
@@ -197,6 +209,7 @@ class CoverageController extends Controller
$coverage->state = $request->get('state');
$coverage->status_building = $request->get('status');
$coverage->postcode = $request->get('postcode');
$coverage->project_type = $request->get('ptype');
$coverage->save();

return redirect()->back()->with('success_msg', 'Success! Update coverage '.$request->get('name'));

+ 3
- 1
resources/views/customer-service/view_coverageB.blade.php View File

@@ -27,6 +27,7 @@
<th>State</th>
<th>Postcode.</th>
<th>Status Building</th>
<th>Project Type</th>
<th width="90">Actions</th>
</tr>
</thead>
@@ -90,6 +91,7 @@
{ "data": "state","name": "state"},
{ "data": "postcode", "name": "postcode"},
{ "data": "status_building", "name": "status_building"},
{ "data": "project_type", "name": "project_type"},
{ "data": "action","name": "action"},
],
"columnDefs": [
@@ -109,7 +111,7 @@
var link = "{{ url('/customer-service/coverage/business/edit') }}"+"/"+data;
return '<a href="'+link+'" class="tablectrl_medium bLightBlue tipS" title="Edit Coverage"><span class="iconb" data-icon="&#xe003;"></span></a> <a class="tablectrl_medium bRed tipS delModule" onclick="deleteA(\''+data+'\',\'' + row.address + '\',)" title="Delete Coverage"><span class="iconb" data-icon="&#xe136;"></span></a>';
},
"targets": 6
"targets": 7
},
],
});

+ 3
- 1
resources/views/customer-service/view_coverageR.blade.php View File

@@ -27,6 +27,7 @@
<th>State</th>
<th>Postcode.</th>
<th>Status Building</th>
<th>Project Type</th>
<th width="90">Actions</th>
</tr>
</thead>
@@ -90,6 +91,7 @@
{ "data": "state","name": "state"},
{ "data": "postcode", "name": "postcode"},
{ "data": "status_building", "name": "status_building"},
{ "data": "project_type", "name": "project_type"},
{ "data": "action","name": "action"},
],
"columnDefs": [
@@ -109,7 +111,7 @@
var link = "{{ url('/customer-service/coverage/residential/edit') }}"+"/"+data;
return '<a href="'+link+'" class="tablectrl_medium bLightBlue tipS" title="Edit Coverage"><span class="iconb" data-icon="&#xe003;"></span></a> <a class="tablectrl_medium bRed tipS delModule" onclick="deleteA(\''+data+'\',\'' + row.address + '\',)" title="Delete Coverage"><span class="iconb" data-icon="&#xe136;"></span></a>';
},
"targets": 6
"targets": 7
},
],
});

+ 14
- 0
resources/views/customer-service/view_coverage_edit.blade.php View File

@@ -54,6 +54,20 @@

<div class="formRow">
<div class="grid2">&nbsp;</div>
<div class="grid2"><label><b>Project Type : </b></label></div>
<div class="grid6">
<select class="styled" id="ptype" name="ptype" style="opacity: 0;" required>
<option value="">Please choose project type</option>
<option value="NFCP">National Fiberisation and Connectivity Plan (NFCP)</option>
<option value="BAU">Business As Usual (BAU)</option>
<option value="Pilot Project">Pilot Project</option>
</select>
</div>
<div class="grid2">&nbsp;</div>
</div>

<div class="formRow">
<div class="grid2">&nbsp;</div>
<div class="grid4">
<label><b>Postcode : </b></label>
<input type="text" name="postcode" id="postcode" value="{{$coverage->postcode}}" required />

+ 2
- 2
resources/views/customer-service/view_coverage_form.blade.php View File

@@ -72,10 +72,10 @@
<div class="grid2"><label><b>Project Type : </b></label></div>
<div class="grid6">
<select class="styled" id="ptype" name="ptype" style="opacity: 0;" required>
<option value="">Please project type</option>
<option value="">Please choose project type</option>
<option value="NFCP">National Fiberisation and Connectivity Plan (NFCP)</option>
<option value="BAU">Business As Usual (BAU)</option>
<option value="Pilot">Pilot Project</option>
<option value="Pilot Project">Pilot Project</option>
</select>
</div>
<div class="grid2">&nbsp;</div>

Loading…
Cancel
Save