| return $formHistory; | 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(); | |||||
| } | |||||
| } | |||||
| } | } |
| $product = Product::where('speed', $form->PackageDetail->name)->where('formT', $w->Form->type_application)->first(); | $product = Product::where('speed', $form->PackageDetail->name)->where('formT', $w->Form->type_application)->first(); | ||||
| $company = Company::where('_id', $w->contractor_id)->first(); | $company = Company::where('_id', $w->contractor_id)->first(); | ||||
| info($w->installer_id); | |||||
| // info($w->installer_id); | |||||
| if ($w->installer_id != '') { | if ($w->installer_id != '') { | ||||
| $installer = Staff::with('StaffDetail')->where('_id', $w->installer_id)->first(); | $installer = Staff::with('StaffDetail')->where('_id', $w->installer_id)->first(); | ||||
| $installer = $installer->StaffDetail->name; | $installer = $installer->StaffDetail->name; |
| Route::get('/request-reset-docket', 'Controller@resetDocket'); | Route::get('/request-reset-docket', 'Controller@resetDocket'); | ||||
| Route::get('/get-database', 'Controller@getDatabase'); | Route::get('/get-database', 'Controller@getDatabase'); | ||||
| Route::get('/create-new-credential', 'Controller@createNewCredential'); | Route::get('/create-new-credential', 'Controller@createNewCredential'); | ||||
| Route::get('/adjust-installer','Controller@adjustInstaller'); | |||||
| // Route::get('/delete-dealer-claim', 'Controller@deleteTodayClaim'); | // Route::get('/delete-dealer-claim', 'Controller@deleteTodayClaim'); | ||||
| Route::get('/convert-password/{action}/', ['uses' => 'Auth\AdminController@encryptPassword']); | Route::get('/convert-password/{action}/', ['uses' => 'Auth\AdminController@encryptPassword']); |