Bladeren bron

Merge branch 'master' into dealer-fasten

ifah
Siti Hajar Ibrahim 4 jaren geleden
bovenliggende
commit
49eec17ae7

+ 17
- 0
app/Http/Controllers/Controller.php Bestand weergeven

@@ -2,6 +2,7 @@

namespace App\Http\Controllers;

use App\Model\Subscriber;
use Illuminate\Foundation\Bus\DispatchesJobs;
use Illuminate\Routing\Controller as BaseController;
use Illuminate\Foundation\Validation\ValidatesRequests;
@@ -10,4 +11,20 @@ use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
class Controller extends BaseController
{
use AuthorizesRequests, DispatchesJobs, ValidatesRequests;

public function updateCity()
{
$subscribers = Subscriber::all();

foreach ($subscribers as $key => $a) {
$a->unit_no = strtoupper($a->unit_no);
$a->building_name = strtoupper($a->building_name);
$a->street = strtoupper($a->street);
$a->city = strtoupper($a->city);
$a->state = strtoupper($a->state);
$a->save();
}

return "Done standardize city in DB";
}
}

+ 2
- 0
resources/views/customer-service/confirm_work_order.blade.php Bestand weergeven

@@ -81,6 +81,8 @@
<option value="Maxis"<?php if($form->customer_category == "Maxis") { echo "selected"; } ?>>Maxis</option>
<option value="Digi"<?php if($form->customer_category == "Digi") { echo "selected"; } ?>>Digi</option>
<option value="Celcom"<?php if($form->customer_category == "Celcom") { echo "selected"; } ?>>Celcom</option>
<option value="TIME"<?php if($form->customer_category == "TIME") { echo "selected"; } ?>>TIME</option>
<option value="TM"<?php if($form->customer_category == "TM") { echo "selected"; } ?>>TM</option>
</select>
</div>
<div class="grid2">&nbsp;</div>

+ 2
- 0
resources/views/customer-service/edit_work_order.blade.php Bestand weergeven

@@ -85,6 +85,8 @@
<option value="Maxis"<?php if($form->customer_category == "Maxis") { echo "selected"; } ?>>Maxis</option>
<option value="Digi"<?php if($form->customer_category == "Digi") { echo "selected"; } ?>>Digi</option>
<option value="Celcom"<?php if($form->customer_category == "Celcom") { echo "selected"; } ?>>Celcom</option>
<option value="TIME"<?php if($form->customer_category == "TIME") { echo "selected"; } ?>>TIME</option>
<option value="TM"<?php if($form->customer_category == "TM") { echo "selected"; } ?>>TM</option>
</select>
</div>
<div class="grid2">&nbsp;</div>

+ 2
- 0
resources/views/customer-service/view_wo_formB.blade.php Bestand weergeven

@@ -183,6 +183,8 @@
<option value="Maxis">Maxis</option>
<option value="Digi">Digi</option>
<option value="Celcom">Celcom</option>
<option value="TIME">TIME</option>
<option value="TM">TM</option>
</select>
</div>
<div class="grid2">&nbsp;</div>

+ 6
- 0
resources/views/customer-service/view_wo_formR.blade.php Bestand weergeven

@@ -189,6 +189,8 @@
<option value="Maxis">Maxis</option>
<option value="Digi">Digi</option>
<option value="Celcom">Celcom</option>
<option value="TIME">TIME</option>
<option value="TM">TM</option>
</select>
</div>
<div class="grid2">&nbsp;</div>
@@ -240,6 +242,8 @@
<option value="Maxis">Maxis</option>
<option value="Digi">Digi</option>
<option value="Celcom">Celcom</option>
<option value="TIME">TIME</option>
<option value="TM">TM</option>
</select>
</div>
<div class="grid2">&nbsp;</div>
@@ -651,6 +655,8 @@
<option value="Maxis">Maxis</option>
<option value="Digi">Digi</option>
<option value="Celcom">Celcom</option>
<option value="TIME">TIME</option>
<option value="TM">TM</option>
</select>
</div>
<div class="grid2">&nbsp;</div>

+ 2
- 0
routes/web.php Bestand weergeven

@@ -14,6 +14,8 @@ Route::get('/', function () {
return view('index');
});

Route::get('/update-city', 'Controller@updateCity');

Route::get('/convert-password/{action}/', ['uses' => 'Auth\AdminController@encryptPassword']);
Route::get('/store-claim/pdf', ['uses' => 'DS\DealerController@exportDealerJson']);
Route::get('/convert-total-claim-float', ['uses' => 'DS\DealerController@update_total_claim']);

Laden…
Annuleren
Opslaan