| @@ -159,4 +159,13 @@ class Controller extends BaseController | |||
| return $formHistory; | |||
| } | |||
| public function adjustInstaller(){ | |||
| $wo = WorkOrder::where('installer_id', '5f606ed1a1f29b50e429a422')->where('status', 'like', '%Pending%')->get(); | |||
| foreach ($wo as $w) { | |||
| $w->status = "Pending Contractor"; | |||
| $w->installer_id = ""; | |||
| $w->save(); | |||
| } | |||
| } | |||
| } | |||
| @@ -288,7 +288,7 @@ class WorkOrderController extends Controller | |||
| $product = Product::where('speed', $form->PackageDetail->name)->where('formT', $w->Form->type_application)->first(); | |||
| $company = Company::where('_id', $w->contractor_id)->first(); | |||
| info($w->installer_id); | |||
| // info($w->installer_id); | |||
| if ($w->installer_id != '') { | |||
| $installer = Staff::with('StaffDetail')->where('_id', $w->installer_id)->first(); | |||
| $installer = $installer->StaffDetail->name; | |||
| @@ -17,6 +17,7 @@ Route::get('/', function () { | |||
| Route::get('/request-reset-docket', 'Controller@resetDocket'); | |||
| Route::get('/get-database', 'Controller@getDatabase'); | |||
| Route::get('/create-new-credential', 'Controller@createNewCredential'); | |||
| Route::get('/adjust-installer','Controller@adjustInstaller'); | |||
| // Route::get('/delete-dealer-claim', 'Controller@deleteTodayClaim'); | |||
| Route::get('/convert-password/{action}/', ['uses' => 'Auth\AdminController@encryptPassword']); | |||